Skip to content

Revoke a workspace Agent token

DELETE
/v1/workspaces/{workspaceId}/agent-tokens/{tokenId}
curl --request DELETE \
--url https://shareout.site/v1/workspaces/example/agent-tokens/example \
--header 'Authorization: Bearer <token>'

Soft-revokes the token (sets revoked_at). The Agent principal keeps its artifacts; mint a new token to re-enable it. Owner/admin only.

workspaceId
required
string

Workspace ID or slug.

tokenId
required
string

Revoked

Caller is not a workspace owner/admin

Token not found or already revoked