> 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

# Scopes and grants

A scope names one kind of access, such as `read:messages` or `write:media`. Four sets of scopes meet on every request, and the application gets only what all four share:

| Set                | Who decides                                                                                 | Where                                                         |
| ------------------ | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| **Allowed scopes** | The agency owner, when registering the application. The most the application can ever hold. | Partner Hub, **Integrations → Applications**                  |
| **Grants**         | The agency owner, per creator or per creator group.                                         | The application's **Permissions & creators** tab              |
| **Consent**        | The creator, through their link to your agency.                                             | Made when the creator connects to your agency                 |
| **Token scopes**   | Your server, with the `scope` parameter. Defaults to every allowed scope.                   | [Requesting tokens](/authentication/tokens#narrowing-a-token) |

An operation runs only when **every** scope it requires is in all four sets for that creator. The [authentication overview](/authentication/overview#effective-access) shows the whole rule.

## The scope vocabulary

Each scope is an action and a resource (`read:messages`), sometimes with a qualifier (`write:messages:automated`). `read:` reads, `write:` changes, `delete:` removes something for good, and `money:` sets a price or makes a financial commitment.

| Area                          | Read                                                         | Write                                                                                          | Sensitive                                                          |
| ----------------------------- | ------------------------------------------------------------ | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| Profile and storefront        | `read:profile`                                               | `write:profile`                                                                                | `money:storefront`, `money:subscription`, `delete:storefront_link` |
| Messages and conversations    | `read:messages`, `read:buyer_context`, `read:receipts`       | `write:messages`, `write:messages:automated`, `write:messages:operator`, `write:paid_messages` | `write:messages:view_once`, `write:blocks`, `write:reports`        |
| Fans                          | `read:subscribers`, `read:notes`                             | `write:subscribers`, `write:notes`                                                             | `read:subscribers:spend`, `read:presence`                          |
| Mass messages and automations | `read:mass_messages`, `read:ice_breaker`, `read:automations` | `write:mass_messages`, `write:ice_breaker`, `write:automations`                                | `write:automations:enable`                                         |
| Content                       | `read:content`                                               | `write:content`                                                                                | `delete:content`, `delete:comments`                                |
| Media vault                   | `read:media`                                                 | `write:media`                                                                                  | `delete:media`, `money:media`                                      |
| Analytics, revenue and links  | `read:analytics`, `read:revenue`, `read:links`               | `write:links`, `write:goals`                                                                   | —                                                                  |
| Marketplace                   | `read:marketplace`                                           | `write:marketplace`                                                                            | `money:marketplace`                                                |
| Orders                        | `read:orders`                                                | `write:orders`                                                                                 | `write:orders:fulfilment`                                          |
| AI                            | `read:ai`                                                    | —                                                                                              | `write:ai`, `write:ai:voice`                                       |

A few scopes need a closer look:

| Scope                      | What to know                                                                                                                                                                                                                                                           |
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `write:messages:automated` | Required for every message an application sends or changes for a creator: with `write:messages` to send (singly or in bulk), edit a message, take a conversation lease or hand a conversation off; with `write:mass_messages` to create, edit or queue a mass message. |
| `write:messages:operator`  | Lets the application record a message as written by a live operator of your CRM rather than by automation. See [Message authorship](/message-authorship).                                                                                                              |
| `read:buyer_context`       | The minimal, pseudonymous context about the fan in a conversation. See [Buyer pseudonyms](/buyer-pseudonyms).                                                                                                                                                          |
| `read:revenue`             | Every money figure — insights, the sales summary, economics terms, the earnings goal. `read:analytics` covers only analytics without money.                                                                                                                            |
| `write:paid_messages`      | Pricing a message: quoting a price, and sending a paid message.                                                                                                                                                                                                        |
| `money:storefront`         | Setting or changing the storefront's support amounts. Other storefront changes need only `write:profile`; a price change without this scope is refused with `403 PRICE_NOT_PERMITTED`.                                                                                 |
| `write:ai`                 | Anything that spends the creator's paid AI allowance. `write:ai:voice` is needed on top for anything that uses the creator's own voice or likeness.                                                                                                                    |

Each operation in the [API reference](/api-reference) lists the scopes it requires. Some scopes do not unlock any application operation yet; [`GET /partner/v1/app/capabilities`](#discovering-what-the-application-may-do) shows exactly which operations each scope unlocks today.

### Sensitive scopes and conditional operations

Operations that change a price or make a financial commitment, delete something, block or report, send a view-once message, confirm an order's fulfilment, or spend the creator's paid AI allowance are **conditional**. An application can call them only through an approval: a person in your agency approves the action, or it falls within an automatic limit your agency set. Capability discovery marks these operations with `"conditional": true`. See [Approvals and automatic limits](/approvals).

## What a creator's consent covers

A creator's link to your agency is their consent, and it caps every application of your agency. When a creator accepts your agency's default connection request, the link carries these scopes:

`read:profile` `write:profile` `read:messages` `write:messages` `write:paid_messages` `read:subscribers` `write:subscribers` `read:notes` `write:notes` `read:content` `write:content` `read:media` `write:media` `read:mass_messages` `write:mass_messages` `read:ice_breaker` `write:ice_breaker` `read:automations` `write:automations` `read:analytics` `read:revenue` `read:links` `write:links` `write:goals` `read:marketplace` `write:marketplace` `read:orders` `write:orders` `read:ai`

Every scope in the **Sensitive** column above, and `write:messages:operator`, is left out of that default. A creator's link carries such a scope only when the creator approved a connection request that names it. A creator can end the link at any time, and every application of your agency loses that creator from the next request.

## Allowed scopes

The agency owner chooses the application's allowed scopes when registering it — at least one, and as few as the integration needs. They are a ceiling, not access: the application reaches no creator until it is granted one.

* Narrowing the allowed scopes is always possible, and takes effect on existing tokens from their next request.
* A live application that has passed EVVA's review cannot have scopes added to it. While it is still waiting for review, or in the sandbox, you can change them freely.

## Granting creators

Nothing is granted automatically, not even for creators your agency manages. To let the application act for a creator, the agency owner grants it in the Partner Hub:

#### Open the application

**Integrations → Applications →** your application **→ Permissions & creators**.

#### Grant access

Under **Who**, choose **One creator** or **A creator group**, then pick the creator or group.

#### Choose the scopes

Only scopes that are both allowed for the application and covered by the creator's link can be chosen. Save with **Grant**.

The same tab shows **Creators this application can act for now**, with each creator's effective scopes and the grant they come through. Team leads can see grants; only the agency owner can change them.

How grants behave:

* **One grant per creator or group.** Granting again replaces that grant's scopes. Revoking a grant takes effect from the next request.
* **An individual grant must fit the creator's consent.** A grant to one creator is refused if it names a scope the creator's link does not cover; it is never trimmed silently.
* **A group grant follows the group's current members.** It reaches whoever is a member at the moment of each request. Add or remove a member and the application's access changes on its next request — no new token, no restart.
* **Groups never widen consent.** Each member gets only the scopes that are in the grant, in the allowed scopes and in that member's own link.
* **Only linked creators count.** A creator can join a group only while linked to your agency; if their link ends, the group stops reaching them even though they are still listed.
* **Deleting a group revokes every grant that names it**, immediately.

Creator groups are managed under **Integrations → Creator groups** (**New group**). A group holds at most 1,000 creators.

## Discovering what the application may do

Two calls tell you, at any moment, what the application can do. Both reflect the current grants, consent and token, so call them again after your agency changes access.

[`GET /partner/v1/accounts`](https://developers.evvahub.com/api-reference/accounts/list-accounts) lists the creators the application can act for, each with the scopes it may exercise there now:

**`GET /partner/v1/accounts — 200`**

```json title="GET /partner/v1/accounts — 200"
{
  "items": [
    {
      "creatorId": "cre_123",
      "handle": "example_creator",
      "displayName": "Example Creator",
      "scopes": ["read:messages", "read:subscribers", "write:messages", "write:messages:automated"]
    }
  ]
}
```

[`GET /partner/v1/app/capabilities`](https://developers.evvahub.com/api-reference/application/get-application-capabilities) lists every operation open to applications with the scopes it requires and, per creator, the operations the application can call for them now:

**`GET /partner/v1/app/capabilities — 200 (shortened)`**

```json title="GET /partner/v1/app/capabilities — 200 (shortened)"
{
  "apiVersion": "v1",
  "principal": "application",
  "operations": [
    {
      "operation": "sendMessage",
      "method": "POST",
      "path": "/partner/v1/accounts/:creatorId/conversations/:conversationId/messages",
      "scopes": ["write:messages", "write:messages:automated"],
      "creatorScoped": true,
      "conditional": false
    }
  ],
  "creators": [
    {
      "creatorId": "cre_123",
      "scopes": ["read:messages", "read:subscribers", "write:messages", "write:messages:automated"],
      "operations": [
        {
          "operation": "listConversations",
          "method": "GET",
          "path": "/partner/v1/accounts/:creatorId/conversations",
          "scopes": ["read:messages"],
          "creatorScoped": true,
          "conditional": false
        }
      ]
    }
  ],
  "deprecations": [],
  "authentication": {
    "tokenEndpoint": "https://api.evvahub.com/partner/v1/oauth/token",
    "grantTypes": ["client_credentials"],
    "clientAuthMethods": ["client_secret_basic", "client_secret_post", "private_key_jwt"],
    "assertionAlgorithms": ["RS256", "ES256"],
    "accessTokenTtlSeconds": 900,
    "refreshTokens": false
  },
  "limits": { "requestsPerWindow": 60, "windowSeconds": 60, "bucket": "application", "maxScopesPerToken": 64 }
}
```

| Field                   | Meaning                                                                                                                                                                                            |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `operations`            | Every operation an application may call, identified by the API reference's operation ID. `path` uses `:name` for path parameters. Anything not listed is refused with `403 OPERATION_NOT_EXPOSED`. |
| `creators[].scopes`     | What the application may exercise for that creator now: grants ∩ allowed scopes ∩ consent ∩ token scopes.                                                                                          |
| `creators[].operations` | The operations whose required scopes are **all** in that set.                                                                                                                                      |
| `conditional`           | `true` when the operation runs only through an [approval](/approvals).                                                                                                                             |

> **Note**
>
> Capability discovery describes access, not the creator's account status. An operation listed for a creator can still be refused with `403 CREATOR_SUSPENDED` when the creator's account may not perform that action at the moment.

## When a scope or grant is missing

EVVA checks a request in the order below and answers with the code of the **first** check that fails. Every error body has the shape `{ "code", "error", "requestId" }`.

| Status | `code`                      | Meaning                                                                                                                                                                                                             |
| ------ | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 401    | `INVALID_TOKEN`             | The token is expired, revoked or unknown. Request a new one.                                                                                                                                                        |
| 403    | `APPLICATION_NOT_ACTIVE`    | The application is waiting for review, disabled or revoked.                                                                                                                                                         |
| 403    | `AGENCY_SUSPENDED`          | Your agency is suspended.                                                                                                                                                                                           |
| 403    | `OPERATION_NOT_EXPOSED`     | The operation is not available to applications at all.                                                                                                                                                              |
| 403    | `AGENCY_CONTEXT_MISMATCH`   | You sent an `X-Agency-Id` that is not your application's agency.                                                                                                                                                    |
| 403    | `CREATOR_INTEGRATIONS_HELD` | EVVA has paused integrations for this creator.                                                                                                                                                                      |
| 403    | `INSUFFICIENT_SCOPE`        | The application is not allowed the scope, or the token does not carry it. The `WWW-Authenticate` header names the scopes the operation needs: `Bearer realm="evva-partner", error="insufficient_scope", scope="…"`. |
| 403    | `GRANT_REVOKED`             | The creator is not linked to your agency, or ended the link.                                                                                                                                                        |
| 403    | `OAUTH_SCOPE_MISSING`       | The creator's consent does not cover the scope.                                                                                                                                                                     |
| 403    | `NOT_ASSIGNED`              | No grant reaches this creator, or the grants that do reach them do not carry the scope.                                                                                                                             |
| 403    | `CREATOR_SUSPENDED`         | The creator's account may not perform this action at the moment.                                                                                                                                                    |
| 503    | `TEMPORARILY_UNAVAILABLE`   | Access could not be verified right now. Nothing was done. Retry after `Retry-After` (5 seconds).                                                                                                                    |

**`403 Forbidden`**

```json title="403 Forbidden"
{
  "code": "OAUTH_SCOPE_MISSING",
  "error": "The creator's consent does not cover this",
  "requestId": "…"
}
```

#### I hold the scope on my token but still get 403 NOT_ASSIGNED

The token is only one of the four sets. Check **Permissions & creators** in the Hub: the creator needs a grant — directly or through a group they are currently a member of — and that grant must carry the scope.

#### Why does INSUFFICIENT_SCOPE not tell me which set is missing it?

`INSUFFICIENT_SCOPE` covers both the application's allowed scopes and the token. Compare the token's `scope` (or `scopes` in `GET /partner/v1/app/me`) with `application.allowedScopes` in the same response.

#### Do I need a new token after my agency grants a creator?

No. Grants, group membership and consent are read on every request. A new token is needed only for a scope the current token does not carry.

## Next steps

#### [Approvals and automatic limits](/approvals)

How conditional operations are approved, and how automatic limits work.

#### [Requesting tokens](/authentication/tokens)

Narrow a token to the scopes a worker needs.

#### [Authentication overview](/authentication/overview)

The effective-access rule and what happens when access changes.

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

The scopes each operation requires.