Skip to main content
DELETE
/
v1
/
end-users
/
{endUserId}
/
credentials
Delete credentials
curl --request DELETE \
  --url https://api.example.com/v1/end-users/{endUserId}/credentials \
  --header 'Content-Type: application/json' \
  --data '
{
  "fields": [
    "<string>"
  ]
}
'
{
  "ok": true
}

Path parameters

endUserId
string
required
The end-user identifier.

Request body

fields
string[]
Specific credential fields to clear. Omit or pass an empty array to wipe every credential for this end-user.Valid field names match the set endpoint: twitterAuthToken, twitterCt0, redditSession, tiktokSessionId, tiktokCsrfToken, youtubeSid, youtubeHsid, youtubeSsid, youtubeSapisid, instagramSessionId, instagramCsrfToken, instagramDsUserId.

Response — 200 OK

ok
boolean
Always true on success.

Example

curl "$API_BASE/end-users/alice/credentials" -X DELETE \
  -H "Authorization: Bearer $API_KEY"

Notes

  • Irreversible. Once cleared, the credentials are gone. To re-enable that platform for the end-user, call PUT .../credentials again with fresh values.
  • The end-user record itself is not deleted. Only the credential fields inside it. The end-user’s task and session history remain accessible.
  • Per-platform isolation. Passing fields: ["twitterAuthToken", "twitterCt0"] clears Twitter only; TikTok, YouTube, etc. remain configured.

Errors

CodeMeaning
400Invalid JSON body, endUserId > 256 chars
401Missing Authorization header
403Revoked API key