Account

Embed
Preview of the card
<a href="https://trackified.net/docs/ref-account"><img src="https://trackified.net/docs/_api/public/orgs/e2a7773e-db9e-41cb-bd59-bd248745cac3/spaces/9d63a5d4-feb0-4803-84a5-dc68639362a6/pages/e926269f-9a19-42b8-b076-6f4ee3f878b5/social-card.svg?v=3e7ae33eec8b" alt="Account" width="600" height="315"></a>
GEThttps://api.trackified.net/v1/account/api-keys

List API keys

Parameters

limitintegerquery
= 50
offsetintegerquery
= 0

Code samples

cURL
curl -X GET "https://api.trackified.net/v1/account/api-keys" \
  -H "Authorization: Bearer $TRACKIFIED_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Keys
Example
{
  "data": [
    {
      "id": "string",
      "name": "string",
      "prefix": "string",
      "mode": "test",
      "scopes": [
        "string"
      ],
      "token": "string",
      "created_at": "2024-01-01T00:00:00Z",
      "last_used_at": "2024-01-01T00:00:00Z",
      "revoked_at": "2024-01-01T00:00:00Z"
    }
  ],
  "pagination": {
    "limit": 0,
    "offset": 0,
    "total": 0
  }
}
Schema
dataApiKey[]required
Show child parameters
idstring
namestring
prefixstring
modestring
test | live
scopesstring[]
tokenstring
Only present in the create response.
created_atstring
last_used_atstring
revoked_atstring
paginationobjectrequired
Show child parameters
limitinteger
offsetinteger
totalinteger
401 Error
Example
{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "string"
  }
}
Schema
errorobject
Show child parameters
codestring
messagestring
request_idstring
POSThttps://api.trackified.net/v1/account/api-keys

Create an API key

Request body

application/json
namestring
modestring
test | live
scopesstring[]
{
  "name": "string",
  "mode": "test",
  "scopes": [
    "string"
  ]
}

Code samples

cURL
curl -X POST "https://api.trackified.net/v1/account/api-keys" \
  -H "Authorization: Bearer $TRACKIFIED_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","mode":"test","scopes":["string"]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201 Created. The token is returned only here.
Example
{
  "id": "string",
  "name": "string",
  "prefix": "string",
  "mode": "test",
  "scopes": [
    "string"
  ],
  "token": "string",
  "created_at": "2024-01-01T00:00:00Z",
  "last_used_at": "2024-01-01T00:00:00Z",
  "revoked_at": "2024-01-01T00:00:00Z"
}
Schema
idstring
namestring
prefixstring
modestring
test | live
scopesstring[]
tokenstring
Only present in the create response.
created_atstring
last_used_atstring
revoked_atstring
DELETEhttps://api.trackified.net/v1/account/api-keys/{id}

Revoke an API key

Parameters

idstringpathrequired

Code samples

cURL
curl -X DELETE "https://api.trackified.net/v1/account/api-keys/{id}" \
  -H "Authorization: Bearer $TRACKIFIED_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Revoked
GEThttps://api.trackified.net/v1/account/usage

This month's usage and limits

Poll this to see quota before a create fails with 402 quota_exceeded. The period is the calendar month in UTC.

Code samples

cURL
curl -X GET "https://api.trackified.net/v1/account/usage" \
  -H "Authorization: Bearer $TRACKIFIED_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Usage
Example
{
  "period_start": "2024-01-01T00:00:00Z",
  "period_end": "2024-01-01T00:00:00Z",
  "plan": "string",
  "trackings_used": 0,
  "trackings_limit": 0,
  "trackings_remaining": 0,
  "rate_limit_per_minute": 0,
  "webhook_deliveries": 0,
  "carrier_volume": [
    {
      "carrier": "string",
      "count": 0
    }
  ]
}
Schema
period_startstringrequired
Start of the billing month (UTC).
period_endstringrequired
When the count resets (UTC).
planstringrequired
free, starter, pro or scale.
trackings_usedintegerrequired
Trackings added this period.
trackings_limitintegerrequired
trackings_remainingintegerrequired
trackings_limit minus trackings_used, never below 0.
rate_limit_per_minuteintegerrequired
webhook_deliveriesintegerrequired
Webhook delivery attempts this period.
carrier_volumeobject[]required
Show child parameters
carrierstringrequired
countintegerrequired
GEThttps://api.trackified.net/v1/usage

This month's usage and limits (alias)

Answers exactly like GET /v1/account/usage, which stays the canonical path.

Code samples

cURL
curl -X GET "https://api.trackified.net/v1/usage" \
  -H "Authorization: Bearer $TRACKIFIED_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

Updated