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
apiKeyheader
AuthorizationBearer <Bearer>The API will use the Authorization: Bearer <your-key> header for requests.
This response returns the data for the current workspace.
application/json- response
This response returns the data for the current workspace.
id*stringusers*array<string>roles*name*stringcreated*stringMatch
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$Format
date-timepicture*|Format
urisubscriptionStatus*stringValue in
"payment_failed""active""canceled""trialing""overdue"creator*string|nullupdater*string|nullapiVersion?stringwillCancelAt*|Match
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$Format
date-timeblockedUsers?array<string>type?unknownValue in
null12preferences?flags?numberisDeleted?booleandeletedAt?numbercurl -X GET 'https://api.excalidraw.com/api/v1/workspaces'Example Response
{
"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,
"userApiKeysEnabled": true,
"disableAiConnectors": true,
"requireTwoFactor": true
},
"flags": 0,
"isDeleted": true,
"deletedAt": 0
}Last updated on