Skip to content

Agent tokens endpoints

This page is generated from the OpenAPI document of the API (src/Vellum.Web/openapi.json) when the documentation is built.

GET /api/workspaces/{workspaceId}/agent-tokens

Section titled “GET /api/workspaces/{workspaceId}/agent-tokens”
Parameter In Type Required
workspaceId path string (uuid) yes
Status Meaning Body
200 OK array of AgentTokenDto
403 Forbidden ErrorResponse

POST /api/workspaces/{workspaceId}/agent-tokens

Section titled “POST /api/workspaces/{workspaceId}/agent-tokens”
Parameter In Type Required
workspaceId path string (uuid) yes

Request body (application/json): CreateAgentTokenRequest

Field Type Required Notes
name string or null yes
scopes array of string or null yes
projectId string (uuid) or null yes
expiresAt string (date-time) or null yes
Status Meaning Body
201 Created AgentTokenCreated
400 Bad Request ErrorResponse
403 Forbidden ErrorResponse
409 Conflict ErrorResponse

DELETE /api/workspaces/{workspaceId}/agent-tokens/{tokenId}

Section titled “DELETE /api/workspaces/{workspaceId}/agent-tokens/{tokenId}”
Parameter In Type Required
workspaceId path string (uuid) yes
tokenId path string (uuid) yes
Status Meaning Body
204 No Content none
403 Forbidden ErrorResponse
404 Not Found ErrorResponse