> This page is part of EVVA for Developers (https://developers.evvahub.com), the documentation of the EVVA Partner API. The API is in developer preview and the SDK packages are not yet published: do not suggest installing them. Index: https://developers.evvahub.com/llms.txt

# Errors

Every error is the same JSON envelope. Branch on `code`; use the HTTP status as the fallback for a code you do not
know yet, because new codes may be added within v1.

**`Error envelope`**

```json title="Error envelope"
{
  "code": "TOO_MANY_MESSAGES",
  "error": "Too many messages",
  "details": { "retryAfterSec": 2, "level": "conversation" },
  "requestId": "3c9a4f0b-8d2e-4f61-b7a3-5e1d2c0f9b84"
}
```

`error` is for people and may change. `details` is optional and specific to the code. `requestId` equals the
`X-Request-Id` response header: quote it when you contact EVVA.

## By HTTP status

| Status       | Meaning                                                          | Retry?                                         |
| ------------ | ---------------------------------------------------------------- | ---------------------------------------------- |
| `202`        | Not an error: [approval required](/approvals). Nothing was done. | Re-send after approval                         |
| `400`        | The request is malformed or fails validation.                    | No — fix the request                           |
| `401`        | No valid access token.                                           | Once, with a new token                         |
| `403`        | You may not do this, for this creator, now.                      | No                                             |
| `404`        | Not found — or another creator's object, which looks the same.   | No                                             |
| `409`        | A conflict with the current state.                               | No — read the state first                      |
| `410`        | Gone: a feed cursor past retention.                              | No — resync                                    |
| `413`, `415` | The body is too large or not JSON.                               | No                                             |
| `422`        | Well-formed, but cannot be processed.                            | No                                             |
| `429`        | A rate limit.                                                    | Yes, after `Retry-After`                       |
| `500`        | An internal error. Nothing internal is disclosed.                | Yes, with backoff, if the write was idempotent |
| `502`        | An upstream provider failed.                                     | Yes, with backoff                              |
| `503`        | Temporarily unavailable.                                         | Yes, after `Retry-After`                       |

## Authentication and access

| Code                        | HTTP | Meaning                                                                                                                     | What to do                                                      |
| --------------------------- | ---- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| `UNAUTHORIZED`              | 401  | No credential was sent.                                                                                                     | Send `Authorization: Bearer <token>`.                           |
| `INVALID_TOKEN`             | 401  | The token is malformed, expired or revoked, or no longer valid for your application.                                        | Request a new token and retry once.                             |
| `APPLICATION_NOT_ACTIVE`    | 403  | Your application is pending review, disabled or revoked.                                                                    | Check the application in the Partner Hub.                       |
| `AGENCY_SUSPENDED`          | 403  | Your agency is not active.                                                                                                  | Contact EVVA.                                                   |
| `OPERATION_NOT_EXPOSED`     | 403  | This operation is not available to applications.                                                                            | Use only operations listed in the API reference.                |
| `INSUFFICIENT_SCOPE`        | 403  | Your token, or your application's allowed scopes, lack a scope the operation needs. The `WWW-Authenticate` header names it. | Request a token with the scope, or ask your agency to allow it. |
| `NOT_ASSIGNED`              | 403  | No grant gives your application this creator, or the grant does not cover this operation.                                   | Ask your agency to grant the creator.                           |
| `GRANT_REVOKED`             | 403  | The creator is not linked to your agency, or the link was revoked.                                                          | Stop acting for the creator.                                    |
| `OAUTH_SCOPE_MISSING`       | 403  | The creator's consent does not cover what the operation needs.                                                              | The creator must extend the consent.                            |
| `CREATOR_INTEGRATIONS_HELD` | 403  | EVVA has paused integrations for this creator.                                                                              | Stop acting for the creator until the hold is lifted.           |
| `CREATOR_SUSPENDED`         | 403  | The creator's account status does not allow this action now.                                                                | Do not retry the action.                                        |
| `AGENCY_CONTEXT_MISMATCH`   | 403  | `X-Agency-Id` does not name your application's agency.                                                                      | Drop the header or send your agency's id.                       |
| `CREATOR_CONTEXT_MISMATCH`  | 403  | `X-Creator-Id` differs from the path's `creatorId`.                                                                         | Drop the header or fix it.                                      |
| `FORBIDDEN`                 | 403  | Refused for another access reason.                                                                                          | Do not retry.                                                   |
| `TEMPORARILY_UNAVAILABLE`   | 503  | Your access could not be evaluated just now.                                                                                | Retry after `Retry-After` (5 s).                                |

Discover what you may do before you call: [`GET /partner/v1/app/capabilities`](https://developers.evvahub.com/api-reference/application/get-application-capabilities).
See [Scopes and grants](/authentication/scopes).

## Requests and idempotency

| Code                           | HTTP          | Meaning                                                                           | What to do                                                                |
| ------------------------------ | ------------- | --------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `INVALID_REQUEST`              | 400, 413, 415 | Validation failed, or the body did not parse; `details` lists the fields.         | Fix the request.                                                          |
| `NOT_FOUND`                    | 404           | Missing, or another creator's object.                                             | Do not retry.                                                             |
| `CONFLICT`                     | 409           | A generic state conflict.                                                         | Read the resource, then decide.                                           |
| `IDEMPOTENCY_KEY_REUSED`       | 409           | This `Idempotency-Key` was already used with a different request.                 | Use a new key for a new request.                                          |
| `IDEMPOTENCY_KEY_REQUIRED`     | 400           | This operation requires an `Idempotency-Key`.                                     | Send one.                                                                 |
| `IDEMPOTENCY_KEY_CONFLICT`     | 409           | Some content, profile and link writes: the key was used with a different request. | Use a new key for a new request.                                          |
| `IDEMPOTENT_REQUEST_IN_FLIGHT` | 409           | The first request with this key is still running.                                 | Retry the same request shortly.                                           |
| `DIGEST_CONFLICT`              | 409           | Marketplace writes: the key was used with a different request.                    | Use a new key for a new request.                                          |
| `INTERNAL_ERROR`               | 500           | Something failed inside EVVA.                                                     | Retry idempotent requests with backoff; quote `requestId` if it persists. |

See [Idempotency](/conventions/idempotency).

## Limits and availability

| Code                           | HTTP | Meaning                                                                 | What to do                                                 |
| ------------------------------ | ---- | ----------------------------------------------------------------------- | ---------------------------------------------------------- |
| `RATE_LIMIT_EXCEEDED`          | 429  | A request limit, or your share of capacity, is used up.                 | Wait `Retry-After`.                                        |
| `TOO_MANY_MESSAGES`            | 429  | A message send limit is full; `details.level` says which.               | Wait `Retry-After`; spread sends across conversations.     |
| `SERVICE_UNAVAILABLE`          | 503  | The platform is saturated or a dependency is down. Nothing was written. | Retry after `Retry-After` with the same `Idempotency-Key`. |
| `CREATOR_STANDING_UNAVAILABLE` | 503  | The creator's account status could not be read.                         | Retry after `Retry-After`.                                 |
| `MEDIA_STORAGE_UNAVAILABLE`    | 503  | Object storage did not answer.                                          | Retry after `Retry-After`.                                 |
| `BUYER_PSEUDONYMS_UNAVAILABLE` | 503  | A response that names a buyer cannot be built right now.                | Retry after `Retry-After` (30 s).                          |

See [Rate limits and quotas](/authentication/rate-limits).

## Messages

| Code                                       | HTTP | Meaning                                                                                                                                                                                                                                                                            | What to do                                                                                                                               |
| ------------------------------------------ | ---- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `AUTHORSHIP_NOT_PERMITTED`                 | 403  | The creator's consent does not cover the declared authorship (`details.requiredScope` names the missing scope).                                                                                                                                                                    | Ask the agency to obtain the consent; do not retry.                                                                                      |
| `AUTHORSHIP_REQUIRED`                      | 400  | A send (direct, mass, bulk item or order message) must declare how the message was written.                                                                                                                                                                                        | Send `authorship`.                                                                                                                       |
| `AUTHORSHIP_INVALID`                       | 400  | That authorship cannot be declared by an application.                                                                                                                                                                                                                              | Use one of the values in `details.authorship`.                                                                                           |
| `OPERATOR_REF_REQUIRED`                    | 400  | An operator-written message must name its operator.                                                                                                                                                                                                                                | Send `operatorRef`.                                                                                                                      |
| `OPERATOR_REF_INVALID`                     | 400  | `operatorRef` is malformed, or sent with an automated message.                                                                                                                                                                                                                     | Fix or drop it.                                                                                                                          |
| `RECIPIENT_NOT_ACCEPTING_MESSAGES`         | 403  | The fan does not accept messages from the creator.                                                                                                                                                                                                                                 | Do not retry.                                                                                                                            |
| `CREATOR_ACCEPTS_FOLLOWERS_ONLY`           | 403  | The creator's delivery policy allows followers only.                                                                                                                                                                                                                               | Do not retry.                                                                                                                            |
| `CREATOR_ACCEPTS_FOLLOWERS_OR_SUBSCRIBERS` | 403  | The creator's delivery policy allows followers or subscribers only.                                                                                                                                                                                                                | Do not retry.                                                                                                                            |
| `CREATOR_ACCEPTS_FANS_WHO_GIFTED`          | 403  | The creator's delivery policy allows fans who sent a gift only.                                                                                                                                                                                                                    | Do not retry.                                                                                                                            |
| `PRICE_NOT_PERMITTED`                      | 403  | The price was refused, and nothing was written. `details.requiredScope` names the scope that allows it. `details.reason` is `CONSENT` when your access does not cover that scope, or `ACTION_APPROVAL_REQUIRED` when the price could not go through [action approval](/approvals). | For `CONSENT`, ask for the scope or send without a price. For `ACTION_APPROVAL_REQUIRED`, check the price against the operation's rules. |
| `MEDIA_NOT_READY`                          | 409  | An attachment is still processing.                                                                                                                                                                                                                                                 | Wait until the media is ready.                                                                                                           |
| `ASSET_ALREADY_DELIVERED`                  | 409  | This media was already sent to this fan for free, so it cannot be sold to them.                                                                                                                                                                                                    | Choose other media.                                                                                                                      |
| `ASSET_REACHABLE_ELSEWHERE`                | 409  | The fan can already open this file elsewhere, so it cannot be sent with a lifetime.                                                                                                                                                                                                | Choose other media.                                                                                                                      |
| `PAID_PREVIEW_UNAVAILABLE`                 | 409  | A file to sell has no locked preview.                                                                                                                                                                                                                                              | Choose other media.                                                                                                                      |
| `MESSAGE_EDIT_NOT_THE_SENDER`              | 403  | Only the message's own sender may edit it.                                                                                                                                                                                                                                         | Do not retry.                                                                                                                            |
| `MESSAGE_EDIT_WINDOW_CLOSED`               | 403  | The edit window has closed.                                                                                                                                                                                                                                                        | Do not retry.                                                                                                                            |
| `MESSAGE_EDIT_RETRACTED`                   | 403  | The message was withdrawn.                                                                                                                                                                                                                                                         | Do not retry.                                                                                                                            |
| `MESSAGE_EDIT_NOT_DELIVERABLE`             | 403  | The delivery policy refuses the new text.                                                                                                                                                                                                                                          | Do not retry.                                                                                                                            |
| `MESSAGE_EDIT_STALE_REVISION`              | 409  | The message changed since you read it.                                                                                                                                                                                                                                             | Read it again, then edit.                                                                                                                |
| `MESSAGE_ALREADY_SOLD`                     | 409  | A message someone paid for cannot be withdrawn.                                                                                                                                                                                                                                    | Do not retry.                                                                                                                            |
| `TEMPLATE_LIMIT_REACHED`                   | 409  | The creator has the maximum number of saved replies.                                                                                                                                                                                                                               | Delete one first.                                                                                                                        |
| `DAILY_CAP_REACHED`                        | 409  | The creator's daily mass-message cap is reached.                                                                                                                                                                                                                                   | Queue it on another day.                                                                                                                 |
| `MEDIA_IN_REVIEW`                          | 409  | A mass-message attachment is still under review.                                                                                                                                                                                                                                   | Queue it later.                                                                                                                          |
| `QUEUED_AUDIENCE_LOCKED`                   | 409  | A queued mass message keeps its audience.                                                                                                                                                                                                                                          | Cancel and create a new one.                                                                                                             |
| `QUEUED_SCHEDULE_LOCKED`                   | 409  | A queued mass message keeps its schedule.                                                                                                                                                                                                                                          | Cancel and create a new one.                                                                                                             |
| `FAN_LIST_NAME_TAKEN`                      | 409  | A fan list with this name exists.                                                                                                                                                                                                                                                  | Choose another name.                                                                                                                     |
| `FAN_LIST_LIMIT_REACHED`                   | 409  | The creator has the maximum number of fan lists.                                                                                                                                                                                                                                   | Delete one first.                                                                                                                        |

## Conversation coordination

| Code                    | HTTP | Meaning                                                                 | What to do                                                   |
| ----------------------- | ---- | ----------------------------------------------------------------------- | ------------------------------------------------------------ |
| `LEASE_HELD`            | 409  | Another holder leases the conversation (or a consumer-group partition). | Do not send; retry after `Retry-After` if present.           |
| `STALE_FENCING_TOKEN`   | 409  | Your fencing token is not the current lease's.                          | Stop: you no longer hold the lease.                          |
| `AUTOMATION_PAUSED`     | 409  | A person replied recently, or the conversation was handed to a person.  | Wait `Retry-After`, or leave the conversation to the person. |
| `CONVERSATION_ADVANCED` | 409  | A newer message arrived than the one you expected.                      | Read the conversation, then decide again.                    |
| `HANDOFF_NOT_PERMITTED` | 403  | An application can hand a conversation to a person only.                | Do not retry.                                                |

See [Conversation leases and handoff](/conversation-leases).

## Approvals

Sensitive operations may need a person's approval. See [Approvals and automatic limits](/approvals).

| Code                      | HTTP     | Meaning                                                               | What to do                                                      |
| ------------------------- | -------- | --------------------------------------------------------------------- | --------------------------------------------------------------- |
| `APPROVAL_REQUIRED`       | 202      | Not an error: the action waits for a person. Nothing was done.        | Wait for the decision, then re-send with `Partner-Approval-Id`. |
| `ACTION_DENIED_BY_POLICY` | 403      | Your agency's policy denies this action to applications.              | Do not retry.                                                   |
| `APPROVAL_INVALID`        | 403      | `Partner-Approval-Id` is unknown, malformed or another application's. | Send the id you were given.                                     |
| `APPROVAL_MISMATCH`       | 403      | The approval was given for a different creator, operation or payload. | Re-send exactly the approved request.                           |
| `APPROVAL_DECLINED`       | 403      | A person declined the action.                                         | Do not retry.                                                   |
| `APPROVAL_REVOKED`        | 403, 409 | The approval was voided because access or the policy changed.         | Ask again if still needed.                                      |
| `APPROVAL_PENDING`        | 409      | Not decided yet.                                                      | Wait for the decision event.                                    |
| `APPROVAL_EXPIRED`        | 409      | The request or approval expired.                                      | Ask again with a new `Idempotency-Key`.                         |
| `APPROVAL_CONSUMED`       | 409      | The approval was already spent.                                       | Read the resource; do not repeat.                               |

## Event feed

| Code               | HTTP | Meaning                                                                 | What to do                                           |
| ------------------ | ---- | ----------------------------------------------------------------------- | ---------------------------------------------------- |
| `INVALID_CURSOR`   | 400  | The cursor is malformed, altered, or another application's.             | Use a cursor this application received.              |
| `CURSOR_EXPIRED`   | 410  | The cursor is older than the feed's retention.                          | Resync from the REST API, then read without `after`. |
| `NOT_LEASED`       | 409  | A committed cursor covers a partition this consumer group never leased. | Lease the partitions first.                          |
| `FEED_UNAVAILABLE` | 503  | The feed is not available on this deployment.                           | Retry after `Retry-After` (30 s).                    |

See [Event feed and consumer groups](/event-feed).

## Media

| Code                                    | HTTP | Meaning                                                                          |
| --------------------------------------- | ---- | -------------------------------------------------------------------------------- |
| `MEDIA_UPLOAD_INVALID_KIND`             | 400  | Only image, video and audio uploads are supported.                               |
| `MEDIA_UPLOAD_UNSUPPORTED_CONTENT_TYPE` | 400  | The MIME type is not supported.                                                  |
| `MEDIA_UPLOAD_INVALID_SHA256`           | 400  | `sha256` is not a 64-character hex digest.                                       |
| `MEDIA_UPLOAD_SIZE_INVALID`             | 400  | `sizeBytes` is not a positive integer.                                           |
| `MEDIA_UPLOAD_SIZE_EXCEEDED`            | 400  | The file is over the upload limit.                                               |
| `MEDIA_UPLOAD_PART_OUT_OF_RANGE`        | 400  | A part number outside the upload's parts.                                        |
| `MEDIA_UPLOAD_TOO_MANY_PARTS`           | 400  | Too many parts were requested.                                                   |
| `TOO_MANY_IDS`                          | 400  | Too many ids in one request.                                                     |
| `MEDIA_FETCH_GRANT_INVALID`             | 403  | The byte-fetch grant is malformed, expired or another application's.             |
| `MEDIA_UPLOAD_SESSION_NOT_FOUND`        | 404  | No such upload session for this creator.                                         |
| `MEDIA_NOT_FOUND`                       | 404  | No such media for this creator.                                                  |
| `STORAGE_LIMIT_REACHED`                 | 409  | The creator's vault is full, or this file would overfill it.                     |
| `MEDIA_UPLOAD_SESSION_EXPIRED`          | 409  | The upload session expired before finalize.                                      |
| `MEDIA_UPLOAD_SESSION_NOT_PENDING`      | 409  | The session is not pending.                                                      |
| `MEDIA_UPLOAD_NOT_RESUMABLE`            | 409  | A single-part session: its one upload URL is never signed again.                 |
| `MEDIA_UPLOAD_OBJECT_MISSING`           | 409  | The bytes were never uploaded.                                                   |
| `MEDIA_UPLOAD_SIZE_MISMATCH`            | 409  | The stored size differs from the session.                                        |
| `MEDIA_UPLOAD_CONTENT_TYPE_MISMATCH`    | 409  | The stored type differs from the session.                                        |
| `MEDIA_UPLOAD_CONTENT_BYTES_MISMATCH`   | 409  | The stored bytes are not a file of the declared type.                            |
| `MEDIA_ALBUM_NAME_CONFLICT`             | 409  | An album with this name exists.                                                  |
| `MEDIA_TAG_NAME_CONFLICT`               | 409  | A tag with this name exists.                                                     |
| `MEDIA_TAG_IN_USE`                      | 409  | The tag is still assigned.                                                       |
| `MEDIA_ATTACHMENT_SET_MISMATCH`         | 409  | The attached files differ from the set you named; `details.attached` lists them. |

## Other areas

Content, marketplace, orders and AI operations forward the answers of the creator's own features. Their codes
appear on each operation's page in the [API reference](/api-reference): for example `HANDLE_IN_USE` (409),
`GOAL_CHANGED` (409), `STATE_CHANGE_REFUSED` (409), `COVER_ASSET_UNUSABLE` and `SAMPLE_ASSET_UNUSABLE` (409),
`CAMPAIGN_UNAVAILABLE` (422), `IMPORT_FAILED` (422), `AI_IDENTITY_CREATOR_ONLY` (403) and
`PROVIDER_UNAVAILABLE` (502). When a code is not listed here, act on its HTTP status.

## Token endpoint errors

The token endpoint ([`POST /partner/v1/oauth/token`](https://developers.evvahub.com/api-reference/authentication/issue-token)) and the revocation
endpoint answer standard OAuth 2.0 error bodies, not the envelope above:

**`400 invalid_scope`**

```json title="400 invalid_scope"
{
  "error": "invalid_scope",
  "error_description": "The requested scope is invalid, unknown, or exceeds the scope allowed for the client."
}
```

| `error`                   | HTTP | Meaning                                                                                                                                                  |
| ------------------------- | ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `invalid_request`         | 400  | The request is malformed: wrong content type, a parameter sent twice or in the URL, more than one authentication method. `error_description` says which. |
| `invalid_client`          | 401  | Client authentication failed. The answer is the same whatever failed. With HTTP Basic it carries `WWW-Authenticate: Basic realm="evva-partner"`.         |
| `unauthorized_client`     | 400  | Your application or your agency is not active.                                                                                                           |
| `invalid_scope`           | 400  | A requested scope is unknown or not allowed for your application.                                                                                        |
| `unsupported_grant_type`  | 400  | The grant type is not supported.                                                                                                                         |
| `temporarily_unavailable` | 503  | The endpoint could not decide. `Retry-After: 5`.                                                                                                         |

Every token-endpoint response carries `Cache-Control: no-store` and `Pragma: no-cache`.

## Realtime errors

On a realtime connection, errors arrive as `error` frames with one of these codes: `INVALID_FRAME`,
`SUBSCRIPTION_LIMIT_EXCEEDED`, `UNSUPPORTED_PROTOCOL_VERSION`, `UNAUTHENTICATED`, `INTERNAL_ERROR`,
`SESSION_REVOKED`, `RESUME_REJECTED`, `ACK_INVALID` and `SUBSCRIPTION_REVOKED`. Close codes and what to do are on
[Realtime](/realtime).

## In the SDKs

Each official SDK maps the envelope to typed errors (for example a rate-limit error that carries `retryAfter` and
`level`, an idempotency-conflict error, and an approval-required error that carries the approval id) and keeps
`code`, `details` and `requestId` on every error. See [SDKs](/sdks/overview).

## Next steps

#### [Rate limits and quotas](/authentication/rate-limits)

Back off correctly on `429` and `503`.

#### [Idempotency](/conventions/idempotency)

Retry writes safely.

#### [Scopes and grants](/authentication/scopes)

Avoid `403` by knowing what you may do.

#### [API reference](/api-reference)

Each operation's own responses.