Get Workspace
Returns the default workspace for the user associated with the API key.
REST API agent execution endpoints do not require workspaceId — it is automatically resolved from the API key. Use this endpoint only when you need to reference the workspace information.
Request
| Header | Required | Description |
|---|
Authorization | Yes | API key in Bearer snorbe_... format |
Response
{
"workspaceId": "cmkt9lpfe000bu95cdrcr2nbt",
"workspaceName": "My Workspace"
}
Response Fields
| Field | Type | Description |
|---|
workspaceId | string | Workspace ID |
workspaceName | string | Workspace name |
Examples
curl "https://app.snorbe.deskrex.ai/api/v1/workspace" \
-H "Authorization: Bearer snorbe_your_api_key_here"
Error Responses
| HTTP Status | Code | Description |
|---|
| 401 | UNAUTHORIZED | Invalid, expired, or missing API key |
| 429 | TOO_MANY_REQUESTS | Rate limit exceeded |