API reference

Analytics

Post, channel and workspace metrics collected after publishing.

Post, channel and workspace metrics collected after publishing.

Method Endpoint Summary
GET /v1/channels/{id}/metrics Channel metrics
GET /v1/workspaces/{ws}/analytics Workspace insights
GET /v1/posts/{id}/metrics Post metrics

Channel metrics#

GET/v1/channels/{id}/metrics

Totals and by-day series from published posts.

Auth: API key (Authorization: Bearer obx_live_…). Requires scope analytics:read with workspace role owner / admin / editor / contributor / viewer / agent.

Path parameters

Name Required Description
id yes Channel id (ch_…).

Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X GET "https://api.outboxer.dev/v1/channels/ch_01j9zq3k8m5v2b7x4c6n1p0r9s/metrics" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

Workspace insights#

GET/v1/workspaces/{ws}/analytics

Results of posts published in the last days (default 30): totals with the previous period and change, engagement_rate, by_day (workspace timezone), by_channel, top_posts and bottom_posts, best_times (local weekday and hour by average interactions), a breakdown by author type, agent (with acceptance and unedited rates), label and campaign, and plain-language learnings. Filter with channel_id, campaign_id or label. Live keys see live posts; test keys see test posts. Excerpts and names are untrusted text.

Auth: API key (Authorization: Bearer obx_live_…). Requires scope analytics:read with workspace role owner / admin / editor / contributor / viewer / agent.

Path parameters

Name Required Description
ws yes Workspace id (ws_…) or slug

Query parameters

Name Required Description
days no Look-back period in days (default 30, max 365).
channel_id no Only this channel.
campaign_id no Only this campaign.
label no Only posts with this label.

Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X GET "https://api.outboxer.dev/v1/workspaces/acme/analytics?days=30" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

Post metrics#

GET/v1/posts/{id}/metrics

Latest and history per variant (1 h, 24 h, 7 d, 30 d checkpoints).

Auth: API key (Authorization: Bearer obx_live_…). Requires scope analytics:read with workspace role owner / admin / editor / contributor / viewer / agent.

Path parameters

Name Required Description
id yes Post id (post_…).

Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X GET "https://api.outboxer.dev/v1/posts/post_01j9zq3k8m5v2b7x4c6n1p0r9s/metrics" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"