Skip to content

Getting Started ​

This guide walks you through making your first API call to Determ in under five minutes.

Prerequisites ​

  • A Determ account with an active plan that supports API access
  • Your API token (see below)

Step 1: Get Your API Token ​

  1. Log in to app.determ.com
  2. Navigate to Settings > Account Settings
  3. Locate the API token field
  4. Copy the token and store it securely

TIP

The API token field is available if your plan includes API access. If you don't see it, contact your account manager or Determ support.

Step 2: Make Your First Request ​

The simplest endpoint to test is GET /v2/me, which returns your user profile. Use it to verify that your token is working.

GET/v2/me

Returns the authenticated user's profile, including name, email, organization IDs, and account metadata.

bash
curl -X GET "https://api.mediatoolkit.com/v2/me" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
python
import requests

url = "https://api.mediatoolkit.com/v2/me"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN"
}

response = requests.get(url, headers=headers)
print(response.json())
javascript
const response = await fetch("https://api.mediatoolkit.com/v2/me", {
  method: "GET",
  headers: {
    "Authorization": "Bearer YOUR_API_TOKEN",
  },
});

const data = await response.json();
console.log(data);
php
<?php

$ch = curl_init("https://api.mediatoolkit.com/v2/me");

curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOUR_API_TOKEN",
    ],
]);

$response = curl_exec($ch);
curl_close($ch);

$data = json_decode($response, true);
print_r($data);

Step 3: Understand the Response ​

A successful request returns a 200 OK with your user profile:

json
{
  "id": 12345,
  "email": "you@company.com",
  "name": "Jane Smith",
  "verified": true,
  "languageCode": "en",
  "organizationIds": [100, 200],
  "organizationRoles": {
    "100": {
      "id": "admin",
      "name": "Admin",
      "isAdmin": true,
      "canUpdate": true,
      "canInvite": true,
      "canUpdateMentions": true
    }
  },
  "createdTime": 1672531200000,
  "lastLoginTime": 1713200000000
}
FieldTypeDescription
idintegerYour unique user ID
emailstringAccount email address
namestringDisplay name
verifiedbooleanWhether the email is verified
languageCodestringPreferred language (ISO 639-1)
organizationIdsinteger[]IDs of organizations you belong to
organizationRolesobjectYour role in each organization, keyed by organization ID — see Current User
createdTimeintegerAccount creation timestamp (epoch ms)
lastLoginTimeintegerLast login timestamp (epoch ms)

INFO

Timestamps are in Unix epoch milliseconds. Divide by 1000 to convert to seconds for most programming languages.

Exception: keyword and organization timestamps are ISO 8601 strings (e.g. "2024-01-15T10:30:00Z"), not epoch milliseconds — createdAt / editedAt returned by Create Keyword, and createdAt on the organization and createdAt / editedAt on its keywords in Get Organization.

Step 4: See the Request in Other Languages ​

The tabs below show the same GET /v2/me request in curl, Python, JavaScript, and PHP. Each carries the YOUR_API_TOKEN placeholder in its Authorization header — swap in your own token after you copy the snippet.

Next Steps ​

Now that you have verified your token works, here are the recommended next steps:

Built by Determ — Media Monitoring & Analytics