Skip to main content
Every response from the ENS Ads API uses a standard JSON envelope. Successful responses always include a "status": "success" field alongside the relevant data. Error responses always include "status": "error" and a message field describing the problem. Inspect the HTTP status code first, then read the message field for details when handling errors in your integration.

Status codes

Success response format

All successful responses follow this envelope structure:
For the Fetch Campaigns endpoint, the envelope includes a data array and a count:
For tracking endpoints (impression and click), the envelope includes a message confirmation:

Error response format

All error responses include "status": "error" and a message field. The message value provides a human-readable description of what went wrong.

400 — Bad Request

Returned when a required parameter is absent or a value fails validation.

401 — Unauthorized

Returned when the Authorization header is missing or the supplied API key is not recognized.

429 — Too Many Requests

Returned when your integration exceeds the allowed request rate. Implement exponential backoff and retry logic to handle this gracefully. See Rate Limits for recommended strategies.