Agents
POST/v1/agents/{id}/credentials

Rotate agent credential

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/agents/{id}/credentials" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"overlap_hours":1}'

Issues a new credential and lets the previous ones expire after an overlap of 0, 1 or 24 hours (0 revokes them now). Console session or API key with credential:issue; the secret is shown once.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/agents/{id}/credentialsBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Path
  • idstringrequired

    Agent id (agt_...).

Body

application/json · required. Fields are listed under Request body below.

Requires permissioncredential:issue
Held by owner, admin, developer, operator. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Path Parameters

id*Id

Agent id (agt_...).

Request Body

application/json
  1. body
overlap_hours?Overlap Hours

Hours the previous API key keeps working after a roll (0 to 168, default 24; 0 revokes it at once).

Default1

Response Body

Success.

application/json
  1. response
credential*

The passkey assertion (WebAuthn) produced for the challenge.

secret*Secret

Secret shown once. Store it; Abazi keeps only a hash.

snippets*
previous*array<>
[key: string]?any