Skip to content

Reference Data

Static lookup endpoints for country and language identifiers used in project metadata, and for resolving user objects returned by the API.


Countries

GET /countries

Returns all countries available as SEO project targets.

sh
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
  https://admin.trakk.ai/api/v1/countries
json
{ "data": [ { "id": 1, "label": "Sweden" }, { "id": 2, "label": "Norway" } ] }

GET /countries/

Path parameters

ParameterTypeDescription
countryintegerCountry ID - the same id returned by GET /countries. No slugs or ISO codes are accepted.
sh
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
  https://admin.trakk.ai/api/v1/countries/1
json
{ "data": { "id": 1, "label": "Sweden" } }

Returns 404 if the country ID does not exist or is not applicable for SEO projects.

FieldTypeDescription
idintegerCountry ID - use this in other API calls
labelstringDisplay name

Languages

GET /languages

Returns all languages available for generated content and reports.

sh
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
  https://admin.trakk.ai/api/v1/languages
json
{ "data": [ { "id": 3, "label": "Swedish" }, { "id": 4, "label": "English" } ] }

GET /languages/

Path parameters

ParameterTypeDescription
languageintegerLanguage ID - the same id returned by GET /languages. No locale codes (e.g. en, sv) are accepted.
sh
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
  https://admin.trakk.ai/api/v1/languages/3
json
{ "data": { "id": 3, "label": "Swedish" } }

Returns 404 if the language ID does not exist.

FieldTypeDescription
idintegerLanguage ID - use this in other API calls
labelstringDisplay name

Users

GET /users

Lists users visible to your token (your agency's users). Each user is returned in the same compact shape as user objects embedded in project and report responses - useful for resolving approved_by, managed_by, and similar fields.

sh
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
  https://admin.trakk.ai/api/v1/users
json
{
  "data": [
    {
      "id": 7,
      "name": "Jane Smith",
      "role": "Account Manager",
      "agency": { "id": 12, "name": "Digipartner Agency" }
    }
  ]
}

GET /users/

Path parameters

ParameterTypeDescription
userintegerUser ID - the same id returned by GET /users and the value found in embedded user objects (e.g. managing_user.id, created_by.id).
sh
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
  https://admin.trakk.ai/api/v1/users/7

Returns 404 if the user does not exist or is not visible to your token.

FieldTypeNullableDescription
idintegerNoUser ID
namestringNoFull name
rolestringYesRole display name
agency{id, name}YesThe user's agency, or null if none