Agents
revokeAgentCredential
Revoke an agent credential
Permanently revokes the credential and drops any live connections.
Usage
const result = await api.agents.revokeAgentCredential({
pathParams: { project_id: "prj_xxx", agent_id: "agt_xxx" },
});Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| pathParams.project_id | string | Yes | Unique project identifier (prefixed, e.g. prj_xxx). |
| pathParams.agent_id | string | Yes | Unique agent credential identifier (prefixed, e.g. agt_xxx). |
Response
Promise<void> — no content.
Example
import { PgBeamClient } from "pgbeam";
const client = new PgBeamClient({
token: "pbk_...",
baseUrl: "https://api.pgbeam.com",
});
const result = await client.api.agents.revokeAgentCredential({
pathParams: { project_id: "prj_xxx", agent_id: "agt_xxx" },
});Errors
| Status | Description |
|---|---|
| 400 | Invalid request parameters. |
| 401 | Missing or invalid authentication. |
| 403 | Operation not allowed by current plan limits. |
| 404 | Resource not found. |