API & MCP

Personal access tokens, ability scopes, the REST API, and the MCP tools that mirror every dashboard action.

Connect your AI appslink

Connect Claude, ChatGPT, Cursor or VS Code to the Management MCP to run your account, or to the Teammates MCP to talk to your Teammates. You sign in with your Associates AI account.

Runs your account: agent servers, Teammates, skills, secrets, models and deploys.

Claude Code

claude mcp add --transport http associatesai-management https://associatesai.team/mcp

Then run /mcp in Claude Code and sign in.

VS Code

code --add-mcp '{"name":"associatesai-management","type":"http","url":"https://associatesai.team/mcp"}'

Run it in a terminal, then sign in when VS Code prompts.

Cursor

Add Management MCP to Cursor

Opens Cursor with the server ready to install; sign in when prompted. Or add the config below by hand.

Cursor

Add this to ~/.cursor/mcp.json, then sign in when prompted.

{ "mcpServers": { "associatesai-management": { "url": "https://associatesai.team/mcp" } } }

VS Code (workspace file)

Add this to .mcp.json in your workspace, then sign in when prompted.

{ "mcpServers": { "associatesai-management": { "type": "http", "url": "https://associatesai.team/mcp" } } }

Claude.ai

  1. Open Customize > Connectors.
  2. Select "+ Add", then choose "Add custom connector".
  3. Enter a name and the server URL https://associatesai.team/mcp.
  4. Select "Continue", then "Add".
  5. Select "Connect" and sign in with your Associates AI account.

ChatGPT

  1. Open ChatGPT Plugins and select +.
  2. Choose "Add custom MCP server".
  3. Enter a name and the Server URL https://associatesai.team/mcp.
  4. Choose OAuth, then select "Create as a plugin".
  5. Install it and sign in with your Associates AI account.

Lets you talk to your Teammates from your AI app.

Claude Code

claude mcp add --transport http associatesai-teammates https://associatesai.team/mcp/teammates

Then run /mcp in Claude Code and sign in.

VS Code

code --add-mcp '{"name":"associatesai-teammates","type":"http","url":"https://associatesai.team/mcp/teammates"}'

Run it in a terminal, then sign in when VS Code prompts.

Cursor

Add Teammates MCP to Cursor

Opens Cursor with the server ready to install; sign in when prompted. Or add the config below by hand.

Cursor

Add this to ~/.cursor/mcp.json, then sign in when prompted.

{ "mcpServers": { "associatesai-teammates": { "url": "https://associatesai.team/mcp/teammates" } } }

VS Code (workspace file)

Add this to .mcp.json in your workspace, then sign in when prompted.

{ "mcpServers": { "associatesai-teammates": { "type": "http", "url": "https://associatesai.team/mcp/teammates" } } }

Claude.ai

  1. Open Customize > Connectors.
  2. Select "+ Add", then choose "Add custom connector".
  3. Enter a name and the server URL https://associatesai.team/mcp/teammates.
  4. Select "Continue", then "Add".
  5. Select "Connect" and sign in with your Associates AI account.

ChatGPT

  1. Open ChatGPT Plugins and select +.
  2. Choose "Add custom MCP server".
  3. Enter a name and the Server URL https://associatesai.team/mcp/teammates.
  4. Choose OAuth, then select "Create as a plugin".
  5. Install it and sign in with your Associates AI account.

The parity principlelink

Nearly everything your role allows in the dashboard, you can also do through the HTTP API or through MCP tools. Same validation, same business rules, same result — the dashboard is one of three ways to trigger the same underlying action, not a special path with extra capabilities.

Note

In the dashboard we call them agent servers. In the API and in MCP tool names, the same thing is called an instance.

Personal access tokenslink

Generate personal access tokens from the API tokens page in your dashboard. Each token carries a set of ability scopes that limit what it can do — scope a token down to only what an integration needs.

