
# List branding versions

`GET /v1/branding/versions` · permission `branding:read`

Lists published versions newest first, with cursor pagination (`limit`, `after`). Only forward paging is supported; `before` and `order` are rejected with `422`. No total count is returned.

## Request

| Field | Type | Required | Description |
|---|---|---|---|
| `limit` | query | no | 1-100 items per page. |
| `after` | query | no | Cursor from `list_metadata.after`. |

## Response

`200 OK` with `data[]` (version metadata) and `list_metadata`.

```json
{"data": [{"version": 4, "snapshot_sha256": "3f1c…", "source": "publish", "rolled_back_from": null,
           "actor_type": "api_key", "actor_id": "key_01jb…", "published_at": "2026-10-05T09:31:00Z"}],
 "list_metadata": {"before": null, "after": "eyJ2Ijo…"}}
```

## Errors

| HTTP | code | When |
|---|---|---|
| 400 | `invalid_cursor` | The cursor is malformed or belongs to another environment. |
| 422 | `validation_failed` | `limit` is out of range, or `before`/`order` was given (`unsupported`). |
| 401 | `unauthenticated` | The credential is missing, invalid or revoked. |
| 403 | `insufficient_permissions` | The credential lacks the required permission. |
| 429 | `rate_limited` | The rate limit was exceeded; retry after the `Retry-After` period. |
| 503 | `service_unavailable` | A dependency is temporarily unavailable; retry after the `Retry-After` period. |

## Example

```bash
curl "https://api.eu.keenauth.com/v1/branding/versions?limit=20" \
  -H "Authorization: Bearer $KEENAUTH_SECRET_KEY"
```
