GET Behavior
- Returns all targets scoped to the authenticated key (workspace scope for workspace keys, personal scope for personal keys).
- Includes last snapshot/refresh status and
free_refresh_available. - This dataset is the source of account-level stats shown in the internal UI.
POST Body
Supported values:
tiktok, instagram, youtube.Account identifier/handle to track (for example
@brand).Optional display name override.
Response
GET Response Fields
Workspace tied to the API key (
null for personal-scope keys).Analytics targets with status metadata and last snapshot totals. Each row
includes canonical
id and a backward-compatible target_id alias.POST Response Fields
Created (or existing) target row.
true when a new target was created, false when an existing scoped target
was returned.Error Responses
400 invalid_json— request body is not valid JSON400 invalid_payload— body must be a JSON object400— unsupported platform or missing identifier401/403— authentication failed or key lacks workspace access500— unexpected database/analytics service error
error_code field.