Scope Covers
instances:read / instances:write Agent servers — view, create, resize, delete
agents:* Teammates — create, view, delete; their workspace/soul document files, templates and model config
skills:* Skills catalog, per-Teammate skills and plugins
secrets:* Company and Teammate secrets, egress allowlists
deploys:* Deploy all, force-deploy, discard, deploy history
webhooks:* Inbound webhook configuration
messaging:* Channel configuration, identity, Slack onboarding, who can talk to each Teammate
config:* Company model config, provider credentials and the per-server ChatGPT connection
pages:read / pages:write The Agent Pages tools only, never domains or page addresses: the same page tools as apps:* (everything except add_custom_domain, verify_custom_domain, remove_custom_domain, get_custom_domain, set_page_address, verify_page_address, remove_page_address and the template tools), and every member can grant them. Per-page rights still apply: updating a page needs edit access to it, creating one needs access to the agent server, and another organization's pages are never reachable. The Teammates MCP asks for these instead of apps:*
apps:read / apps:write Agent Pages: list them and their versions (with each page's custom_url once its address and your domain are both Verified); publish (MCP publish_page), roll back or delete; manage your organization's own domains (up to 3) and page addresses through the MCP tools, not the REST API. add_custom_domain returns the ownership TXT record and the one-time *.<domain> pages CNAME to create first; the certificate's validation CNAME follows once the TXT record checks out. Once the pages record is found, set_page_address makes an address live in the same call, with no record to create (get_custom_domain shows record as null for those addresses); on a domain without the pages record it returns the page's CNAME to create. remove_custom_domain says to delete the pages record too. verify_custom_domain checks the records now instead of waiting for the automatic check. Page files, over REST at /api/v1/pages/{name}/files and through the MCP tools: list, download link, upload (a presigned form, then complete), delete, restore (owners) and the retention date that every uploading page needs. Read tools (apps:read): list_hosted_pages, get_page_sharing, list_page_templates, diff_page_with_template (a page's files against a template's current files), get_custom_domain, list_page_files, get_page_file_url. Write tools (apps:write): duplicate_page_template (starts a page from a template and creates nothing yet), save_company_template, release_company_template, rollback_company_template and delete_company_template (your organization's own page templates; organization owners and admins only, a template deleted while pages still use it is hidden but those pages keep working), rollback_hosted_page, unpublish_hosted_page, upload_page_file, complete_page_file, delete_page_file, restore_page_file, set_page_files_retention, set_page_person_access, set_page_org_access, set_page_visibility, add_custom_domain, verify_custom_domain, remove_custom_domain, set_page_address, verify_page_address, remove_page_address. The older *_hosted_app names still work but are deprecated. unpublish_hosted_page deletes a page: it goes offline now and moves to Recently deleted, where it can be restored for 30 days. A token you create for yourself lists the pages you can see; rollback needs editor or owner access and delete needs owner access on the page. A Teammate's server token lists organization-shared pages and pages with no owner, can roll those back, and cannot delete: it points you to Dashboard > Agent Pages. Sharing tools: get_page_sharing (apps:read) and set_page_person_access, set_page_org_access and set_page_visibility (apps:write) read and change who can see a page and whether it is public. get_page_sharing needs editor or owner access; the change tools need an owner of the page. A Teammate's server token can use them only on a page it published and an owner approved it for, acts with that owner's rights, only when the person who asked is in the page's organization (the platform fills in requester_user_id; leave it empty), which is all it takes to give or remove viewer or commenter access or set a page back to organization-only (editor access and changes to it need an owner, since an editor can make a page public), cannot make anyone an owner, lower or remove an owner, or make a page public (set_page_visibility with public is refused with a link to the page's sharing settings in the dashboard; setting it back to organization-only works), and every change is audited. A page an owner turned Protected on refuses all three change tools. No tool turns Protected on or off, approves a Teammate or restores a page; those stay in the dashboard. rollback_hosted_page does not bring a deleted page back. A Teammate's token can also use the page file tools on its own pages. For domains and page addresses it is read-only: it can read the domains and page addresses with get_custom_domain, and adding, checking and removing a domain need an owner or admin; setting, checking and removing a page's address need an owner of that page
memories:read / memories:write Search and view memory and entities / store and delete memories
connections:read / connections:write Your own connected apps (Gmail, Calendar, ...): list, connect, disconnect. Personal to you; not available to agent-server tokens
billing:write Billing email update through the MCP update_billing_email tool, not the REST API
chat:write Send messages to your agents, read replies, and answer approvals through the MCP chat tools and the chat REST routes, for the Teammates you may chat with

The scopes you can give a token depend on your role in the current organization. Owners can grant every scope. Administrators can grant every scope except billing:write. Other members can grant memories:read, memories:write, connections:read, connections:write and chat:write. A token with chat:write and no read scopes can still call list_instances and list_agents, but gets a minimal view: only the agent servers and Teammates you may chat with, each with just its ID and name. The update_billing_email tool refuses a personal token whose user does not own the team. A token only works with the scopes its owner may still hold in the organization they are currently in: if your role drops or you leave the organization, the token loses those scopes straight away.

Tokens created before the connections scopes existed do not have them; create a new token, or re-authorize your MCP client and approve the connections access, to get them.

These same tokens (via OAuth for human users) authenticate MCP clients too — one credential, both surfaces.

The per-agent-server tokens issued to a running Teammate are MCP-only. The REST API rejects them with 401.

The connections endpoints and tools are personal. They need a token that belongs to a signed-in person: organization tokens get 401 from both the REST endpoints and MCP, and agent-server tokens get 401 from REST and the message "This tool is only available to a signed-in person." from the MCP tools.

REST APIlink

The API is versioned at /api/v1. It follows the same resource shape as the dashboard: agent servers, Teammates nested under a server, and their configuration, skills, secrets, and messaging nested under each Teammate.

Send a personal access token from the API tokens page as a bearer token, for example curl -H "Authorization: Bearer $TOKEN" https://associatesai.team/api/v1/instances. A missing or invalid token gets 401; a valid token that lacks the scope a route needs gets 403. Every route and the scope it needs are listed in the API reference at the bottom of this page, which is generated from the live routes. Download the same description as an OpenAPI 3.1 file for Postman, Insomnia or a client generator. The reference is read-only: it doesn't send requests with your token.

When a request breaks a rule (for example, editing a managed skill before customizing it, adding a skill whose name is already taken, creating a Teammate whose ID is already taken on that server or a first Teammate on a server that isn't named main, deploying or force-deploying an agent server that has no main Teammate, force-deploying or shutting down a server that is being deleted, creating a Teammate or changing a Teammate's model on a server that is being deleted, or deleting the main Teammate), the API responds with HTTP 422 and a JSON body of the form {"error": "<the rule that was broken>"}. The matching MCP tool returns an error result with the same message, so an AI assistant can tell you what to change.

Pluginslink

Plugins have their own routes, under the skills:read and skills:write scopes:

Route What it does
GET /api/v1/plugins Your organization's plugins
POST /api/v1/plugins Add a plugin: url, optional ref (branch, tag or full commit id), optional skills_path (the folder that holds the skills; default skills), and the instance_id and agent_id of the Teammate whose GitHub connection reads the repository
GET /api/v1/plugins/{id} One plugin, the Teammates it's assigned to with what each skill does there, and any update waiting for a deploy
PATCH /api/v1/plugins/{id} Follow another branch or tag, or pin a commit, with ref (null follows the default branch); or pin the commit in use with "pin_current": true
POST /api/v1/plugins/{id}/refresh Check for updates
DELETE /api/v1/plugins/{id} Remove the plugin
GET /api/v1/instances/{instance}/proposals Changes your Teammates have proposed on a sleeping server and are waiting for your approval
POST /api/v1/instances/{instance}/proposals/{id}/decision Approve or deny a proposal: decision (approve or deny) and the revision you reviewed
PUT /api/v1/instances/{instance}/agents/{agent}/plugins/{id} Assign the plugin to a Teammate
DELETE /api/v1/instances/{instance}/agents/{agent}/plugins/{id} Unassign it

A plugin's state is loading, ready, failed (its first commit couldn't be used) or update_failed (a newer commit couldn't be used; the plugin stays on commit). While a commit loads or after it fails, target_commit names it, and error gives the reason as a code and a message. Loading happens in the background, so read the plugin again to see the result. When a plugin request is refused by a rule, the 422 body also carries an error_code that stays the same between releases (for example invalid_url, repository_not_found, still_assigned) and, where one file, skill, branch, tag or commit caused it, that name as path. Assigning returns each skill's outcome on that Teammate: delivered, replaces_template, own_skill (not delivered; the Teammate keeps its own skill of that name) or other_plugin.

In a Teammate's skill list, a skill that comes from a plugin carries a plugin object with the plugin's id, its repository as name, and the commit it comes from.

Agent servers are always-on by default. Pass runtime_backend: "sleeps_when_idle" (the other value, and the default, is always_on) to create_instance or POST /api/v1/instances to create a sleeping server instead; omit size and disk_size_gb for it (sending either returns a 422). The choice can't be changed with update_instance, and extra Teammates, per-server model lists, messaging channels and webhooks return a 422 on a sleeping server.

When your team already uses ChatGPT, the create response also carries a chatgpt object (needs_connection, instance_id, message, tool, api) telling you the new server still needs its own ChatGPT sign-in; call start_openai_connection (or POST /api/v1/company/openai-connection/start) with its instance_id.

While a server's deletion is waiting to finish, force_deploy_instance, shutdown_instance, POST /api/v1/instances/{instance}/force-deploy and the shutdown endpoint, and creating a Teammate, changing a Teammate's model or deleting a Teammate on it, return an error: "This server is being deleted, so it can't be changed or deployed." Updating the server itself (PUT /api/v1/instances/{instance}) is refused as a validation error instead: "This server is pending deletion. Discard changes first."

A sleeping server also has no deploy step, so the deploy tools and endpoints treat it differently. list_deploy_history, get_deploy_status and the deploy history and status endpoints under /api/v1/ leave sleeping servers out, and reading an instance returns no deploy or pending-change fields for one. force_deploy_instance and POST /api/v1/instances/{instance}/force-deploy return an error for a sleeping server: "This server applies changes as soon as you save them, so there is nothing to apply by hand." deploy_all skips sleeping servers (and never applies a Teammate's proposal) when your account also has always-on servers, and returns the same error when it has only sleeping ones, unless a deletion is waiting to finish. A sleeping server's pending deletion still finishes through a deploy.

Your connectionslink

Your own connections have three routes, under the connections:read and connections:write scopes. They work on the connections you hold in your current organization.

Route What it does
GET /api/v1/me/connections The organization the connections belong to, and each service with its status (connected, pending or needs_reconnect) and its connections
POST /api/v1/me/connections Connect a service: send service (for example gmail). Returns status connected if it already is, or status link with a url you open yourself to sign in
DELETE /api/v1/me/connections/{id} Disconnect one connection by its id from the list

Errors come back as {"message": "..."}: 404 for a connection that isn't yours, 422 for an unknown service name, 409 when you have no current organization or connections aren't available, and 503 when the sign-in provider can't be reached.

MCP tools by featurelink

Feature Representative MCP tools
Agent servers list_instances, get_instance, create_instance, update_instance, delete_instance, shutdown_instance
Teammates list_agents, get_agent, create_agent, delete_agent
Workspace files get_agent_config, save_agent_config_file, delete_agent_config_file, customize_agent_config, change_agent_template
Greenlight get_engineering_workflow, save_engineering_workflow, set_greenlight_role (makes an existing agent the QA Reviewer or Engineer, or removes that role; use_github_app_from_agent makes one of them use another agent's installed GitHub App; the programmatic way to change QA-GRADER.md and DEV-WORKFLOW.md; the dashboard's Greenlight page is the other; saving stages the files until you deploy)
Skills list_skills, add_skill, delete_skill, save_skill_file, delete_skill_file (removes one file and keeps the skill), customize_skill, promote_skill, toggle_skill
Plugins list_plugins, add_plugin, refresh_plugin (check for updates, change the branch or tag, or pin), remove_plugin, assign_plugin, unassign_plugin; a plugin request refused by a rule returns an error that starts with its error_code
Models get_model_config, update_model_config (set scope to company, server or agent), save_provider_credential; the older get_/update_company_model_config, get_/update_instance_model_config and get_/update_agent_model_config still work but are deprecated
Secrets list_secrets, save_secret, delete_secret (set scope to agent or company; agent also needs instance_id and agent_id); the older list_/save_/delete_agent_secret and list_/save_/delete_company_secret still work but are deprecated
Messaging get_messaging_config, update_messaging_config, set_agent_identity, upload_agent_avatar, get_teammate_access, add_teammate_access, remove_teammate_access (only the organization owner or the Teammate's creator can add or remove; see Who can talk to a Teammate)
Webhooks list_webhooks, create_webhook, update_webhook, toggle_webhook, regenerate_webhook_secret, switch_webhook_to_managed (previews the current and managed filter and prompt; pass confirm: true to convert a QA Reviewer's webhook; GET and POST /api/v1/instances/{instance}/webhooks/{id}/switch-to-managed are the API equivalents)
Deploys deploy_all, discard_pending_changes, list_pending_changes, discard_pending_change (one change, by its change_id), list_deploy_history, get_deploy_status, force_deploy_instance, list_agent_proposals, decide_agent_proposal (only a person can decide; a Teammate's own token can't)
Your connections list_my_connections, connect_my_service (returns a link you open yourself to sign in), disconnect_my_connection
Chat send_agent_message, get_agent_reply (read-only), list_conversations (read-only), decide_agent_approval (see Talking to an agent)
Billing update_billing_email

The management tools above are served at https://associatesai.team/mcp; AI apps that only need to talk to your Teammates use the smaller Teammates MCP at /mcp/teammates.

This isn't the exhaustive list — see your API token's available scopes and your MCP client's tool listing for the complete set. Each caller is shown only the tools it can use: a Teammate's token doesn't list the connection tools, publish_page, or (without self-deploy on its server) the deploy and shutdown tools, and a person's token doesn't list the Standup and push tools that only Teammates use.

Talking to an agentlink

You can message a Teammate from any MCP client or from the REST API, without opening the dashboard. This needs the chat:write scope, which every member can have. You can talk to the Teammates you may chat with: owners and admins every Teammate, and everyone else the ones that list them (see Who can talk to a Teammate). Agent servers on the older per-channel allowlists are owner-only. Chat must be turned on for your server.

Route What it does
POST /api/v1/instances/{instance}/agents/{agent}/messages Send a message. Add the conversation_id of an earlier reply to continue that conversation; leave it out to start a new one
GET /api/v1/instances/{instance}/messages/{message} Read the reply to a message you sent
GET /api/v1/instances/{instance}/conversations/{conversation}/reply Read the latest reply in a conversation, by its conversation_id
GET /api/v1/conversations List your recent conversations, newest first, with instance_id, conversation_id and a title. Optional instance_id limits it to one server; limit defaults to 20, up to 50
POST /api/v1/instances/{instance}/conversations/{conversation}/approvals/{approval} Answer an approval the Teammate asked for: decision is allow or deny. The response has the new state and removed_message_id: the id of the Teammate's "tap Allow or Deny" reply, which is deleted from the conversation once you answer, or null when there was none

The MCP tools do the same: send_agent_message, get_agent_reply (read-only), list_conversations (read-only) and decide_agent_approval.

Sending a message gives you a status, a conversation_id, a message_id, the Teammate's reply in rows, and any approvals. The status is one of:

  • running: the Teammate is still working
  • needs_approval: the Teammate is waiting for your Allow or Deny; see approvals
  • done: the reply is ready in rows
  • failed: the message could not be answered

A running turn can also have an approval in approvals that is still waiting, so check approvals as well as status.

Sending returns at once with running and an empty rows. Read the reply with get_agent_reply (or GET /api/v1/instances/{instance}/messages/{message}) and the message_id: it waits up to about 15 seconds, so call it again while the status is running, until it is done. Don't send the message a second time. To pick a conversation up later, or from another app, call list_conversations (or GET /api/v1/conversations) to find its conversation_id, then read the latest reply with get_agent_reply and that conversation_id (or GET /api/v1/instances/{instance}/conversations/{conversation}/reply).

If the Teammate needs your permission, the reply has an entry in approvals with an id, the text it asked, a state and an expires_at time. An approval from an earlier message in the conversation stays in approvals while its state is still waiting, so you can answer it from a later reply. The state is one of:

  • waiting: the Teammate is asking and nobody has answered
  • working: your answer is on its way to the Teammate (answering returns working until it is delivered)
  • allowed: the Teammate received your allow
  • denied: you denied it
  • expired: nobody answered in time, or the Teammate's run did not finish in time
  • failed: your answer could not be delivered

Ask the person first, then send the decision. The Teammate carries on in its next turn, so send a follow-up message in the same conversation to continue.

Limits apply the same way to MCP and REST: 30 messages a minute and 3 unfinished messages at a time for each person on each agent server. A message can be up to 8,000 characters. Going over a limit returns 429. If message delivery is switched off, you get 503. Unknown IDs, a server that isn't in your organization, or a server where chat is off, return 404. A Teammate you may not chat with returns 403. Answering an approval that was already decided or has expired returns 409. A missing or too-long message, a malformed conversation_id, or a decision other than allow or deny, returns 422.

Note

Existing personal tokens and connected MCP clients don't gain chat:write on their own. Create a new token, or re-authorize the connection, to add it.

Teammates MCP: connect from your AI applink

Teammates MCP lets you talk to your Teammates from ChatGPT, Claude, Perplexity or any AI app that supports MCP. Add https://associatesai.team/mcp/teammates as a remote MCP server and sign in.

Teammates MCP also carries the Agent Pages tools (list, publish, roll back, delete, share and attach files) under the pages:read and pages:write scopes, which every member can grant and which only reach the pages that member can already edit. Step-by-step setup for each app is on the Teammates MCP page.

Agent servers have their own MCP tokenslink

Each agent server gets its own MCP token, separate from your personal ones — this is how a Teammate reaches its own gateway and, if configured, calls back into the platform's API. That token only gets deploys:write when allow_self_deploy is turned on for that server (see Agent servers); otherwise it can't trigger a deploy on its own. It can read who can talk to its Teammates, but never change it, whatever its scopes.

Agent-proposed configurationlink

A Teammate can propose a configuration change through MCP on its own initiative — a new skill it wants, a tweak to its own instructions, a different model, a channel to add. That proposal lands as a pending change, exactly like a change you made yourself in the dashboard: it shows up in the pending diff, and nothing takes effect until you review and deploy it (or reject it). The one exception is a sleeping server with allow_self_deploy turned on, which applies its Teammate's proposals on its own. It's human-in-the-loop at the configuration layer, not a way for a Teammate to reconfigure itself unsupervised.

On a sleeping server without allow_self_deploy, the Teammate's changes become a proposal. The Teammate is told its change isn't live yet and to ask you to approve it. You approve or deny the proposal in the dashboard, in the chat where the Teammate asked, or through the API and MCP. Approving applies every pending change on that server. Denying removes every pending change on that server, including any you made yourself. If the proposal grew since you looked, the approval is refused so you can review the latest changes first. After an approval the proposal's status is applying until the server has applied it. If your Teammate changed something in the meantime, or applying failed, the proposal is open again with a notice explaining why, and you decide again.

Secrets are the one thing a Teammate can't propose: on a sleeping server without allow_self_deploy, saving or deleting a secret is refused, and the Teammate is told to ask you to add it in the dashboard under Secrets, or to turn on self-deploy for that server.

What's dashboard-onlylink

A few actions don't have an API or MCP equivalent yet:

  • Connecting a GitHub App to a Teammate
  • Managing integration connections — though you don't need the API for that: connect from the dashboard, or just ask the Teammate ("connect my HubSpot account")
  • Authoring your own reusable customer templates

Everything else described in these docs has full dashboard/API/MCP parity.

API reference

108 endpoints under https://associatesai.team/api/v1. Send your token as Authorization: Bearer <token>. The machine-readable OpenAPI 3.1 spec imports into Postman, Insomnia and client generators.

Agent
get /instances/{instanceId}/agents List all agents for an instance

Required token scope: agents:read.

Parameters

  • instanceId path, string, required

Responses: 200, 401

post /instances/{instanceId}/agents Create a new agent

Required token scope: agents:write.

Parameters

  • instanceId path, string, required

JSON body

  • default_model string
  • template_type string
  • extends_agent string

Responses: 201, 422, 401

get /instances/{instanceId}/agents/{agentId} Get a single agent by ID

Required token scope: agents:read.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

Responses: 200, 404, 401

delete /instances/{instanceId}/agents/{agentId} Delete an agent

Required token scope: agents:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

Responses: 204, 422, 401

Agent Access
get /instances/{instanceId}/agents/{agentId}/access

Required token scope: messaging:read.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

Responses: 200, 401

post /instances/{instanceId}/agents/{agentId}/access

Required token scope: messaging:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

JSON body

  • kind object, required
  • user_id integer | null

Responses: 200, 422, 401

delete /instances/{instanceId}/agents/{agentId}/access/{entryId}

Required token scope: messaging:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required
  • entryId path, integer, required

Responses: 200, 401

Agent Chat
post /instances/{instanceId}/agents/{agentId}/messages

Required token scope: chat:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

JSON body

  • message string, required
  • conversation_id string | null

Responses: 200, 422, 401

get /instances/{instanceId}/messages/{messageId}

Required token scope: chat:write.

Parameters

  • instanceId path, string, required
  • messageId path, integer, required

Responses: 200, 401

get /instances/{instanceId}/conversations/{conversationId}/reply

Required token scope: chat:write.

Parameters

  • instanceId path, string, required
  • conversationId path, string, required

Responses: 200, 401

get /conversations

Required token scope: chat:write.

Parameters

  • instance_id query, string | null
  • limit query, integer | null

Responses: 200, 422, 401

post /instances/{instanceId}/conversations/{conversationId}/approvals/{approvalId}

Required token scope: chat:write.

Parameters

  • instanceId path, string, required
  • conversationId path, string, required
  • approvalId path, string, required

JSON body

  • decision string, required

Responses: 200, 422, 401

Agent Config
get /instances/{instanceId}/agents/{agentId}/config Get agent config (is_custom, template_type, workspace files)

Required token scope: agents:read.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

Responses: 200, 401

put /instances/{instanceId}/agents/{agentId}/config/files/{file} Save a single workspace file

Required token scope: agents:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required
  • file path, string, required

Responses: 200, 422, 401

delete /instances/{instanceId}/agents/{agentId}/config/files/{file} Delete a single workspace file (overlay only on managed agents)

Required token scope: agents:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required
  • file path, string, required

Responses: 200, 422, 401

post /instances/{instanceId}/agents/{agentId}/config/customize Convert a managed agent to custom mode

Required token scope: agents:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

Responses: 200, 422, 401

put /instances/{instanceId}/agents/{agentId}/config/template Change a managed agent's template type

Required token scope: agents:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

Responses: 200, 422, 401

Agent Model Config
get /instances/{instanceId}/agents/{agentId}/model-config

Required token scope: agents:read.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

Responses: 200, 404, 401

put /instances/{instanceId}/agents/{agentId}/model-config Update model config for an agent

Required token scope: agents:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

JSON body

  • default_model string, required
  • allowed_models string

Responses: 200, 422, 401

Agent Secret
get /instances/{instanceId}/agents/{agentId}/secrets List resolved agent secrets (key names only, never values)

Required token scope: secrets:read.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

Responses: 200, 401

put /instances/{instanceId}/agents/{agentId}/secrets/{key} Create or update an agent user secret

Required token scope: secrets:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required
  • key path, string, required

JSON body

  • value string | null
  • allowed_hosts array | null
  • clear_allowed_hosts boolean | null

Responses: 200, 422, 401

delete /instances/{instanceId}/agents/{agentId}/secrets/{key} Delete an agent user secret

Required token scope: secrets:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required
  • key path, string, required

Responses: 204, 401

Company Config
get /company/model-config Get model config for the company

Required token scope: config:read.

Responses: 200, 401

put /company/model-config Update model config for the company

Required token scope: config:write.

JSON body

  • allowed_models array, required
  • replacement_model string | null

Responses: 200, 409, 422, 401

get /company/provider-credentials List provider credential key names (never values)

Required token scope: config:read.

Responses: 200, 401

put /company/provider-credentials/{provider} Create or update a provider credential

Required token scope: config:write.

Parameters

  • provider path, string, required

Responses: 200, 401

delete /company/provider-credentials/{provider} Delete a provider credential

Required token scope: config:write.

Parameters

  • provider path, string, required

Responses: 204, 401

Company Secret
get /company/secrets List company user secret key names (never values)

Required token scope: secrets:read.

Responses: 200, 401

put /company/secrets/{key} Create or update a company user secret

Required token scope: secrets:write.

Parameters

  • key path, string, required

JSON body

  • value string | null
  • allowed_hosts array | null
  • clear_allowed_hosts boolean | null

Responses: 200, 422, 401

delete /company/secrets/{key} Delete a company user secret

Required token scope: secrets:write.

Parameters

  • key path, string, required

Responses: 204, 401

Deploy
post /deploys Deploy all pending changes for the current client

Required token scope: deploys:write.

Responses: 200, 422, 401

delete /deploys/pending Discard all pending changes for the current client

Required token scope: deploys:write.

Responses: 200, 422, 401

get /deploys/pending List pending changes per server, each with the change_id discardChange takes

Required token scope: deploys:read.

Parameters

  • instance_id query, string | null

Responses: 200, 422, 401

post /instances/{instanceId}/pending-changes/discard Discard one pending change and keep the rest

Required token scope: deploys:write.

Parameters

  • instanceId path, string, required

JSON body

  • change_id string, required

Responses: 200, 422, 401

get /deploys/history List deploy history across all instances for the current client; `server`, `limit` and `before` (a deploy_timestamp) narrow and page it

Required token scope: deploys:read.

Parameters

  • server query, string
  • limit query, integer
  • before query, string

Responses: 200, 422, 401

get /deploys/{deployId} Get details of a specific deploy execution

Required token scope: deploys:read.

Parameters

  • deployId path, string, required

Responses: 200, 404, 401

Engineering Workflow
get /instances/{instanceId}/engineering-workflow

Required token scope: agents:read.

Parameters

  • instanceId path, string, required

Responses: 503, 404, 422, 200, 401

put /instances/{instanceId}/engineering-workflow

Required token scope: agents:write.

Parameters

  • instanceId path, string, required

Responses: 503, 404, 422, 200, 401

put /instances/{instanceId}/engineering-workflow/agents/{agentId}/role

Required token scope: agents:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

JSON body

  • role string | null

Responses: 503, 404, 422, 200, 401

post /instances/{instanceId}/engineering-workflow/agents/{agentId}/github-app

Required token scope: agents:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

JSON body

  • from_agent string, required

Responses: 503, 404, 422, 200, 401

put /instances/{instanceId}/engineering-workflow/agents/{agentId}/github-app/webhook-secret

Required token scope: agents:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

JSON body

  • secret string, required

Responses: 503, 404, 422, 200, 401

Instance
get /instances List all instances for the current client

Required token scope: instances:read.

Responses: 200, 401

post /instances Create a new instance

Required token scope: instances:write.

JSON body

  • display_name string, required
  • diagnostics_trace_enabled boolean
  • runtime_backend string: always_on
  • size string: standard_small, standard_medium, standard_large, standard_xl, performance_small, performance_medium, performance_large, performance_xl, required
  • disk_size_gb integer, required

Responses: 201, 422, 401

get /instances/{instanceId} Get a single instance by ID

Required token scope: instances:read.

Parameters

  • instanceId path, string, required

Responses: 200, 404, 401

put /instances/{instanceId} Update an existing instance

Required token scope: instances:write.

Parameters

  • instanceId path, string, required

JSON body

  • display_name string
  • size string: standard_small, standard_medium, standard_large, standard_xl, performance_small, performance_medium, performance_large, performance_xl
  • disk_size_gb integer
  • runtime_backend string: always_on, sleeps_when_idle
  • diagnostics_trace_enabled boolean
  • agent_max_concurrent integer | null
  • subagent_max_concurrent integer | null

Responses: 200, 422, 401

delete /instances/{instanceId} Delete an instance

Required token scope: instances:write.

Parameters

  • instanceId path, string, required

Responses: 204, 401

post /instances/{instanceId}/shutdown Shut down an instance

Required token scope: deploys:write.

Parameters

  • instanceId path, string, required

Responses: 200, 422, 401

post /instances/{instanceId}/force-deploy Force a full redeploy of an instance

Required token scope: deploys:write.

Parameters

  • instanceId path, string, required

Responses: 200, 422, 401

Instance Model Config
get /instances/{instanceId}/model-config

Required token scope: instances:read.

Parameters

  • instanceId path, string, required

Responses: 200, 404, 401

put /instances/{instanceId}/model-config Update the instance-level allowed_models override

Required token scope: instances:write.

Parameters

  • instanceId path, string, required

JSON body

  • allowed_models array | null, required
  • replacement_model string | null

Responses: 200, 422, 401

Memory
get /memory/export Export all memories (up to 1000)

Required token scope: memories:read.

Responses: 200, 401

get /memory/entities List all entities

Required token scope: memories:read.

Responses: 200, 401

get /memory/entities/{entityId} Get a single entity by ID

Required token scope: memories:read.

Parameters

  • entityId path, string, required

Responses: 200, 401

get /memory/recall-traces List recall traces

Required token scope: memories:read.

Parameters

  • session_id query, string
  • memory_id query, string

Responses: 200, 401

get /memory Search/list memories

Required token scope: memories:read.

Parameters

  • search query, string
  • type query, string

Responses: 200, 401

get /memory/{memoryId} Get a single memory by ID

Required token scope: memories:read.

Parameters

  • memoryId path, string, required

Responses: 200, 401

Messaging
get /instances/{instanceId}/messaging Get messaging config for an instance

Required token scope: messaging:read.

Parameters

  • instanceId path, string, required

Responses: 200, 401

put /instances/{instanceId}/messaging Update messaging config for an instance

Required token scope: messaging:write.

Parameters

  • instanceId path, string, required

Responses: 200, 401

put /instances/{instanceId}/messaging/agents/{agentId}/identity Set or clear the per-agent identity (display name + avatar URL)

Required token scope: messaging:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

JSON body

  • name string | null, required
  • avatar_url string | null, required

Responses: 200, 422, 401

post /instances/{instanceId}/messaging/agents/{agentId}/identity/avatar Upload a binary avatar image for an agent and persist it as the agent's IDENTITY_AVATAR_URL. Multipart upload, JPEG/PNG, ≤2 MB — service validates the content via finfo and returns the public URL

Required token scope: messaging:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

Responses: 200, 422, 401

My Connections
get /me/connections

Required token scope: connections:read.

Responses: 200, 401

post /me/connections

Required token scope: connections:write.

JSON body

  • service string, required

Responses: 200, 422, 401

delete /me/connections/{id}

Required token scope: connections:write.

Parameters

  • id path, string, required

Responses: 200, 401

Open Ai Connection
get /company/openai-connection

Required token scope: config:read.

Responses: 200, 401

delete /company/openai-connection

Required token scope: config:write.

Responses: 200, 401

post /company/openai-connection/start

Required token scope: config:write.

Responses: 200, 401

post /company/openai-connection/poll

Required token scope: config:write.

JSON body

  • device_auth_id string, required
  • user_code string, required

Responses: 200, 422, 401

Page Files
get /pages/{name}/files

Required token scope: apps:read.

Parameters

  • name path, string, required

Responses: 200, 401

post /pages/{name}/files

Required token scope: apps:write.

Parameters

  • name path, string, required

Responses: 200, 401

put /pages/{name}/files/retention

Required token scope: apps:write.

Parameters

  • name path, string, required

Responses: 200, 401

post /pages/{name}/files/{id}/complete

Required token scope: apps:write.

Parameters

  • name path, string, required
  • id path, string, required

Responses: 200, 401

get /pages/{name}/files/{id}

Required token scope: apps:read.

Parameters

  • name path, string, required
  • id path, string, required

Responses: 200, 401

delete /pages/{name}/files/{id}

Required token scope: apps:write.

Parameters

  • name path, string, required
  • id path, string, required

Responses: 200, 401

post /pages/{name}/files/{id}/restore

Required token scope: apps:write.

Parameters

  • name path, string, required
  • id path, string, required

Responses: 200, 401

Proposal
get /instances/{instanceId}/proposals

Required token scope: instances:read.

Parameters

  • instanceId path, string, required

Responses: 200, 401

post /instances/{instanceId}/proposals/{uuid}/decision

Required token scope: deploys:write.

Parameters

  • instanceId path, string, required
  • uuid path, string, required

JSON body

  • decision string: approve, deny, required
  • revision integer, required

Responses: 200, 422, 401

Skill
get /skills List all skills for the team (company catalog)

Required token scope: skills:read.

Responses: 200, 401

get /instances/{instanceId}/agents/{agentId}/skills List skills for a specific agent

Required token scope: skills:read.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

Responses: 200, 401

post /instances/{instanceId}/agents/{agentId}/skills Add a skill to an agent

Required token scope: skills:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

JSON body

  • mode string: template, scratch, existing, required

Responses: 201, 422, 401

get /instances/{instanceId}/agents/{agentId}/skills/{name} Get a single skill by name

Required token scope: skills:read.

Parameters

  • instanceId path, string, required
  • agentId path, string, required
  • name path, string, required

Responses: 200, 404, 401

delete /instances/{instanceId}/agents/{agentId}/skills/{name} Delete or remove a skill from an agent

Required token scope: skills:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required
  • name path, string, required

Responses: 204, 422, 404, 401

put /instances/{instanceId}/agents/{agentId}/skills/{name}/files/{file} Save a file within a skill

Required token scope: skills:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required
  • name path, string, required
  • file path, string, required

Responses: 200, 422, 404, 401

delete /instances/{instanceId}/agents/{agentId}/skills/{name}/files/{file} Delete one file from a custom skill (staged until deploy)

Required token scope: skills:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required
  • name path, string, required
  • file path, string, required

Responses: 200, 422, 404, 401

post /instances/{instanceId}/agents/{agentId}/skills/{name}/files-upload Upload a binary (or arbitrary) file into a skill

Required token scope: skills:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required
  • name path, string, required

Responses: 201, 422, 404, 401

post /instances/{instanceId}/agents/{agentId}/skills/{name}/customize Convert a managed skill to custom mode

Required token scope: skills:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required
  • name path, string, required

Responses: 200, 422, 404, 401

post /instances/{instanceId}/agents/{agentId}/skills/{name}/promote Promote a user-owned skill to company-owned

Required token scope: skills:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required
  • name path, string, required

Responses: 200, 422, 404, 401

patch /instances/{instanceId}/agents/{agentId}/skills/{name}/toggle Toggle a skill's enabled status

Required token scope: skills:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required
  • name path, string, required

Responses: 200, 404, 401

Skill Plugin
get /plugins

Required token scope: skills:read.

Responses: 200, 404, 422, 401

post /plugins

Required token scope: skills:write.

JSON body

  • url string, required
  • ref string | null
  • skills_path string | null
  • instance_id string, required
  • agent_id string, required

Responses: 201, 404, 422, 401

get /plugins/{pluginId}

Required token scope: skills:read.

Parameters

  • pluginId path, integer, required

Responses: 200, 404, 422, 401

patch /plugins/{pluginId} `ref` follows a branch or tag, or pins a full commit id; null follows the default branch. `pin_current` holds the commit in use

Required token scope: skills:write.

Parameters

  • pluginId path, integer, required

JSON body

  • ref string | null
  • pin_current boolean

Responses: 200, 404, 422, 401

delete /plugins/{pluginId}

Required token scope: skills:write.

Parameters

  • pluginId path, integer, required

Responses: 204, 404, 422, 401

post /plugins/{pluginId}/refresh

Required token scope: skills:write.

Parameters

  • pluginId path, integer, required

Responses: 200, 404, 422, 401

put /instances/{instanceId}/agents/{agentId}/plugins/{pluginId}

Required token scope: skills:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required
  • pluginId path, integer, required

Responses: 200, 404, 422, 401

delete /instances/{instanceId}/agents/{agentId}/plugins/{pluginId}

Required token scope: skills:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required
  • pluginId path, integer, required

Responses: 204, 404, 422, 401

Slack Onboarding
get /instances/{instanceId}/messaging/agents/{agentId}/slack Snapshot the current wizard step + captured app/team identifiers

Required token scope: messaging:read.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

Responses: 200, 401

delete /instances/{instanceId}/messaging/agents/{agentId}/slack Wipe all Slack credentials so the wizard returns to the intro step

Required token scope: messaging:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

Responses: 200, 401

post /instances/{instanceId}/messaging/agents/{agentId}/slack/config-token Step 1: paste the config token, create the Slack app, capture credentials

Required token scope: messaging:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

JSON body

  • config_token string, required

Responses: 200, 422, 401

post /instances/{instanceId}/messaging/agents/{agentId}/slack/app-token Step 2: paste the xapp-* app-level token, verify it, persist it

Required token scope: messaging:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

JSON body

  • app_token string, required

Responses: 200, 422, 401

post /instances/{instanceId}/messaging/agents/{agentId}/slack/oauth/complete Step 4 (callback): exchange OAuth code for credentials and persist

Required token scope: messaging:write.

Parameters

  • instanceId path, string, required
  • agentId path, string, required

JSON body

  • code string, required
  • redirect_uri string, required

Responses: 200, 422, 401

Webhook
get /instances/{instanceId}/webhooks List all webhooks for an instance

Required token scope: webhooks:read.

Parameters

  • instanceId path, string, required

Responses: 200, 401

post /instances/{instanceId}/webhooks Create a new webhook

Required token scope: webhooks:write.

Parameters

  • instanceId path, string, required

Responses: 201, 401

put /instances/{instanceId}/webhooks/{webhookId} Update an existing webhook

Required token scope: webhooks:write.

Parameters

  • instanceId path, string, required
  • webhookId path, string, required

Responses: 200, 404, 401

delete /instances/{instanceId}/webhooks/{webhookId} Delete a webhook

Required token scope: webhooks:write.

Parameters

  • instanceId path, string, required
  • webhookId path, string, required

Responses: 204, 401

patch /instances/{instanceId}/webhooks/{webhookId}/toggle Toggle a webhook's enabled status

Required token scope: webhooks:write.

Parameters

  • instanceId path, string, required
  • webhookId path, string, required

Responses: 200, 404, 401

post /instances/{instanceId}/webhooks/{webhookId}/regenerate-secret Regenerate a webhook's secret

Required token scope: webhooks:write.

Parameters

  • instanceId path, string, required
  • webhookId path, string, required

Responses: 200, 401

get /instances/{instanceId}/webhooks/{webhookId}/switch-to-managed Preview a legacy QA webhook's current text next to the managed text

Required token scope: webhooks:read.

Parameters

  • instanceId path, string, required
  • webhookId path, string, required

Responses: 200, 401

post /instances/{instanceId}/webhooks/{webhookId}/switch-to-managed Convert a legacy QA webhook to a Greenlight-managed one

Required token scope: webhooks:write.

Parameters

  • instanceId path, string, required
  • webhookId path, string, required

JSON body

  • confirm object: yes, on, 1, 1, true, 1

Responses: 200, 422, 401


Build your team.

Your first AI Teammate, working by end of day.

Get product updates by email

What we shipped and what we learned.

Product updates, a few times a quarter. Unsubscribe any time. Privacy

Protected by reCAPTCHA. Privacy · Terms