Get workspace data

Retrieve the current workspace's metadata, including users and invites.

This endpoint returns:

  • Workspace name, settings, and configuration
  • List of user IDs in the workspace
  • Workspace invite information

Use cases:

  • Displaying workspace details in dashboards
  • Fetching workspace data for integrations
  • Validating workspace context for user actions
GET
/api/v1/workspaces
AuthorizationBearer <token>

The API will use the Authorization: Bearer <your-key> header for requests.

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://api.excalidraw.com/api/v1/workspaces"
{
  "id": "string",
  "users": [
    "string"
  ],
  "roles": {
    "property1": "member",
    "property2": "member"
  },
  "name": "string",
  "created": "2019-08-24T14:15:22Z",
  "picture": "http://example.com",
  "subscriptionStatus": "payment_failed",
  "creator": "string",
  "updater": "string",
  "apiVersion": "string",
  "willCancelAt": "2019-08-24T14:15:22Z",
  "blockedUsers": [
    "string"
  ],
  "type": null,
  "preferences": {
    "disableAi": true,
    "enableAutoSceneNaming": true,
    "disableEmailEditing": true,
    "disableSceneSharing": true
  },
  "flags": 0,
  "isDeleted": true,
  "deletedAt": 0
}
{
  "statusCode": 401,
  "error": "Unauthorized",
  "message": "string"
}
{
  "statusCode": 403,
  "error": "Forbidden",
  "message": "string"
}