Moab logoMoab
Get started
Moab Docs

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 scope
data_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

ParameterTypeKindDescription
scopestringfilterWhat the record measures — a project, product, channel, campaign agent, or content piece.
providerstringfilterWhere the numbers came from (e.g. ga4, resend, posthog).
sourcestringfilterThe specific report or endpoint within the provider the numbers were read from.
qstringsearchFree-text search across summary.
sortstringsortOne of period_start, date; prefix with - to reverse.
limitnumberpageRows to return, 1–100. Defaults to 20.
cursorstringpagenext_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

ParameterTypeKindDescription
idstringpathThe 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.

FieldTypeDescription
objectstringAlways analytic.
idstringStable object id. Also accepted in place of slug on any path.
slugstringURL-safe name, unique within the collection.
created_atstringISO-8601 timestamp of the first write.
updated_atstringISO-8601 timestamp of the most recent write. The cursor sorts on this.
period_startdateStart of the measured period.
period_enddateEnd of the measured period.
sourcestringThe specific report or endpoint within the provider the numbers were read from.
metricsobjectThe measured numbers for the period, keyed by metric name. Shape follows the provider.
dimensionsobjectThe dimension values the metrics are sliced by, keyed by dimension name.
raw_refstringPointer 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.

On this page

Moab logoMoab

Ready to build? Connect an agent and go — no credit card needed to start.

Get startedSee our plans