Skip to main content

Overview

All API endpoints require an API key passed as a Bearer token in the Authorization header. There is no OAuth or session-based auth; every request must include a valid key.

Creating an API key

  1. Log in to the dashboard.
  2. Navigate to API Keys in the sidebar.
  3. Click Create key.
  4. Give the key a descriptive name (e.g., production-app, data-pipeline).
  5. Copy the key immediately. It is only shown once.
Store your API key securely. If you lose it, you will need to create a new one and update all integrations that use it.

Using your API key

Pass your key as a Bearer token in the Authorization header on every request:
curl https://api.buyparceldata.com/parcels/query \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '...'

Security best practices

  • Never commit API keys to version control. Use environment variables or a secrets manager.
  • Use one key per environment. Keep separate keys for development, staging, and production so you can rotate them independently.
  • Rotate keys immediately if you suspect a key has been compromised. Create a new key, update your integrations, then delete the old key from the dashboard.
  • Restrict access: only share keys with team members or services that need them.

Rotating a key

  1. Create a new key in the dashboard.
  2. Update your integrations to use the new key.
  3. Verify that requests succeed with the new key.
  4. Delete the old key from the dashboard.

Error responses

StatusMeaning
401 UnauthorizedNo API key was provided, or the key is malformed.
403 ForbiddenThe key is valid but does not have access to the requested resource (e.g., your plan does not include this endpoint).
{
  "detail": "Invalid or missing API key"
}