The workspace
Your workspace is your page in Worktude, with its plan, its team and its data, and each API key belongs to one. GET /workspace answers it, with the key’s own ID and scopes: any key can call it, so it is the simplest way to check that a key works.
On this page
bash
curl -H "Authorization: Bearer $WORKTUDE_KEY" https://api.worktude.com/v1/api/workspacejson
{
"data": {
"id": "ws_01KJPZV280CZ977PXY6HBPS63X",
"slug": "marta-silva",
"name": "Marta Silva",
"timezone": "Europe/Lisbon",
"locale": "en",
"key": { "id": "key_01M2Z0PCM0HKNWYQF5HDRKYT2R", "scopes": ["messages:read", "bookings:read"] }
}
}| Field | What it holds |
|---|---|
id | The workspace’s ID, which each webhook call names too. |
slug | The name in your page’s address, such as marta-silva in marta-silva.worktude.page. |
name | The workspace’s name. |
timezone | Its time zone, as an IANA name such as Europe/Lisbon. |
locale | Its language: en, pt-BR or es. |
key | {"id", "scopes"}: the key’s own ID, and what it can do. |
- Which workspace does a key open?
The one it was made in. A key never opens another workspace, even one that the person who made it belongs to.
- Does this request need a scope?
No. It answers any key that works, whatever it can do, so a tool can call it first to learn which scopes it has.