Menu

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

The request

bash
curl -H "Authorization: Bearer $WORKTUDE_KEY" https://api.worktude.com/v1/api/workspace
json
{
  "data": {
    "id": "ws_01KJPZV280CZ977PXY6HBPS63X",
    "slug": "marta-silva",
    "name": "Marta Silva",
    "timezone": "Europe/Lisbon",
    "locale": "en",
    "key": { "id": "key_01M2Z0PCM0HKNWYQF5HDRKYT2R", "scopes": ["messages:read", "bookings:read"] }
  }
}

The fields

FieldWhat it holds
idThe workspace’s ID, which each webhook call names too.
slugThe name in your page’s address, such as marta-silva in marta-silva.worktude.page.
nameThe workspace’s name.
timezoneIts time zone, as an IANA name such as Europe/Lisbon.
localeIts language: en, pt-BR or es.
key{"id", "scopes"}: the key’s own ID, and what it can do.

Questions

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.