Analytics
Measured outcomes per period — what the loop earned.
Base path /api/v1/analytics on https://moabcrm.com. Authenticate with Authorization: Bearer $DASH_API_KEY and name the project with the Project-ID header. Writes are validated in declared mode; an operation this resource does not declare answers 405 operation_not_supported.
List analytics
GET /api/v1/analytics
curl "https://moabcrm.com/api/v1/analytics" \
-H "Authorization: Bearer $DASH_API_KEY" \
-H "Project-ID: pr_zest"Show me the analytics filtered by scopedata_query {
"collection": "analytics"
}Returns a paginated list of analytic objects, newest first.
{
"object": "list",
"data": [
{
"object": "analytic",
"id": "obj_123",
"date": "date",
"scope": "scope",
"provider": "provider",
"summary": "summary",
"created_at": "2026-07-25T12:00:00.000Z",
"updated_at": "2026-07-25T12:00:00.000Z"
}
],
"has_more": false,
"next_cursor": null
}Parameters
| Parameter | Type | Kind | Description |
|---|---|---|---|
scope | string | filter | What the record measures — a project, product, channel, campaign agent, or content piece. |
provider | string | filter | Where the numbers came from (e.g. ga4, resend, posthog). |
source | string | filter | The specific report or endpoint within the provider the numbers were read from. |
q | string | search | Free-text search across summary. |
sort | string | sort | One of period_start, date; prefix with - to reverse. |
limit | number | page | Rows to return, 1–100. Defaults to 20. |
cursor | string | page | next_cursor from the previous page. |
Retrieve a analytic
GET /api/v1/analytics/draft-001
curl "https://moabcrm.com/api/v1/analytics/draft-001" \
-H "Authorization: Bearer $DASH_API_KEY" \
-H "Project-ID: pr_zest"Open the analytic {id}data_get {
"collection": "analytics",
"object_id": "draft-001"
}Returns the analytic object.
{
"object": "analytic",
"id": "obj_123",
"date": "date",
"scope": "scope",
"provider": "provider",
"summary": "summary",
"created_at": "2026-07-25T12:00:00.000Z",
"updated_at": "2026-07-25T12:00:00.000Z"
}Parameters
| Parameter | Type | Kind | Description |
|---|---|---|---|
id | string | path | The analytic's id or slug. |
What comes back (read-only)
Every analytic carries the envelope below. The fields under it are computed or stamped by the platform — they are returned, never sent.
| Field | Type | Description |
|---|---|---|
object | string | Always analytic. |
id | string | Stable object id. Also accepted in place of slug on any path. |
slug | string | URL-safe name, unique within the collection. |
created_at | string | ISO-8601 timestamp of the first write. |
updated_at | string | ISO-8601 timestamp of the most recent write. The cursor sorts on this. |
period_start | date | Start of the measured period. |
period_end | date | End of the measured period. |
source | string | The specific report or endpoint within the provider the numbers were read from. |
metrics | object | The measured numbers for the period, keyed by metric name. Shape follows the provider. |
dimensions | object | The dimension values the metrics are sliced by, keyed by dimension name. |
raw_ref | string | Pointer to the raw provider payload this record was derived from. |
Errors
Failures use { error: { type, code, message, param } }. The full code table is generated at Error Codes.