Browse documentation
Read performance and explicitly refresh social metrics.
Product response envelope
Current product endpoints return a resource envelope: data.object, data.brand_id, data.page, and nested data.data containing the dashboard data. Pagination fields for these endpoints are inside data.data. Unknown measurements remain null; verified zeros remain 0. Sensitive values are redacted.
Write operations require the appropriate scopes on your key. Draft and calendar edits do not publish content. External effects require the confirmation rules described below.
GET …/results (results:read), operation get_results
Query: period_days ∈ 10, 30, 90, 365 (default 30); limit (default 50) and cursor page the blogs and social rows. data contains attributed blog/social results, trends, totals (store-wide, attributed and estimates are kept separate), AI-assistant traffic, source readiness, WooCommerce store summary, share_of_voice and share_of_voice_ready. Social data is included only if the plan has social_autopilot.
POST …/results/refresh (results:refresh), operation refresh_results
Body: { "confirm": true }. Requires the social_autopilot plan feature. Costs 1 credit. Calls the capture-post-metrics Edge Function, which may contact providers. Refetch get_results afterwards.
Request examples
Choose a language for each endpoint. Set your assigned HTTPS API origin and environment variables, then replace the <placeholders>. These examples do not run requests in your browser.
GET/v1/brands/{brand_id}/results
: "${CITERA_API_BASE_URL:?Set CITERA_API_BASE_URL}"
: "${CITERA_API_KEY:?Set CITERA_API_KEY}"
: "${BRAND_ID:?Set BRAND_ID}"
curl --fail-with-body --connect-timeout 10 --max-time 30 -X GET "${CITERA_API_BASE_URL%/}/v1/brands/${BRAND_ID}/results" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${CITERA_API_KEY}"POST/v1/brands/{brand_id}/results/refresh
This is a write operation. Review the body and confirmation requirements before running it.
: "${CITERA_API_BASE_URL:?Set CITERA_API_BASE_URL}"
: "${CITERA_API_KEY:?Set CITERA_API_KEY}"
: "${BRAND_ID:?Set BRAND_ID}"
# Review this write and replace every <placeholder> before running.
curl --fail-with-body --connect-timeout 10 --max-time 30 -X POST "${CITERA_API_BASE_URL%/}/v1/brands/${BRAND_ID}/results/refresh" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${CITERA_API_KEY}" \
-H "Content-Type: application/json" \
--data-raw '{"confirm":true}'