Skip to content
Navigation

Revoke an MCP connection

DELETE
https://api.nicer.travel/agent/mcp/connections/{connectionId}

Revokes one of the caller's MCP connections. Its access token and refresh token stop working on their next request: the MCP server checks the token on every request, so a client already connected is refused too, and must be approved again to reconnect. Any signed-in person may call it, for their own connections, with their own session: another person's connection is a 404, and a token minted from a connection gets 403 ERROR_MCP_SESSION_REQUIRED.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • connectionId
    string
    required

Returns

200

OK

JSON
  • connectionId
    string
    required

    The id of the connection that no longer works: its tokens are refused from the next request on.

    minLength: 1

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close