Auth

Claim a pending credential under a fresh PID handle

One transaction creates the identity (`<handle>@pid`, permanent) + profile + credential and consumes the single-use claim ticket. Issues the session cookies. When the claim came from a relying-party login, the response also carries the SSO `pidCode` plus the validated `redirectTo` — the hosted page navigates there itself. Expired tickets answer `410` — sign in again.

POST
/auth/claim

One transaction creates the identity (<handle>@pid, permanent) + profile

  • credential and consumes the single-use claim ticket. Issues the session cookies. When the claim came from a relying-party login, the response also carries the SSO pidCode plus the validated redirectTo — the hosted page navigates there itself. Expired tickets answer 410 — sign in again.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/auth/claim" \  -H "Content-Type: application/json" \  -d '{    "handle": "ifal"  }'
{  "ok": true,  "pid": "ifal@pid"}