> Index of every page: https://docs.merchantservicedepot.com/llms.txt

# Capabilities


`GET /v1/capabilities`

Lists every operation and whether you may call it right now — your key's entitlements composed with what your account can actually do. The only route that is not entitlement-gated. One entry is not an entitlement: `checkoutSessions.create` says whether browser card capture (`08 · Myela Elements`) works for this account — `active` or `unavailable`.

Auth: a secret key. Returns `200` with Capability map.

## Request

**curl**

```curl
curl -X GET "https://payments-api-sandbox.merchantservicedepot.com/v1/capabilities" \
  -H "Authorization: Bearer $MYELA_API_KEY"
```

**Node**

```node
const res = await fetch("https://payments-api-sandbox.merchantservicedepot.com/v1/capabilities", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.MYELA_API_KEY}`,
  },
});

if (!res.ok) {
  const { error } = await res.json();
  // Branch on error.code — never on error.message.
  throw new Error(error.code);
}
const data = await res.json();
```

**Python**

```python
import os
import requests

res = requests.get(
    "https://payments-api-sandbox.merchantservicedepot.com/v1/capabilities",
    headers={
        "Authorization": f"Bearer {os.environ['MYELA_API_KEY']}",
    },
)

if not res.ok:
    # Branch on error["code"] — never on error["message"].
    raise RuntimeError(res.json()["error"]["code"])
data = res.json()
```

## Response

| Field | Type | Description |
| --- | --- | --- |
| `{operation}` | object | Every operation appears with an explicit status. |
| `checkoutSessions.create` | object | Not an entitlement: whether browser card capture (POST /v1/checkout_sessions) works for this account. active or unavailable; unavailable means ask Myela. |

```json
{
  "payments.create": {
    "status": "active"
  },
  "payments.refund": {
    "status": "unavailable"
  },
  "credits.create": {
    "status": "unsupported"
  },
  "checkoutSessions.create": {
    "status": "active"
  }
}
```

Source: https://docs.merchantservicedepot.com/api-reference/capabilities/
