API reference
Generated from /api/openapi.json. Base URL https://makeworlds.dev; routes that act inside a world run on that world's hosts. Request and response objects are described under Types.
Authentication
- An API key from Settings on makeworlds.dev, as Authorization: Bearer wk_live_…
- The session from signing in at makeworlds.dev. Requests that change data must come from makeworlds.dev.
Errors share one shape: {"error": {"code": "…", "message": "…"}}.
List worlds
GET/api/worlds
Worlds in the teams you can see, newest first. Archived worlds are not listed.
Response 200
| Field | Type | Description |
|---|---|---|
worlds | World[] |
Status codes
200Your worlds401Missing or invalid credentials
Create a world
POST/api/worlds
A new world with a spec for each service it should have (Slack and Jira). Point your app at the returned URLs.
Request body
| Field | Type | Description |
|---|---|---|
name | string | 1 to 80 characters. Example: "Thread routing eval" |
slack optional | SlackSpec | Everything in the world's Slack workspace. Omitted ids, credentials and tokens are generated. Leave it out to create the world without Slack. |
jira optional | JiraSpec | Everything in the world's Jira site. Omitted ids and credentials are generated. Leave it out to create the world without Jira. |
Response 201
| Field | Type | Description |
|---|---|---|
id | string | Example: "world_k2v9x0q1m4" |
name | string | Example: "Thread routing eval" |
team_id | string | Example: "team_k2v9x0q1m4s7d8f3a6b5" |
created_by | string | null | Id of the user who created the world. null when an API key created it. |
ui_url | string (uri) | The world's main page: the UI of its first service. Each service's own URLs are under its name. Example: "https://k2v9x0q1m4-slack.makeworlds.dev/" |
services | WorldService[] | The services in this world, each with its UI. |
slack | SlackCreated | null when the world has no Slack. |
jira | JiraCreated | null when the world has no Jira. |
created_at | string (date-time) | |
updated_at | string (date-time) |
Status codes
201The new world, with each service's effective spec (generated ids, credentials and tokens filled in)400Invalid name, no service spec, or an invalid Slack or Jira spec401Missing or invalid credentials404You are not in any team
Get a world
GET/api/worlds/{worldId}
Parameters
| Field | Type | Description |
|---|---|---|
worldId | string | Example: "world_k2v9x0q1m4" |
Response 200
| Field | Type | Description |
|---|---|---|
id | string | Example: "world_k2v9x0q1m4" |
name | string | Example: "Thread routing eval" |
team_id | string | Example: "team_k2v9x0q1m4s7d8f3a6b5" |
created_by | string | null | Id of the user who created the world. null when an API key created it. |
ui_url | string (uri) | The world's main page: the UI of its first service. Each service's own URLs are under its name. Example: "https://k2v9x0q1m4-slack.makeworlds.dev/" |
services | WorldService[] | The services in this world, each with its UI. |
slack | SlackUrls | null when the world has no Slack. |
jira | JiraUrls | null when the world has no Jira. |
created_at | string (date-time) | |
updated_at | string (date-time) |
Status codes
200The world401Missing or invalid credentials404No world with that id is visible to you
Get a world's spec
GET/api/worlds/{worldId}/spec
The spec the world was created from, with generated ids, credentials and tokens filled in. Create a world from it to get an identical one.
Parameters
| Field | Type | Description |
|---|---|---|
worldId | string | Example: "world_k2v9x0q1m4" |
Response 200
| Field | Type | Description |
|---|---|---|
slack | object | |
jira | object |
Status codes
200The world's spec401Missing or invalid credentials404No world with that id is visible to you, or it predates world specs
Archive a world
POST/api/worlds/{worldId}/archive
Takes the world offline for good: it leaves the list, its URLs stop working and pending event deliveries are dropped. Archiving cannot be undone.
Parameters
| Field | Type | Description |
|---|---|---|
worldId | string | Example: "world_k2v9x0q1m4" |
Response 204
Archived
Status codes
204Archived401Missing or invalid credentials404No world with that id is visible to you
Get a user token
POST/_worlds/slack/tokens
Host https://{world}-slack.makeworlds.dev. {world} is the world id without its world_ prefix, as in the world's URLs.
A user token to act as the user with any Slack client. Minted on first use, then the same token.
Request body
| Field | Type | Description |
|---|---|---|
user | string | The user who acts: their name or id. Bots can't be acted as. Example: "alice" |
Response 200
| Field | Type | Description |
|---|---|---|
user_id | string | Example: "U0ALICE00001" |
token | string | Example: "xoxp-worlds-0b6c…" |
Status codes
200The user's token400Unknown user, or a bot401Missing or invalid credentials, or not your team's world
Get the workspace's state
GET/_worlds/slack/state
Host https://{world}-slack.makeworlds.dev. {world} is the world id without its world_ prefix, as in the world's URLs.
Users, channels and, with channel, that channel's messages.
Parameters
| Field | Type | Description |
|---|---|---|
channel optional | string | A channel id. Example: "C0GENERAL001" |
Response 200
| Field | Type | Description |
|---|---|---|
team | SlackWorldTeam | The workspace. |
users | SlackWorldUser[] | |
channels | SlackWorldChannel[] | |
messages | SlackMessage[] | The channel's messages, oldest first. Empty without channel. |
Status codes
200The workspace401Missing or invalid credentials, or not your team's world
Call a Web API method as a user
POST/_worlds/slack/act
Host https://{world}-slack.makeworlds.dev. {world} is the world id without its world_ prefix, as in the world's URLs.
Calls method as the user, minting their token if needed, and sends the events Slack would, e.g. app_mention for a message that mentions your app.
Request body
| Field | Type | Description |
|---|---|---|
user | string | The user who acts: their name or id. Bots can't be acted as. Example: "alice" |
method | "chat.postMessage" | "conversations.create" | "conversations.invite" | "reactions.add" | "reactions.remove" | Example: "chat.postMessage" |
args optional | object | The method's arguments, as the Web API takes them. Example: {"channel":"C0GENERAL001","text":"Hey <@U0EMPIRICAL1>, can you take a look?"} |
Response 200
| Field | Type | Description |
|---|---|---|
ok | boolean | |
error optional | string |
Status codes
200The method's response400A method that can't be called this way, or an unknown user401Missing or invalid credentials, or not your team's world
Download a file
GET/_worlds/slack/files/{fileId}
Host https://{world}-slack.makeworlds.dev. {world} is the world id without its world_ prefix, as in the world's URLs.
Parameters
| Field | Type | Description |
|---|---|---|
fileId | string | Example: "F0A1B2C3D4" |
Response 200
string (binary)
Status codes
200The file's bytes, with its mimetype as content-type401Missing or invalid credentials, or not your team's world404No file with that id
Get the Jira site's state
GET/_worlds/jira/state
Host https://{world}-jira.makeworlds.dev. {world} is the world id without its world_ prefix, as in the world's URLs.
The spec with generated ids filled in, every issue and the registered webhooks.
Response 200
| Field | Type | Description |
|---|---|---|
spec | JiraState | The world's Jira spec with every generated id and credential filled in. |
issues | JiraIssue[] | |
webhooks | JiraWebhook[] |
Status codes
200The site's state401Missing or invalid credentials, or not your team's world
Create an issue
POST/_worlds/jira/issues
Host https://{world}-jira.makeworlds.dev. {world} is the world id without its world_ prefix, as in the world's URLs.
Creates the issue as user and sends jira:issue_created to matching webhooks.
Request body
| Field | Type | Description |
|---|---|---|
user | string | The user who acts: their name or account id. Webhooks name them as the actor. Example: "alice" |
project | string | A project key. Example: "WRLD" |
summary | string | 1 to 255 characters. Example: "Checkout fails for guest users" |
description optional | string | JiraAdf | Plain text, or an Atlassian Document Format document. |
labels optional | string[] | |
status | "To Do" | "In Progress" | "Done" | |
assignee optional | string | A user's name or id. Example: "alice" |
Response 201
| Field | Type | Description |
|---|---|---|
id | string | |
key | string | Example: "WRLD-1" |
self | string (uri) | |
fields | JiraIssueFields | The issue's fields. |
Status codes
201The new issue400Invalid fields, or an unknown user, assignee or project401Missing or invalid credentials, or not your team's world
Update an issue
PATCH/_worlds/jira/issues/{key}
Host https://{world}-jira.makeworlds.dev. {world} is the world id without its world_ prefix, as in the world's URLs.
Changes the given fields as user and sends jira:issue_updated with the changelog to matching webhooks.
Parameters
| Field | Type | Description |
|---|---|---|
key | string | Example: "WRLD-1" |
Request body
| Field | Type | Description |
|---|---|---|
user | string | The user who acts: their name or account id. Webhooks name them as the actor. Example: "alice" |
summary optional | string | 1 to 255 characters. Example: "Checkout fails for guest users" |
description optional | string | JiraAdf | null | Plain text, or an Atlassian Document Format document. |
labels optional | string[] | |
status optional | "To Do" | "In Progress" | "Done" | |
assignee optional | string | null | null unassigns the issue. Example: "alice" |
Response 200
| Field | Type | Description |
|---|---|---|
issue | JiraIssue | The issue as the Jira REST API returns it. |
changelog | JiraChangeItem[] |
Status codes
200The issue and what changed400Invalid fields, or an unknown user or assignee401Missing or invalid credentials, or not your team's world404No issue with that key or id
Delete an issue
DELETE/_worlds/jira/issues/{key}
Host https://{world}-jira.makeworlds.dev. {world} is the world id without its world_ prefix, as in the world's URLs.
Deletes the issue as user and sends jira:issue_deleted to matching webhooks.
Parameters
| Field | Type | Description |
|---|---|---|
key | string | Example: "WRLD-1" |
user | string | The user who acts: their name or account id. Webhooks name them as the actor. Example: "alice" |
Response 204
Deleted
Status codes
204Deleted400Unknown user401Missing or invalid credentials, or not your team's world404No issue with that key or id
Comment on an issue
POST/_worlds/jira/issues/{key}/comments
Host https://{world}-jira.makeworlds.dev. {world} is the world id without its world_ prefix, as in the world's URLs.
Adds the comment as user and sends comment_created to matching webhooks.
Parameters
| Field | Type | Description |
|---|---|---|
key | string | Example: "WRLD-1" |
Request body
| Field | Type | Description |
|---|---|---|
user | string | The user who acts: their name or account id. Webhooks name them as the actor. Example: "alice" |
body | string | JiraAdf | Plain text, or an Atlassian Document Format document. |
Response 201
| Field | Type | Description |
|---|---|---|
id | string | |
self | string (uri) | |
author | JiraUser | A user as the Jira REST API returns them. |
body | JiraAdf | An Atlassian Document Format document. |
created | string | |
updated | string |
Status codes
201The new comment400Empty body or unknown user401Missing or invalid credentials, or not your team's world404No issue with that key or id
List teams
GET/api/teams
Teams you can see. With an API key, that is the key's team.
Response 200
| Field | Type | Description |
|---|---|---|
teams | Team[] |
Status codes
200Your teams401Missing or invalid credentials
Get a team
GET/api/teams/{teamId}
One team and its members.
Parameters
| Field | Type | Description |
|---|---|---|
teamId | string | Example: "team_k2v9x0q1m4s7d8f3a6b5" |
Response 200
| Field | Type | Description |
|---|---|---|
id | string | Example: "team_k2v9x0q1m4s7d8f3a6b5" |
name | string | Example: "Empirical" |
role | "owner" | "member" | null | Your role in the team. null when the request is authenticated with an API key, which belongs to the team rather than a person. |
created_at | string (date-time) | |
updated_at | string (date-time) | |
members | Member[] |
Status codes
200The team401Missing or invalid credentials404No team with that id is visible to you
Rename a team
PATCH/api/teams/{teamId}
Team owners only, signed in. API keys cannot change teams.
Parameters
| Field | Type | Description |
|---|---|---|
teamId | string | Example: "team_k2v9x0q1m4s7d8f3a6b5" |
Request body
| Field | Type | Description |
|---|---|---|
name | string | 1 to 80 characters. Example: "Empirical" |
Response 200
| Field | Type | Description |
|---|---|---|
id | string | Example: "team_k2v9x0q1m4s7d8f3a6b5" |
name | string | Example: "Empirical" |
role | "owner" | "member" | null | Your role in the team. null when the request is authenticated with an API key, which belongs to the team rather than a person. |
created_at | string (date-time) | |
updated_at | string (date-time) |
Status codes
200The renamed team400Invalid name401Missing or invalid credentials403Not a team owner, or called with an API key404No team with that id is visible to you
List API keys
GET/api/teams/{teamId}/api-keys
Active keys of a team, newest first. Secrets are never returned.
Parameters
| Field | Type | Description |
|---|---|---|
teamId | string | Example: "team_k2v9x0q1m4s7d8f3a6b5" |
Response 200
| Field | Type | Description |
|---|---|---|
api_keys | ApiKey[] |
Status codes
200The team's keys401Missing or invalid credentials404No team with that id is visible to you
Create an API key
POST/api/teams/{teamId}/api-keys
Team members only, signed in. The response is the only time the secret is shown.
Parameters
| Field | Type | Description |
|---|---|---|
teamId | string | Example: "team_k2v9x0q1m4s7d8f3a6b5" |
Request body
| Field | Type | Description |
|---|---|---|
name | string | 1 to 80 characters. Example: "CI" |
Response 201
| Field | Type | Description |
|---|---|---|
id | string | Example: "key_w2rh3pmnhl1pe2wjxgqs" |
name | string | Example: "CI" |
prefix | string | The first characters of the secret, to tell keys apart. Example: "wk_live_4fQ9zT" |
created_by | string | null | Id of the user who created the key. |
created_at | string (date-time) | |
updated_at | string (date-time) | |
last_used_at | string (date-time) | null | |
secret | string | The key itself. Shown only in this response. Example: "wk_live_4fQ9zTb1Lx7mKc2RyV8nHs0dWq5ePj3uGa6oNi9E" |
Status codes
201The new key, with its secret400Invalid name401Missing or invalid credentials403Called with an API key404No team with that id is visible to you
Revoke an API key
DELETE/api/teams/{teamId}/api-keys/{keyId}
Team members only, signed in. The key stops working immediately.
Parameters
| Field | Type | Description |
|---|---|---|
teamId | string | Example: "team_k2v9x0q1m4s7d8f3a6b5" |
keyId | string | Example: "key_w2rh3pmnhl1pe2wjxgqs" |
Response 204
Revoked
Status codes
204Revoked401Missing or invalid credentials403Called with an API key404No such active key in a team visible to you