Skip to content

Conversion cap usage history

GET
/api/v2/client/applications/{application_id}/conversion-caps/{conversionCap_id}/history
curl --request GET \
--url 'https://app.affisemmp.com/api/v2/client/applications/12/conversion-caps/7/history?from=1763251200&to=1763856000' \
--header 'Authorization: Bearer <token>'

The usage of the cap by periods of its window in the range of from and to, oldest first. Periods nothing was counted in come with zeros and no segments. An interval or total cap has a single period, and from and to do not apply to it. A segment is what the cap counted between two resets under one limit: an edit of the limit starts a new segment in the period, a reset or a change of the type, window or filters starts a segment with a new reset_at; current marks the segment the cap counts in now. used of a period sums its segments of the current limit type of the cap. Rows counted under another window of the cap are not shown. A range of more than 1000 periods is rejected with 400.

application_id
required
integer

The ID of the application.

Example
12
conversionCap_id
required
integer

The ID of the conversion cap.

Example
7
from

Range start, unix seconds. Defaults to 48 hours, 30 days, 12 weeks or 12 months back for an hour, day, week or month cap.

integer
nullable

Range start, unix seconds. Defaults to 48 hours, 30 days, 12 weeks or 12 months back for an hour, day, week or month cap.

Example
1763251200
to

Range end, unix seconds, not before from. Defaults to and is capped at now.

integer
nullable

Range end, unix seconds, not before from. Defaults to and is capped at now.

Example
1763856000
Media type application/json
object
data
object
cap_id
integer
app_id
integer
limit_type
string
window
string
timezone
string
currency
string
periods
Array<object>
object
period_start
string
used
integer
over
integer
segments
Array<object>
object
reset_at
string
nullable
limit_type
string
limit
integer
used
integer
over
integer
current
boolean
Example
{
"data": {
"cap_id": 7,
"app_id": 12,
"limit_type": "count",
"window": "day",
"timezone": "Europe/Berlin",
"currency": "USD",
"periods": [
{
"period_start": "2026-11-22T00:00:00+01:00",
"used": 1000,
"over": 37,
"segments": [
{
"reset_at": null,
"limit_type": "count",
"limit": 1000,
"used": 1000,
"over": 37,
"current": false
}
]
},
{
"period_start": "2026-11-23T00:00:00+01:00",
"used": 640,
"over": 0,
"segments": [
{
"reset_at": null,
"limit_type": "count",
"limit": 1000,
"used": 640,
"over": 0,
"current": true
}
]
}
]
}
}
Media type application/json
One of:

Too many periods

object
message
string
Example
{
"message": "too many periods"
}

Cap of another application or deleted

Media type application/json
object
message
string
Example
{
"message": "Not found"
}
Media type application/json
object
message
string
Example
{
"message": "Conversion caps usage is temporarily unavailable."
}