Vigilfield Docs
API referenceAgents

Create an agent's client

POST/users/me/agents/{id}/clients

Creates a client id and secret for one of your agents. The secret is shown only once. A client expires within 90 days, and an agent holds at most 2, so you can make the new one before deleting the old. Needs the same identity check as creating an agent.

Path Parameters

id*string

Agent id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

POST /users/me/agents/{id}/clients.

Response Body

application/json

curl -X POST "https://example.com/users/me/agents/string/clients" \  -H "Content-Type: application/json" \  -d '{    "expires_at": "string",    "name": "string",    "step_up": {      "credential": "string",      "email": "string",      "method": "webauthn",      "session": "string",      "slug": "string"    }  }'
{  "client": {    "client_id": "string",    "created_at": "string",    "expires_at": "string",    "last_used_at": "string",    "name": "string"  },  "client_secret": "string"}