> 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

# Get capabilities

GET https://api.evvahub.com/partner/v1/app/capabilities

Returns the API version, every operation open to applications, the operations your application can call for each creator, and the authentication details and limits.

An operation that is not listed answers `403 OPERATION_NOT_EXPOSED`. The per-creator lists change with the next grant change. A listed operation can still be refused: each call checks the creator's account restrictions itself, and nothing here promises them. `deprecations` lists the deprecated operations an application can call; there are none today. See [scopes and grants](/authentication/scopes).

Only an application token can call this operation.

**Errors**

- `503 TEMPORARILY_UNAVAILABLE` — your access cannot be read right now. Retry after `Retry-After`.

Reference: https://developers.evvahub.com/api-reference/application/get-application-capabilities

## Authentication

- `Authorization` header (bearer token, required) — OAuth 2.0 client credentials. Request an access token at `POST /partner/v1/oauth/token` (`grant_type=client_credentials`) with the application's client secret or a `private_key_jwt` assertion, then send it as `Authorization: Bearer evpa_live_…` (or `evpa_test_…` for a sandbox application). Tokens are opaque and short lived (see `expires_in`); there is no refresh token. Each operation lists the scopes it requires.

## Response

### 200

Capabilities.

- `apiVersion` ("v1", required)
- `principal` ("application", required)
- `operations` (list of CapabilityOperation, required)
- `creators` (list of CapabilitiesCreatorsItems, required)
- `deprecations` (list of CapabilitiesDeprecationsItems, required) — Deprecated operations an application can call; empty today. See [versioning](/conventions/versioning) for the deprecation policy.
- `authentication` (CapabilitiesAuthentication, required)
- `limits` (ApplicationRateLimits, required) — The partner free-tier window an application is metered against — its own bucket (`app:<applicationId>`).

## Errors

### 401 Unauthorized Error

Token missing, malformed, expired or revoked: `INVALID_TOKEN` (or `UNAUTHORIZED` when no bearer token was sent). Request a new token and retry.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 403 Forbidden Error

Not allowed with this token: the token lacks a scope (`INSUFFICIENT_SCOPE`), the application is not active (`APPLICATION_NOT_ACTIVE`), or its agency is suspended (`AGENCY_SUSPENDED`).

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 429 Too Many Requests Error

Rate limited: `RATE_LIMIT_EXCEEDED`. Wait `Retry-After` seconds before retrying.

