---
# @generated by sylphx-gen 0.1.0 from contracts@f99a9bda63ea35002f40ef41b07b570c1c970750996f232cbfb0ed12313637ab. Do not edit.
title: "Revoke credential on an agent"
description: "`agents.agents.revoke_credential` (POST /v1/{parent}/agents:revoke-credential): Revokes one captured handle."
type: reference
product: agents
summary: "Revokes one captured handle."
updated: 2026-09-28
nav: false
---

Revokes one captured handle. Repeating the revocation is harmless.

**Not available yet.** Sylphx Agents is declared in the registry but no backend serves it: every call answers `501` with the problem code `UNIMPLEMENTED`.

- **Path** `POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agents:revoke-credential`
- **Scope** `agents:sessions`
- **Effect** `write` — a successful call changes state.
- **Collection** [agents](/docs/api/agents)

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `parent` | `string` | The environment that owns the captured handle. Required. |
| `handle` | `string` | The opaque handle to revoke; repeated revocation is harmless. Required. Never returned again. |

## Response

The call answers with an empty object.

## Errors

- [`UNAUTHENTICATED`](/docs/api/errors/UNAUTHENTICATED) — No valid key or token was presented.
- [`PERMISSION_DENIED`](/docs/api/errors/PERMISSION_DENIED) — The key lacks the method's permission.
- [`INVALID_FIELD`](/docs/api/errors/INVALID_FIELD) — A field failed validation.

Every error arrives in the body [Errors](/docs/platform/errors) describes.

## Examples

**cURL**

```curl
curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agents:revoke-credential" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"handle":"…"}'
```

**TypeScript**

```ts
await sylphx.agents.agents.revokeCredential({ handle: '…', parent: 'orgs/acme/projects/shop/envs/production' })
```

**Rust**

```rust
let mut req = sylphx::agents::RevokeCredentialRequest::default();
req.handle = "…".to_string();
req.parent = "orgs/acme/projects/shop/envs/production".to_string();
sx.agents().agents().revoke_credential(req).await?;
```

**CLI**

```bash
sylphx agents agents revoke-credential orgs/acme/projects/shop/envs/production
```

**MCP**

```json
{ "method_id": "agents.agents.revoke_credential", "args": {"handle":"…","parent":"orgs/acme/projects/shop/envs/production"} }
```
