Connections

Connect a client

Make the calling client the one that hears the agent's new messages, in place of any other. Stream the agent's events with the connection's id to hear them. Only the agent's own token can connect it.

put/agents/{id}/connection

Request

  • Base URL
    https://app.artil.ai/api
  • URL
    https://app.artil.ai/api/agents/{id}/connection
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization code: https://mcp.artil.ai/oauth/authorize
      Token URL: https://mcp.artil.ai/oauth/token scopes: agent

Path parameters

idstring uuid required

The agent's id

Request body

clientstring required
machinestring

Response

The agent's new connection

idstring uuid required
clientstring required
machinestring nullable required
tokenIdstring uuid required

The agent's token the client connected with

Changes

No recorded changes to this operation across all 1 revision of this API.