Skip to content

Conversion caps usage in the current period

GET
/v1/conversion-caps/usage
curl --request GET \
--url 'https://restapi.affattr.com/v1/conversion-caps/usage?app_id=1' \
--header 'API-KEY: <API-KEY>'

Each not deleted cap of the application, the inactive ones too, ordered by id. limit, used and remaining are conversions for a count cap and an amount in the application currency for a cost cap. Periods start in the application timezone. next_reset_at is the start of the next period of an hour, day, week or month cap and null for an interval or total cap. reset_at is the last reset of the counter or change of the type, window or filters of the cap, null if there was none.

app_id
required
integer

Application id

Usage of the caps

Media type application/json
object
data
object
app_id
integer
caps
Array<object>
object
cap_id
integer
is_active
boolean
limit
number
limit_type
string
Allowed values: count cost
next_reset_at

NextResetAt is when the counter starts over by itself: the start of the next period of a calendar window, null for the interval and the total ones.

string
over

Over is the number of conversions that went over the limit in the period.

integer
period_start

PeriodStart is the start of the current period, null for the total window.

string
remaining
number
reset_at

ResetAt is the last manual reset or change of what the cap counts, null if there was none.

string
used
number
used_percent
number
window
string
Allowed values: hour day week month interval total
currency

Currency is the application currency, the unit of the cost caps.

string
timezone

Timezone is the zone the periods start in: the application timezone, UTC if it is unknown.

string
Example
{
"data": {
"caps": [
{
"limit_type": "count",
"window": "hour"
}
]
}
}

Bad request

Media type application/json
string
Example generated
example

No credentials (answered with 403 until default-deny is enabled)

Media type application/json
string
Example generated
example

Invalid credentials or no access

Media type application/json
string
Example generated
example

Internal server error

Media type application/json
string
Example generated
example