Quickstart
Make your first request in three steps.
- In DM Tracker, open Organization settings, then the API section, and copy your API key.
- Store it in an environment variable so it stays out of your code:
export DMTRACKER_API_KEY="your_key". - List your five newest contacts:
curl "https://app.dmtracker.ai/api/v2/contacts?limit=5&fields=basic" \
-H "x-api-key: $DMTRACKER_API_KEY" \
-H "Content-Type: application/json"Every example in this reference sends the same two headers, x-api-key and Content-Type: application/json, so you can copy any of them as they are.
A successful response looks like this:
{
"status": "success",
"data": [
{
"id": "7c1e9a52-3f4b-4d2a-9e61-0b8f2d5c4a17",
"username": "jane.fitness",
"full_name": "Jane Cooper",
"profile_picture": null
}
],
"has_more": true,
"next_page": "eyJmIjoiY3JlYXRlZF9hdCIs..."
}