revoke()
Revokes the given Agent Task.
Returns the revoked AgentTask object.
function revoke(agentTaskId: string): Promise<Omit<AgentTask, "url">>- Name
agentTaskId- Type
string- Description
The ID of the Agent Task to revoke.
await clerkClient.agentTasks.revoke('agttsk_123')Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint POST/agents/tasks/{agent_task_id}/revoke. See the BAPI reference for more information.
Feedback
Last updated on