cURL
curl --request POST \ --url https://cloud.activepieces.com/api/v1/mcp-servers/{id}/rotate \ --header 'Authorization: Bearer <token>'
{ "id": "<string>", "created": "<string>", "updated": "<string>", "name": "<string>", "projectId": "<string>", "token": "<string>", "agentId": "<string>", "externalId": "<string>", "tools": [ { "type": "PIECE", "id": "<string>", "created": "<string>", "updated": "<string>", "externalId": "<string>", "toolName": "<string>", "mcpId": "<string>", "pieceMetadata": { "pieceName": "<string>", "pieceVersion": "<string>", "actionName": "<string>", "actionDisplayName": "<string>", "logoUrl": "<string>", "connectionExternalId": "<string>" } } ] }
Rotate the MCP token
Use your api key generated from the admin console
Default Response
Show child attributes