# Identity API reference

Base URL `https://api.beplan.io/v1`. Every operation is listed with its scope, permission, inputs, answers, errors and an example. Conventions: https://beplan.io/docs/api.md. OpenAPI document: https://beplan.io/docs/api/openapi.json.

## Get the token's user, scopes and organizations

`GET /me` · operationId `identity.get`

- Scope: `profile:read`
- Role permission: Any member who can see it
- Effect (`read`): Changes nothing.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

Returns who the token acts for (the user's id and name), the connection behind it (its kind, the app or token name, the scopes it may use and when it expires), and every organization it was given, each with its state: `active`, `pending` (an admin of the organization must approve it first) or `blocked` (with the reason), and the workspaces it can reach there. Call it first: every other operation needs an organization id from this list.

**200 OK**

- `data` (object, required, PublicIdentity)
  - `user` (object, required)
    - `id` (string, required)
    - `name` (string, required)
  - `connection` (object, required)
    - `id` (string, required)
    - `kind` (string, required, PublicConnectionKind): one of `personal_token`, `app`, `mcp`.
    - `name` (string, required)
    - `clientId` (string, required, nullable)
    - `scopes` (array of string, required): one of `profile:read`, `organization:read`, `organization:write`, `members:read`, `members:write`, `roles:write`, `workspaces:write`, `workspaces:manage`, `accounts:read`, `accounts:write`, `posts:read`, `posts:write`, `posts:publish`, `posts:review`, `comments:write`, `media:read`, `media:write`, `media:review`, `papers:read`, `papers:write`, `insights:read`, `links:write`, `inbox:read`, `inbox:manage`, `inbox:reply`, `creator_page:read`, `creator_page:write`, `creator_page:publish`, `creator_page:audience`, `clips:read`, `clips:write`, `go_live:read`, `go_live:write`, `deals:read`, `deals:write`, `deals:finances`, `deals:send`, `billing:read`, `all`.
    - `expiresAt` (string (date-time), required, nullable)
  - `organizations` (array of object, required)
    - `id` (string, required)
    - `name` (string, required)
    - `state` (string, required, PublicOrganizationState): one of `active`, `pending`, `blocked`.
    - `reason` (string, required, nullable)
    - `allWorkspaces` (boolean, required)
    - `workspaces` (array of object, required)
      - `id` (string, required)
      - `name` (string, required)
      - `timezone` (string, required, nullable)

**Errors**

| Status | Code | Message |
|---|---|---|

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: A personal token given one organization**

```bash
curl -X GET "https://api.beplan.io/v1/me" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": {
    "user": {
      "id": "user_2x8Kq",
      "name": "Alex Martin"
    },
    "connection": {
      "id": "3c9d1e2f-4a5b-4c6d-8e7f-9a0b1c2d3e4f",
      "kind": "personal_token",
      "name": "n8n weekly report",
      "clientId": null,
      "scopes": [
        "profile:read",
        "posts:read",
        "media:read"
      ],
      "expiresAt": "2027-02-17T10:00:00.000Z"
    },
    "organizations": [
      {
        "id": "org_8Hq2LmN4",
        "name": "Studio Halden",
        "state": "active",
        "reason": null,
        "allWorkspaces": true,
        "workspaces": [
          {
            "id": "5d2e8f14-3a6b-4c7d-9e0f-1a2b3c4d5e60",
            "name": "Studio Halden",
            "timezone": "Europe/Paris"
          }
        ]
      }
    ]
  }
}
```


---
HTML version: https://beplan.io/docs/api/identity/