- `code` (enum, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
  - Allowed values: `RATE_LIMIT_EXCEEDED`, `TOO_MANY_MESSAGES`
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (RateLimitErrorDetails, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 500 Internal Server Error

Unexpected server error: `INTERNAL_ERROR`. Nothing internal is disclosed; quote the `X-Request-Id` when you report it.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 503 Service Unavailable Error

Temporarily unavailable: `SERVICE_UNAVAILABLE`, `TEMPORARILY_UNAVAILABLE`, `MEDIA_STORAGE_UNAVAILABLE` or `CREATOR_STANDING_UNAVAILABLE`. Retry after `Retry-After` seconds.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

## Types

### CapabilityOperation

- `operation` (string, required) — The OpenAPI operationId.
- `method` (enum, required)
  - Allowed values: `GET`, `POST`, `PUT`, `PATCH`, `DELETE`
- `path` (string, required) — The route pattern, mount included.
- `scopes` (list of enum, required) — Every application scope the operation requires. For a batch, the scopes of the operation each item performs.
  - Allowed values: `read:profile`, `write:profile`, `read:messages`, `write:messages`, `read:subscribers`, `write:subscribers`, `read:content`, `write:content`, `read:analytics`, `read:mass_messages`, `write:mass_messages`, `read:ice_breaker`, `write:ice_breaker`, `write:paid_messages`, `read:ai`, `write:ai`, `write:ai:voice`, `read:automations`, `write:automations`, `write:automations:enable`, `read:revenue`, `write:messages:automated`, `read:media`, `read:buyer_context`, `read:receipts`, `read:marketplace`, `write:marketplace`, `money:marketplace`, `read:orders`, `write:orders`, `write:orders:fulfilment`, `write:messages:operator`, `write:media`, `delete:media`, `money:media`, `write:messages:view_once`, `write:blocks`, `write:reports`, `read:notes`, `write:notes`, `read:subscribers:spend`, `read:presence`, `read:links`, `write:links`, `write:goals`, `delete:content`, `money:subscription`, `money:storefront`, `delete:storefront_link`, `delete:comments`
- `creatorScoped` (boolean, required)
- `conditional` (boolean, required) — `true` when the operation runs for an application only through action approval: within the agency's policy and limits, or after a person approves it (`202` `ApprovalRequired`, then `Partner-Approval-Id`). See [action approval](/approvals).
- `conditionalFields` (list of string, optional) — The body fields that, when set or changed, send that request through action approval, such as a price or a view-once flag. Present only for a field-level conditional operation; a request that leaves these fields unset or unchanged is an ordinary request. See [action approval](/approvals).

### CapabilitiesCreatorsItems

- `creatorId` (string, required)
- `scopes` (list of enum, required)
  - Allowed values: `read:profile`, `write:profile`, `read:messages`, `write:messages`, `read:subscribers`, `write:subscribers`, `read:content`, `write:content`, `read:analytics`, `read:mass_messages`, `write:mass_messages`, `read:ice_breaker`, `write:ice_breaker`, `write:paid_messages`, `read:ai`, `write:ai`, `write:ai:voice`, `read:automations`, `write:automations`, `write:automations:enable`, `read:revenue`, `write:messages:automated`, `read:media`, `read:buyer_context`, `read:receipts`, `read:marketplace`, `write:marketplace`, `money:marketplace`, `read:orders`, `write:orders`, `write:orders:fulfilment`, `write:messages:operator`, `write:media`, `delete:media`, `money:media`, `write:messages:view_once`, `write:blocks`, `write:reports`, `read:notes`, `write:notes`, `read:subscribers:spend`, `read:presence`, `read:links`, `write:links`, `write:goals`, `delete:content`, `money:subscription`, `money:storefront`, `delete:storefront_link`, `delete:comments`
- `operations` (list of CapabilityOperation, required)

### CapabilitiesDeprecationsItems

- `operation` (string, required, nullable)
- `method` (enum, required)
  - Allowed values: `GET`, `POST`, `PUT`, `PATCH`, `DELETE`
- `path` (string, required)
- `deprecatedAt` (datetime, required)
- `sunsetAt` (datetime, required, nullable)
- `replacement` (string, required, nullable) — The operationId that replaces it.

### CapabilitiesAuthentication

- `tokenEndpoint` (string, required)
- `grantTypes` (list of "client_credentials", required)
- `clientAuthMethods` (list of enum, required)
  - Allowed values: `client_secret_basic`, `client_secret_post`, `private_key_jwt`
- `assertionAlgorithms` (list of enum, required)
  - Allowed values: `RS256`, `ES256`
- `accessTokenTtlSeconds` (integer, required)
- `refreshTokens` (false, required)

### ApplicationRateLimits

The partner free-tier window an application is metered against — its own bucket (`app:<applicationId>`).

- `requestsPerWindow` (integer, required)
- `windowSeconds` (integer, required)
- `bucket` ("application", required)
- `maxScopesPerToken` (integer, optional)

### RateLimitErrorDetails

Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

- `retryAfterSec` (integer, required)
- `level` (enum, optional) — The DM send limit that refused the message, set only with `TOO_MANY_MESSAGES`. It is never a quota, a count or a key. - `conversation` — one side of one thread. - `sender` — a person's own ceiling; it does not apply to applications. - `creator` — everything sent for the creator, studio included. - `application` — everything your application sends. - `agency` — everything your agency sends. - `platform` — the agency's fair share of the platform: its throughput or its concurrency. See [rate limits](/authentication/rate-limits).
  - Allowed values: `conversation`, `sender`, `creator`, `application`, `agency`, `platform`

## Examples

**Response**

```json
{
  "apiVersion": "v1",
  "principal": "application",
  "operations": [
    {
      "operation": "listAccounts",
      "method": "GET",
      "path": "/partner/v1/accounts",
      "scopes": [],
      "creatorScoped": false,
      "conditional": false
    },
    {
      "operation": "listConversations",
      "method": "GET",
      "path": "/partner/v1/accounts/:creatorId/conversations",
      "scopes": [
        "read:messages"
      ],
      "creatorScoped": true,
      "conditional": false
    },
    {
      "operation": "sendMessage",
      "method": "POST",
      "path": "/partner/v1/accounts/:creatorId/conversations/:conversationId/messages",
      "scopes": [
        "write:messages"
      ],
      "creatorScoped": true,
      "conditional": false,
      "conditionalFields": [
        "viewOnce",
        "expiresAt"
      ]
    }
  ],
  "creators": [
    {
      "creatorId": "cm4r7k2xq0001qz8w3n5v6b2d",
      "scopes": [
        "read:messages",
        "write:messages",
        "write:messages:automated",
        "read:buyer_context"
      ],
      "operations": [
        {
          "operation": "listConversations",
          "method": "GET",
          "path": "/partner/v1/accounts/:creatorId/conversations",
          "scopes": [
            "read:messages"
          ],
          "creatorScoped": true,
          "conditional": false
        },
        {
          "operation": "listMessages",
          "method": "GET",
          "path": "/partner/v1/accounts/:creatorId/conversations/:conversationId/messages",
          "scopes": [
            "read:messages"
          ],
          "creatorScoped": true,
          "conditional": false
        },
        {
          "operation": "sendMessage",
          "method": "POST",
          "path": "/partner/v1/accounts/:creatorId/conversations/:conversationId/messages",
          "scopes": [
            "write:messages"
          ],
          "creatorScoped": true,
          "conditional": false,
          "conditionalFields": [
            "viewOnce",
            "expiresAt"
          ]
        }
      ]
    }
  ],
  "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
  }
}
```

**SDK Code**

```python Application_getApplicationCapabilities_example
import requests

url = "https://api.evvahub.com/partner/v1/app/capabilities"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```go Application_getApplicationCapabilities_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.evvahub.com/partner/v1/app/capabilities"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```php Application_getApplicationCapabilities_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.evvahub.com/partner/v1/app/capabilities', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```