Agent access

Poll a claim; delivers the key once after approval

Changed on

Authorization: Bearer <claim_token>. Answers status pending (keep polling every poll_interval seconds), approved with the api_key on the first poll after approval, delivered on every later poll (no key in the body), denied, or expired. An unknown code and a wrong token are the same 404. 30 polls a minute per address.

get/api/agent/claims/{code}

Request

  • Base URL
    https://api.prereason.com
  • Auth
    none required

Path parameters

codestring required

Headers

Authorizationstring required
Example:Bearer prc_...

Response

The claim's status; on the first poll after approval, the key

status'pending' | 'approved' | 'delivered' | 'denied' | 'expired'
claim_codestring
api_keystring

Present once, on the first poll after approval

delivered_onceboolean
keyobject
accountobject
how_to_useobject
approve_urlstring
expires_atstring date-time
poll_intervalinteger
errorstring

KEY_ISSUE_FAILED when minting failed; poll again after retry_after seconds

retry_afterinteger
messagestring
nextstring
docsstring

Changes