Users

Create a single-use connect code for the agent-swarm.dev ChatGPT connector

Changed on

Returns a 10-minute single-use code and the connector URL that carries it. The connector trades the code for an MCP token at POST /api/connector/exchange.

post/api/users/{id}/connector-codes

Request

  • Base URL
    http://localhost:3013
  • URL
    http://localhost:3013/api/users/{id}/connector-codes
  • Auth
    HTTP bearer

Path parameters

idstring required

Request body

labelstring

Response

Connect code, its expiry and the connector URL

codestring required
expiresAtstring required
connectUrlstring required

Changes