Skip to content

Quickstart

Create or request a key with the leads:read scope, then export it in your shell.

Terminal window
export DIALDOZER_API_KEY='ddz_live_replace_me'

Never commit the key. Use your platform secret store in production.

Terminal window
curl -G 'https://app.dialdozer.com/hooks/api_v1.php' \
--data-urlencode 'r=leads/42' \
-H "X-Api-Key: $DIALDOZER_API_KEY" \
-H 'Accept: application/json'
{
"ok": true,
"lead": {
"lead_id": 42,
"first_name": "Alice",
"last_name": "Johnson",
"phone": "15551234567",
"email": "alice@example.com",
"status": "NEW",
"campaign": "OUTBOUND"
}
}

Connect an agent using the MCP setup guide, or inspect the same resource from the terminal:

Terminal window
dialdozer leads get 42 --json

Treat non-2xx responses as failures and branch on the stable error value. See errors and rate limits.