# Get Profile and Workspaces

> Retrieve your profile and workspace details using your API key or OAuth token

- **URL**: https://orshot.com/docs/api-reference/get-profile-workspace

---

Retrieve your user profile and associated workspaces. Works with both API keys and OAuth access tokens.

- **API Key**: Returns the single workspace linked to the key
- **OAuth Token**: Returns all workspaces the token has been granted access to

## Endpoint```markdown tab="Endpoint"
https://api.orshot.com/v1/me
```## Request```js
await fetch("https://api.orshot.com/v1/me", {
  method: "GET",
  headers: {
    Authorization: "Bearer <ORSHOT_API_KEY>",
  },
});
```</Tab>```json
{
  "data": {
    "user_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "email": "user@example.com",
    "name": "John Doe",
    "workspaces": [
      {
        "id": 890,
        "name": "My Workspace",
        "slug": "my-workspace"
      }
    ]
  }
}
```</Tab>
</Tabs>

## Response Fields

| Field               | Type   | Description                                   |
| ------------------- | ------ | --------------------------------------------- |
| `user_id`           | String | Your unique user ID                           |
| `email`             | String | Your email address                            |
| `name`              | String | Your full name                                |
| `workspaces`        | Array  | List of workspaces accessible with this token |
| `workspaces[].id`   | Number | Workspace ID                                  |
| `workspaces[].name` | String | Workspace name                                |
| `workspaces[].slug` | String | Workspace slug                                |

## Error Responses

### Unauthorized (401)

Returned when using an expired or invalid OAuth token.```json
{
  "error": "Access Forbidden",
  "message": "OAuth token expired or invalid"
}
```### Forbidden (403)

Returned when the API key is missing or invalid.```json
{
  "error": "Access Forbidden"
}
```## Rate Limits

- 20 requests per minute per API key