> ## Documentation Index
> Fetch the complete documentation index at: https://learn.biq.li/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve the connected workspace

> Validate an OAuth access token and read its user and workspace identity.

```http theme={null}
GET https://biq.li/api/v1/oauth/me
Authorization: Bearer <ACCESS_TOKEN>
```

This endpoint requires `workspace.read`. Use it immediately after token
exchange and whenever an integration needs to verify its stored connection.

```bash theme={null}
curl https://biq.li/api/v1/oauth/me \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Accept: application/json'
```

## Response

```json theme={null}
{
  "id": "01M39XGHDMHG2R6FCQ8QXP9WQ8",
  "user_id": "663",
  "user_name": "User One",
  "workspace_id": "biq_ws_01M39W8DTV73XTC9AARW7BQF6J",
  "workspace_name": "Acme",
  "workspace": {
    "id": "biq_ws_01M39W8DTV73XTC9AARW7BQF6J",
    "name": "Acme"
  }
}
```

| Field | Description |
| :- | :- |
| `id` | Public OAuth connection ID |
| `user_id` | User who approved the connection |
| `user_name` | Display label for the approving user |
| `workspace_id` | Public ID of the connected workspace |
| `workspace_name` | Display label for the connected workspace |
| `workspace` | Convenience object containing the public workspace identity |

The endpoint returns `401` when the token is expired, invalid, revoked, or no
longer belongs to an active connection. It returns `403` when the token lacks
`workspace.read`.
