Skip to main content
POST
Refresh Cookies
This endpoint updates and synchronizes cookies for an existing account using its account hash. Use this when your account cookies have expired or need to be refreshed.

Headers

string
required
Your API authentication token. Value: Token YOUR_API_KEY
string
required
Must be application/json. Value: application/json

Request Body

string
required
Existing account hash to update. Example: "abfeb440ceccdfab974e8d261836c9d6"
string
required
Account type identifier. Example: "twitter-sync"
object
required
Object containing updated cookie name-value pairs. Example: {"auth_token": "...", "ct0": "..."}

Response Field Explanations

string
Synchronization task identifier. Example: "7966b678b6b63ef599deeea99cb2b219"
string
Always “synchronize-cookies”. Example: "synchronize-cookies"
integer
Task status code (100 = created). Example: 100
string
Human-readable status. Example: "created"
Refresh cookies immediately when you notice status_code_info showing ‘cookies_expired’ in List Accounts or Get Account Details.
Use the returned task ID with Check Sync Status to monitor the refresh process.
Refreshing cookies preserves all account settings and limits. You don’t need to reconfigure the account after refresh.
Set up monitoring to check account status regularly and automate cookie refresh when needed.

Code Examples

Response

200
400
404