Menu
Platform
AI
App store purchases
Credits
Database
Flags
Generated Assets
Monitoring
Notifications
Organizations
Payments
- Payments
- Payments quickstart
- Checkout policies
- Checkout sessions
- Customer subscriptions
- Entitlement grants
- Exchange rates
- Licence keys
- Licence tokens
- Merchant accounts
- Portal sessions
- Price catalogs
- Revenue
- Revenue facts
- Revenue sources
- Tax threshold statuses
- Usage events
- Usage invoices
- Usage meter prices
- Usage meters
- Usage reservations
- Usage settings
- Usage tiers
Sandboxes
Webhooks
Getting Started
Authentication
KV Store
Deploy & Infrastructure
Reference
Capture credential on an agent
Captures an existing grant for one session and purpose; never issues a key.
Captures an existing grant for one session and purpose; never issues a key.
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:capture-credential - Scope
agents:sessions - Effect
write— a successful call changes state. - Collection agents
#Request
| Field | Type | What it is |
|---|---|---|
parent | string | The environment in which the caller holds the existing grant. Required. |
session | string | The prospective or existing session to bind this handle to. Required. |
turn | int64 | The turn allowed to use the execution credential. Required. |
credential | string | The existing caller-owned credential, stored encrypted and never logged. Required. Never returned again. |
expires_at | timestamp | The issuer-provided expiry of the captured credential. Required. |
allowed_tools | string[] | Pinned tool names allowed to inject this credential. Required. |
purpose | string | execution, completion, or runtime; runtime handles never enter the guest. Required. |
#Response
| Field | Type | What it is |
|---|---|---|
handle | string | The opaque handle; it never reveals the captured credential. Output only. Never returned again. |
generation | int64 | The current fencing generation of the captured handle. Output only. |
expires_at | timestamp | The issuer-provided expiry of the captured credential. Output only. |
#Errors
UNAUTHENTICATED— No valid key or token was presented.PERMISSION_DENIED— The key lacks the method's permission.INVALID_FIELD— A field failed validation.
Every error arrives in the body Errors describes.
#Examples
curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agents:capture-credential" \
-H "Authorization: Bearer $SYLPHX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"allowed_tools":["…"],"credential":"…","expires_at":{},"purpose":"…","session":"…","turn":1}'