The Worktude API
The Worktude API lets your own tools read your page’s messages and bookings, and list, make, change and delete its short links, over HTTPS with an API key. Webhooks work the other way round: Worktude calls your server when a message arrives or a booking changes.
On this page
- Read the messages your page’s forms received, as Messages describes.
- Read your bookings, by date range or one at a time, as Bookings describes.
- List, make, change and delete short links, with the same rules as the dashboard: Short links.
- Hear of each new message and each change to a booking as it happens, with webhooks.
Plans
The API and webhooks come with the plans that include the API. On another plan, every request answers 403 and no webhook is sent, but your keys and webhooks stay listed, and you can revoke or delete them.
Every route is under https://api.worktude.com/v1/api, and every request carries an API key, which the page’s owner or an admin makes on the dashboard’s API page, as API keys explains:
curl -H "Authorization: Bearer $WORKTUDE_KEY" https://api.worktude.com/v1/api/workspaceThis request works with any key, and answers your workspace and what the key can do, as The workspace describes. Requests, pages and limits covers the rest: the answers, the times, the pages and the rate limits.
| Method and path | What it does |
|---|---|
GET /workspace | The key’s workspace, and the key’s own ID and scopes. Any key can call it. |
GET /messages | A page of messages, the newest first. Scope: messages:read. |
GET /messages/{id} | One message. Scope: messages:read. |
GET /bookings | The bookings that start in a range of up to 92 days. Scope: bookings:read. |
GET /bookings/{id} | One booking. Scope: bookings:read. |
GET /links | A page of short links, the newest first. Scope: links:read. |
GET /links/{id} | One short link. Scope: links:read. |
POST /links | Makes a short link. Scope: links:write. |
PATCH /links/{id} | Changes a short link. Scope: links:write. |
DELETE /links/{id} | Deletes a short link. Scope: links:write. |
The API doesn’t read your contacts or your results yet, and no webhook tells of a short link. It reads messages and bookings without changing them: their status changes in your Inbox and in Bookings, in the dashboard.
The dashboard’s own routes aren’t part of the API: they answer a person signed in to the dashboard, never a key. The API answers in shapes of its own, which changes to the dashboard don’t move.
- Which plans include the API?
Not every plan does. On a plan without it, the dashboard’s API page says Your plan doesn’t include the API. and links to the plans.
- Can I call the API from a web page or an app?
Call it from your server. A key acts for the person who made it, so anyone who finds it in a page or an app could use it. Keep it as secret as a password.
- Where is the API page?
In the dashboard, API in the menu opens it. Only the page’s owner and admins see it.