Skip to content

Get the client tag report

GET
/v2/reports/client-tags
curl --request GET \
--url https://api.connect.ms/v2/reports/client-tags \
--header 'Authorization: Bearer <token>'

Outbound SMS volume and cost per client tag over a range of dates, with a daily breakdown for each tag.

tag
string
nullable

Only this client tag. Defaults to every tag.

since
string format: date
nullable

The first day to include (ISO 8601 date, UTC). Defaults to one month before today. No later than today.

until
string format: date
nullable

The last day to include (ISO 8601 date, UTC). Defaults to today. No later than today.

Connect-Version
string

The API version to use, for example 2026-10-01. Defaults to the version set on your API key.

The report.

Media typeapplication/json

A report over a range of dates. Reports are not paged.

object
period
required
One of:

An inclusive range of dates.

object
from
required

The first day of the range (ISO 8601 date).

string format: date
to
required

The last day of the range (ISO 8601 date).

string format: date
data
required

The report rows.

Array<object>

Volume and cost for one client tag over the report’s dates.

object
tag
required

The client tag.

string
sent
required

Outbound messages with this tag, whatever their outcome.

integer format: int32
parts
required

SMS parts those messages used.

integer format: int32
cost
required
One of:

An amount in each currency it can be priced in, as decimal strings with four decimal places. A currency with no price is null.

object
gbp

The amount in pounds sterling, e.g. “0.0350”.

string
nullable
eur

The amount in euros, e.g. “0.0410”.

string
nullable
daily
required

The same figures broken down by day.

Array<object>

Volume and cost for one client tag on one day.

object
date
required

The day (ISO 8601 date).

string format: date
sent
required

Outbound messages with this tag that day, whatever their outcome.

integer format: int32
parts
required

SMS parts those messages used.

integer format: int32
cost
required
One of:

An amount in each currency it can be priced in, as decimal strings with four decimal places. A currency with no price is null.

object
gbp

The amount in pounds sterling, e.g. “0.0350”.

string
nullable
eur

The amount in euros, e.g. “0.0410”.

string
nullable

Example generated

{
"period": {
"from": "2026-04-15",
"to": "2026-04-15"
},
"data": [
{
"tag": "example",
"sent": 1,
"parts": 1,
"cost": {
"gbp": "example",
"eur": "example"
},
"daily": [
{
"date": "2026-04-15",
"sent": 1,
"parts": 1,
"cost": {
"gbp": "example",
"eur": "example"
}
}
]
}
]
}

The request is not valid. The detail field says why, and errors lists any problems by field name.

Media typeapplication/problem+json

Why a request failed, in the RFC 9457 problem details format.

object
type
required

A URI identifying the kind of problem, ending in a code such as validation_failed, not_found, sending_blocked or rate_limited.

string
title
required

A short, fixed summary of the kind of problem.

string
status
required

The HTTP status code of the response.

integer format: int32
detail

What went wrong with this particular request, when there is more to say than the title.

string
nullable
errors

For validation failures, the problems found, keyed by field name (nested fields as template.name, list items as messages[3]).

object
key
additional properties
Array<string>
requestId
required

The id recorded for this error, matching the Request-Id header when one is sent. Quote it when contacting support.

string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"errors": {
"additionalProperty": [
"example"
]
},
"requestId": "example"
}

The API key or bearer token is missing or not valid, or the request signature could not be verified.

Media typeapplication/problem+json

Why a request failed, in the RFC 9457 problem details format.

object
type
required

A URI identifying the kind of problem, ending in a code such as validation_failed, not_found, sending_blocked or rate_limited.

string
title
required

A short, fixed summary of the kind of problem.

string
status
required

The HTTP status code of the response.

integer format: int32
detail

What went wrong with this particular request, when there is more to say than the title.

string
nullable
errors

For validation failures, the problems found, keyed by field name (nested fields as template.name, list items as messages[3]).

object
key
additional properties
Array<string>
requestId
required

The id recorded for this error, matching the Request-Id header when one is sent. Quote it when contacting support.

string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"errors": {
"additionalProperty": [
"example"
]
},
"requestId": "example"
}

The caller is not allowed to do this.

Media typeapplication/problem+json

Why a request failed, in the RFC 9457 problem details format.

object
type
required

A URI identifying the kind of problem, ending in a code such as validation_failed, not_found, sending_blocked or rate_limited.

string
title
required

A short, fixed summary of the kind of problem.

string
status
required

The HTTP status code of the response.

integer format: int32
detail

What went wrong with this particular request, when there is more to say than the title.

string
nullable
errors

For validation failures, the problems found, keyed by field name (nested fields as template.name, list items as messages[3]).

object
key
additional properties
Array<string>
requestId
required

The id recorded for this error, matching the Request-Id header when one is sent. Quote it when contacting support.

string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"errors": {
"additionalProperty": [
"example"
]
},
"requestId": "example"
}

The service is temporarily unavailable. Retry after the Retry-After header.

Media typeapplication/problem+json

Why a request failed, in the RFC 9457 problem details format.

object
type
required

A URI identifying the kind of problem, ending in a code such as validation_failed, not_found, sending_blocked or rate_limited.

string
title
required

A short, fixed summary of the kind of problem.

string
status
required

The HTTP status code of the response.

integer format: int32
detail

What went wrong with this particular request, when there is more to say than the title.

string
nullable
errors

For validation failures, the problems found, keyed by field name (nested fields as template.name, list items as messages[3]).

object
key
additional properties
Array<string>
requestId
required

The id recorded for this error, matching the Request-Id header when one is sent. Quote it when contacting support.

string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"errors": {
"additionalProperty": [
"example"
]
},
"requestId": "example"
}