Create an agent's client
/users/me/agents/{id}/clientsCreates 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
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"}Check what a set-up link is still good for POST
Says whether a set-up link can still set a password or only set up a second factor, and returns the email it was sent to. No sign-in is required: the token in the body is the proof, and every invalid, expired or used-up token is the same 403. A signed-in browser is refused with 409.
Delete an agent's client DELETE
`DELETE /users/me/agents/{id}/clients/{client_id}`