Your API Token
Use this bearer token to authenticate with the OctoStore API.
Loading...
Active Locks
Locks currently held by your account.
Loading locks...
Usage Examples
Copy and paste these examples with your pre-filled token.
Acquire a Lock
curl -X POST https://api.octostore.io/locks/my-resource/acquire \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"ttl_seconds": 300}'
Check Lock Status
curl https://api.octostore.io/locks/my-resource \
-H "Authorization: Bearer YOUR_TOKEN"
List Your Locks
curl https://api.octostore.io/locks \
-H "Authorization: Bearer YOUR_TOKEN"
Release a Lock
curl -X POST https://api.octostore.io/locks/my-resource/release \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"lease_id": "LEASE_ID_FROM_ACQUIRE"}'