Authentication Beta
Every Portal API request sends two credentials:
- API token, in the
Authorization: Bearerheader. It identifies you. Create one in the Portal under API tokens. - API key, as the
keyquery parameter. It identifies the project, and usage is billed to it. Find it in the Keys section of the project.
You need to be a member of the project the key belongs to.
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
"https://portal.addressfinder.net/api/v1/bulk/email/jobs?key=YOUR_API_KEY"
Keep the token on your server: it acts as you.
A missing or invalid token or key returns 401 Unauthorized. A key for a project you're not a member of returns 403 Forbidden.