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

FieldTypeDescription
worldsWorld[]

Status codes

  • 200 Your worlds
  • 401 Missing 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

FieldTypeDescription
namestring1 to 80 characters. Example: "Thread routing eval"
slack optionalSlackSpecEverything in the world's Slack workspace. Omitted ids, credentials and tokens are generated. Leave it out to create the world without Slack.
jira optionalJiraSpecEverything in the world's Jira site. Omitted ids and credentials are generated. Leave it out to create the world without Jira.

Response 201

FieldTypeDescription
idstringExample: "world_k2v9x0q1m4"
namestringExample: "Thread routing eval"
team_idstringExample: "team_k2v9x0q1m4s7d8f3a6b5"
created_bystring | nullId of the user who created the world. null when an API key created it.
ui_urlstring (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/"
servicesWorldService[]The services in this world, each with its UI.
slackSlackCreatednull when the world has no Slack.
jiraJiraCreatednull when the world has no Jira.
created_atstring (date-time)
updated_atstring (date-time)

Status codes

  • 201 The new world, with each service's effective spec (generated ids, credentials and tokens filled in)
  • 400 Invalid name, no service spec, or an invalid Slack or Jira spec
  • 401 Missing or invalid credentials
  • 404 You are not in any team

Get a world

GET/api/worlds/{worldId}

Parameters

FieldTypeDescription
worldIdstringExample: "world_k2v9x0q1m4"

Response 200

FieldTypeDescription
idstringExample: "world_k2v9x0q1m4"
namestringExample: "Thread routing eval"
team_idstringExample: "team_k2v9x0q1m4s7d8f3a6b5"
created_bystring | nullId of the user who created the world. null when an API key created it.
ui_urlstring (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/"
servicesWorldService[]The services in this world, each with its UI.
slackSlackUrlsnull when the world has no Slack.
jiraJiraUrlsnull when the world has no Jira.
created_atstring (date-time)
updated_atstring (date-time)

Status codes

  • 200 The world
  • 401 Missing or invalid credentials
  • 404 No 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

FieldTypeDescription
worldIdstringExample: "world_k2v9x0q1m4"

Response 200

FieldTypeDescription
slackobject
jiraobject

Status codes

  • 200 The world's spec
  • 401 Missing or invalid credentials
  • 404 No 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

FieldTypeDescription
worldIdstringExample: "world_k2v9x0q1m4"

Response 204

Archived

Status codes

  • 204 Archived
  • 401 Missing or invalid credentials
  • 404 No 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

FieldTypeDescription
userstringThe user who acts: their name or id. Bots can't be acted as. Example: "alice"

Response 200

FieldTypeDescription
user_idstringExample: "U0ALICE00001"
tokenstringExample: "xoxp-worlds-0b6c…"

Status codes

  • 200 The user's token
  • 400 Unknown user, or a bot
  • 401 Missing 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

FieldTypeDescription
channel optionalstringA channel id. Example: "C0GENERAL001"

Response 200

FieldTypeDescription
teamSlackWorldTeamThe workspace.
usersSlackWorldUser[]
channelsSlackWorldChannel[]
messagesSlackMessage[]The channel's messages, oldest first. Empty without channel.

Status codes

  • 200 The workspace
  • 401 Missing 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

FieldTypeDescription
userstringThe 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 optionalobjectThe method's arguments, as the Web API takes them. Example: {"channel":"C0GENERAL001","text":"Hey <@U0EMPIRICAL1>, can you take a look?"}

Response 200

FieldTypeDescription
okboolean
error optionalstring

Status codes

  • 200 The method's response
  • 400 A method that can't be called this way, or an unknown user
  • 401 Missing or invalid credentials, or not your team's world

Share a file as a user

POST/_worlds/slack/upload

Host https://{world}-slack.makeworlds.dev. {world} is the world id without its world_ prefix, as in the world's URLs.

Uploads the file and shares it in the channel, as files.uploadV2 does.

Request body

FieldTypeDescription
userstringThe user who acts: their name or id. Bots can't be acted as. Example: "alice"
channelstringA channel id. Example: "C0GENERAL001"
filestring (binary)
text optionalstringA message to share the file with.
thread_ts optionalstringShare it in this thread.

Response 200

FieldTypeDescription
okboolean
error optionalstring

Status codes

  • 200 files.completeUploadExternal's response
  • 400 Missing fields or an unknown user
  • 401 Missing or invalid credentials, or not your team's world
  • 502 The upload failed

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

FieldTypeDescription
fileIdstringExample: "F0A1B2C3D4"

Response 200

string (binary)

Status codes

  • 200 The file's bytes, with its mimetype as content-type
  • 401 Missing or invalid credentials, or not your team's world
  • 404 No 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

FieldTypeDescription
specJiraStateThe world's Jira spec with every generated id and credential filled in.
issuesJiraIssue[]
webhooksJiraWebhook[]

Status codes

  • 200 The site's state
  • 401 Missing 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

FieldTypeDescription
userstringThe user who acts: their name or account id. Webhooks name them as the actor. Example: "alice"
projectstringA project key. Example: "WRLD"
summarystring1 to 255 characters. Example: "Checkout fails for guest users"
description optionalstring | JiraAdfPlain text, or an Atlassian Document Format document.
labels optionalstring[]
status"To Do" | "In Progress" | "Done"
assignee optionalstringA user's name or id. Example: "alice"

Response 201

FieldTypeDescription
idstring
keystringExample: "WRLD-1"
selfstring (uri)
fieldsJiraIssueFieldsThe issue's fields.

Status codes

  • 201 The new issue
  • 400 Invalid fields, or an unknown user, assignee or project
  • 401 Missing 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

FieldTypeDescription
keystringExample: "WRLD-1"

Request body

FieldTypeDescription
userstringThe user who acts: their name or account id. Webhooks name them as the actor. Example: "alice"
summary optionalstring1 to 255 characters. Example: "Checkout fails for guest users"
description optionalstring | JiraAdf | nullPlain text, or an Atlassian Document Format document.
labels optionalstring[]
status optional"To Do" | "In Progress" | "Done"
assignee optionalstring | nullnull unassigns the issue. Example: "alice"

Response 200

FieldTypeDescription
issueJiraIssueThe issue as the Jira REST API returns it.
changelogJiraChangeItem[]

Status codes

  • 200 The issue and what changed
  • 400 Invalid fields, or an unknown user or assignee
  • 401 Missing or invalid credentials, or not your team's world
  • 404 No 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

FieldTypeDescription
keystringExample: "WRLD-1"
userstringThe user who acts: their name or account id. Webhooks name them as the actor. Example: "alice"

Response 204

Deleted

Status codes

  • 204 Deleted
  • 400 Unknown user
  • 401 Missing or invalid credentials, or not your team's world
  • 404 No 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

FieldTypeDescription
keystringExample: "WRLD-1"

Request body

FieldTypeDescription
userstringThe user who acts: their name or account id. Webhooks name them as the actor. Example: "alice"
bodystring | JiraAdfPlain text, or an Atlassian Document Format document.

Response 201

FieldTypeDescription
idstring
selfstring (uri)
authorJiraUserA user as the Jira REST API returns them.
bodyJiraAdfAn Atlassian Document Format document.
createdstring
updatedstring

Status codes

  • 201 The new comment
  • 400 Empty body or unknown user
  • 401 Missing or invalid credentials, or not your team's world
  • 404 No 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

FieldTypeDescription
teamsTeam[]

Status codes

  • 200 Your teams
  • 401 Missing or invalid credentials

Get a team

GET/api/teams/{teamId}

One team and its members.

Parameters

FieldTypeDescription
teamIdstringExample: "team_k2v9x0q1m4s7d8f3a6b5"

Response 200

FieldTypeDescription
idstringExample: "team_k2v9x0q1m4s7d8f3a6b5"
namestringExample: "Empirical"
role"owner" | "member" | nullYour role in the team. null when the request is authenticated with an API key, which belongs to the team rather than a person.
created_atstring (date-time)
updated_atstring (date-time)
membersMember[]

Status codes

  • 200 The team
  • 401 Missing or invalid credentials
  • 404 No 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

FieldTypeDescription
teamIdstringExample: "team_k2v9x0q1m4s7d8f3a6b5"

Request body

FieldTypeDescription
namestring1 to 80 characters. Example: "Empirical"

Response 200

FieldTypeDescription
idstringExample: "team_k2v9x0q1m4s7d8f3a6b5"
namestringExample: "Empirical"
role"owner" | "member" | nullYour role in the team. null when the request is authenticated with an API key, which belongs to the team rather than a person.
created_atstring (date-time)
updated_atstring (date-time)

Status codes

  • 200 The renamed team
  • 400 Invalid name
  • 401 Missing or invalid credentials
  • 403 Not a team owner, or called with an API key
  • 404 No 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

FieldTypeDescription
teamIdstringExample: "team_k2v9x0q1m4s7d8f3a6b5"

Response 200

FieldTypeDescription
api_keysApiKey[]

Status codes

  • 200 The team's keys
  • 401 Missing or invalid credentials
  • 404 No 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

FieldTypeDescription
teamIdstringExample: "team_k2v9x0q1m4s7d8f3a6b5"

Request body

FieldTypeDescription
namestring1 to 80 characters. Example: "CI"

Response 201

FieldTypeDescription
idstringExample: "key_w2rh3pmnhl1pe2wjxgqs"
namestringExample: "CI"
prefixstringThe first characters of the secret, to tell keys apart. Example: "wk_live_4fQ9zT"
created_bystring | nullId of the user who created the key.
created_atstring (date-time)
updated_atstring (date-time)
last_used_atstring (date-time) | null
secretstringThe key itself. Shown only in this response. Example: "wk_live_4fQ9zTb1Lx7mKc2RyV8nHs0dWq5ePj3uGa6oNi9E"

Status codes

  • 201 The new key, with its secret
  • 400 Invalid name
  • 401 Missing or invalid credentials
  • 403 Called with an API key
  • 404 No 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

FieldTypeDescription
teamIdstringExample: "team_k2v9x0q1m4s7d8f3a6b5"
keyIdstringExample: "key_w2rh3pmnhl1pe2wjxgqs"

Response 204

Revoked

Status codes

  • 204 Revoked
  • 401 Missing or invalid credentials
  • 403 Called with an API key
  • 404 No such active key in a team visible to you