# Workspaces and members API

> Workspaces, members and invitations. With curl and TypeScript examples.

## `GET /v1/ssr-acceptance`

Whether the workspace enabled server-side rendering (acceptance A.5)

Operation `getWorkspaceSsrAcceptance`. Scopes: `sites:read`.

**Responses**

| Status | Meaning | Content type |
| --- | --- | --- |
| `200` | The status. Creating a server key is refused until `accepted` is true. | `application/json` |
| `401` | `unauthenticated`: no credentials, or credentials that prove nothing. | `application/problem+json` |
| `403` | `insufficient_scope`: the credential lacks a scope this route needs (see `missing_scopes`). `permission_denied`: the current workspace role does not allow the action. `oauth_consent_required`: an OAuth token whose person has not yet chosen the workspace and the permissions (see `consent_url`). `mfa_required`: a portal session that must still verify or set up MFA (see `mfa_reason`). | `application/problem+json` |
| `405` | `method_not_allowed`: the path exists, but not for this method; `Allow` lists the methods it answers. | `application/problem+json` |
| `429` | `rate_limited`: the limit of the route class (`rate_limit.limit_class`: read, write, publish, heavy, approval, diff, metrics, destructive or ip) was reached. Wait `Retry-After` seconds. `rate_limiter_unavailable` (503) is answered for `heavy` routes and destructive calls when the limiter itself fails, and for a valid OAuth token with no grant when the consent-link limiter fails (never a 401, so an MCP client does not log in again). | `application/problem+json` |
| `500` | `internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`. | `application/problem+json` |
| `503` | `database_unavailable`: the API could not reach its database (timeout, dropped connection). Wait `Retry-After` seconds and send the same request again: repeating is safe with the same `Idempotency-Key`; without it a POST may already have been applied. | `application/problem+json` |

```sh title="curl"
curl "https://api.taggor.dev/v1/ssr-acceptance" \
  -H "Authorization: Bearer $TAGGOR_API_KEY"
```

```ts title="TypeScript"
const response = await fetch("https://api.taggor.dev/v1/ssr-acceptance", {
  headers: { authorization: `Bearer ${process.env.TAGGOR_API_KEY}` },
});
if (!response.ok) throw new Error(await response.text());
const result: unknown = await response.json();
console.log(result);
```

```json title="Example response"
{
  "accepted": true,
  "accepted_at": "2026-11-16T12:00:00.000Z"
}
```

## `GET /v1/dpa-acceptance`

Whether the workspace accepted the Data Processing Agreement in force

Operation `getWorkspaceDpaAcceptance`. Scopes: `data:read`.

**Responses**

| Status | Meaning | Content type |
| --- | --- | --- |
| `200` | The version in force and the workspace's status. | `application/json` |
| `401` | `unauthenticated`: no credentials, or credentials that prove nothing. | `application/problem+json` |
| `403` | `insufficient_scope`: the credential lacks a scope this route needs (see `missing_scopes`). `permission_denied`: the current workspace role does not allow the action. `oauth_consent_required`: an OAuth token whose person has not yet chosen the workspace and the permissions (see `consent_url`). `mfa_required`: a portal session that must still verify or set up MFA (see `mfa_reason`). | `application/problem+json` |
| `405` | `method_not_allowed`: the path exists, but not for this method; `Allow` lists the methods it answers. | `application/problem+json` |
| `429` | `rate_limited`: the limit of the route class (`rate_limit.limit_class`: read, write, publish, heavy, approval, diff, metrics, destructive or ip) was reached. Wait `Retry-After` seconds. `rate_limiter_unavailable` (503) is answered for `heavy` routes and destructive calls when the limiter itself fails, and for a valid OAuth token with no grant when the consent-link limiter fails (never a 401, so an MCP client does not log in again). | `application/problem+json` |
| `500` | `internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`. | `application/problem+json` |
| `503` | `database_unavailable`: the API could not reach its database (timeout, dropped connection). Wait `Retry-After` seconds and send the same request again: repeating is safe with the same `Idempotency-Key`; without it a POST may already have been applied. | `application/problem+json` |

```sh title="curl"
curl "https://api.taggor.dev/v1/dpa-acceptance" \
  -H "Authorization: Bearer $TAGGOR_API_KEY"
```

```ts title="TypeScript"
const response = await fetch("https://api.taggor.dev/v1/dpa-acceptance", {
  headers: { authorization: `Bearer ${process.env.TAGGOR_API_KEY}` },
});
if (!response.ok) throw new Error(await response.text());
const result: unknown = await response.json();
console.log(result);
```

```json title="Example response"
{
  "dpa_version": "2026-12-01",
  "draft": false,
  "accepted": true,
  "accepted_by": {
    "id": "usr_0123456789abcdefghjkmnpqrs",
    "kind": "user",
    "name": "Ana"
  },
  "accepted_at": "2026-11-10T12:00:00.000Z"
}
```
