Skip to content
Navigation

Revoke a person's MCP connection

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

Revokes one person's MCP connection, for Nicer staff: for a lost laptop or a client that should not have access. Its tokens stop working on their next request, because the MCP server checks the token on every request. A connection the person does not hold is a 404. A caller without the superadmin platform role gets 403 ERROR_FORBIDDEN; a token minted from a connection gets 403 ERROR_MCP_SESSION_REQUIRED.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • userId
    string
    required
  • 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