Campaign Metrics

Query Metrics Related to Campaigns

Fetch Campaign Metrics

get

Fetch Campaign Metrics

Authorizations
AuthorizationstringRequired

Provide the token that is returned upon login

Path parameters
workspaceIdstring · uuidRequired

The ID of the workspace

Query parameters
periodStartstring · date-timeRequired

The date and time in the format 'YYYY-MM-DDTHH:MM:SSZ' or 'YYYY-MM-DDTHH:MM:SS-HH:MM'.

periodEndstring · date-timeOptional

The date and time in the format 'YYYY-MM-DDTHH:MM:SSZ' or 'YYYY-MM-DDTHH:MM:SS-HH:MM'.

conversionMetricstring · enumOptional

The metric to use when calculating conversion rates. This is used to determine the conversion rate for the campaign. If not provided, it defaults to 'order-confirmed'.

Default: order-confirmedPossible values:
filterstringOptional

Filter conditions for fetching metrics. Each condition must be in the format: equals(field,value).

Supported field-value pairs:

  • campaignID - UUID. Can supply multiple equals conditions to match multiple campaign IDs.
  • name - string. Can supply multiple equals conditions to match multiple campaign names.
  • status - string. Can supply multiple equals conditions to filter by campaign statuses. Allowed values:
    • draft
    • pending_review
    • scheduled
    • preparing
    • inactive
    • ended
    • waiting
    • error
    • active
  • tagID - UUID. Filter by campaigns with a specific tag.
  • channelID - UUID. Filter by campaigns sent via a specific channel.
  • platformID - string. Can supply multiple equals conditions to match multiple platforms. Common values include: sms-messagebird, email-sparkpost, whatsapp.
  • createdSince - ISO-8601 timestamp string. Filter for campaigns created after this time.
  • createdUpTo - ISO-8601 timestamp string. Filter for campaigns created up to this time.
Responses
200

List of campaign metrics

application/json
get
/workspaces/{workspaceId}/reporting/campaigns/metrics

Last updated

Was this helpful?