Skip to main content

Error Response Format

All errors follow a consistent JSON structure:

HTTP Status Codes

The API uses standard HTTP status codes:

Common Errors

Authentication Errors (401)

No API key provided in request headers.
Solution: Add your API key to the X-API-Key header.
API key doesn’t match the expected format.
Solution: Ensure your API key starts with dem_ and is 47 characters total.
API key not found in database or has been deactivated.
Solution: Generate a new API key in your dashboard settings.
API key has passed its expiration date.
Solution: Create a new API key and update your integration.

Permission Errors (403)

API key doesn’t have the required scope.
Solution: Create a new API key with the required scope, or add the scope to your existing key in the dashboard.

Validation Errors (400)

Request data failed validation.
Solution: Fix the validation errors listed in details and retry.

Resource Errors

Requested resource doesn’t exist.
Solution: Verify the resource ID is correct and belongs to your organization.
Contact with email already exists.
Solution: Use PATCH /api/v1/contacts/:id to update the existing contact instead.
Trying to execute an inactive sequence.
Solution: Activate the sequence in your dashboard before executing it via API.

Rate Limiting (429)

Too many requests in a short period.
Solution: Wait for the time specified in retryAfter (seconds) before retrying. Implement exponential backoff in your integration.Rate Limits:
  • 1,000 requests per hour per organization
  • 100 requests per minute per organization

Server Errors (500)

Unexpected server-side error.
Solution: This is a temporary error. Retry your request with exponential backoff. If the error persists, contact support@demeterrr.com.

Error Handling Best Practices

Need Help?

If you encounter persistent errors or need assistance:

Support

Email our support team

Status Page

Check API status