/v1 request authenticates with a workspace API key: a machine credential, scoped to one workspace and to explicit permissions.
Create a key
Keys are created in the console, under Configuration → API keys:- Open your workspace, go to Configuration.
- Under API keys, choose Create key, name it, and pick the scopes it needs.
- Copy the key now: it is shown exactly once and stored only as a hash. It cannot be recovered; if you lose it, create another.
livevstestis the environment segment. Use atestkey against a test workspace and alivekey in production; both authenticate the same way.- The first 12 characters (
wdy_live_x7Q…) are the prefix the console lists: enough to recognise a key, never enough to use it.
Send it
As a bearer token, on every request:GET /v1/me is the call to make first. It returns the workspace the key belongs to and the scopes it was granted:
401 wondeya.api_key.invalid, on purpose: distinguishing them would be an oracle. A request whose key lacks a required scope is a 403 wondeya.api_key.scope_missing.
Scopes
A key is granted permissions per area and per direction. Grant only what an integration needs.
The appearance theme rides
landings:* (it is part of what the pages surface configures). A key with no scope is refused: “no scope” must never read as “every scope”.
Rotate
A workspace keeps at most two active keys at once, so a rotation has an overlap window:- Create a second key with the same scopes.
- Deploy it everywhere the old one was used.
- Revoke the first key in the console.