Create a Workspace MCP service credential
Create a Workspace MCP service credential
POST
/api/v1/workspaces/{workspace_id}/mcp-service-credentialsCreates a non-human service actor and a Workspace-bound MCP credential.
The raw credential is returned exactly once. An empty project_ids
array permits every currently visible Project in the Workspace; a
non-empty array narrows the credential to those Projects.
Path Parameters
Header Parameters
Request Body
application/jsonstring[]·min 1·max 37Values
assign:activity:readassign:agents:readassign:agents:writeassign:attachments:readassign:attachments:writeResponses
Retry-After
integer·min 0Delay in seconds before retrying, when an expected maintenance end is known.
Cache-Control
string·const no-storePrevents storage of error responses by clients and intermediaries.
X-Request-ID
string·min 1·max 200Correlation identifier for the request.
X-Content-Type-Options
string·const nosniffPrevents user agents from MIME-sniffing the response.