Tokens
Create, list and revoke the bearer tokens that authenticate every Social Data API request, and report their usage.
API usage for your tokens
Every token-authenticated request is recorded, and this returns the caller's own usage inside a window: totals, then the same figures per token, per route pattern and per UTC day. Defaults to the last 30 days. Tokens revoked after use keep their rows but appear with a null tokenId.
Authorization
AuthorizationRequiredBearer <token>API token. Send it as Authorization: Bearer <API_TOKEN>.
In: header
Query Parameters
fromstringInclusive start, ISO 8601 date-time or date. Default: to minus 30 days.
"date-time"tostringExclusive end, ISO 8601 date-time or date. Default: now. The window may not exceed 400 days.
"date-time"tokenIdintegerRestrict to one of your tokens.
Usage report
List API tokens
List all API tokens for the authenticated user. Token values are not returned.
Authorization
AuthorizationRequiredBearer <token>API token. Send it as Authorization: Bearer <API_TOKEN>.
In: header
Token list
Create API token
Create a new API token. The raw token value is only returned once — store it securely.
Authorization
AuthorizationRequiredBearer <token>API token. Send it as Authorization: Bearer <API_TOKEN>.
In: header
Request Body
application/jsonRequirednameRequiredstring1Maximum length: 255expiresInDaysintegerOptional. Token expires after this many days.
1Token created
Revoke API token
Authorization
AuthorizationRequiredBearer <token>API token. Send it as Authorization: Bearer <API_TOKEN>.
In: header
Path Parameters
idRequiredintegerToken revoked
Last updated on