Skip to main content
POST
/
api
/
v2
/
accounts
/
{id}
/
sleep
Sleep a tracked account
curl --request POST \
  --url https://api.example.com/api/v2/accounts/{id}/sleep
Puts a tracked account to sleep. Decrements the Stripe subscription quantity for the account’s tier. Sleeping accounts stop syncing but their history and stream pairs are preserved. To resume, see POST /api/v2/accounts//wake.

Example

curl -X POST https://www.catchthegoodones.com/api/v2/accounts/7/sleep \
  -H "Authorization: Bearer ctgo_your_api_key_here"

Response

{ "success": true, "accountId": 7, "asleep": true }

Errors

CodeHTTPWhen
Account not found404Account not owned by user, or already deleted

Auth

Bearer or session cookie.