Create a Relay
Creates a new Relay.
Headers
Request
Possible values:
- live_human_presence
- age_over18_germany
- age_over18_united_kingdom
- age_over18_verified
- age_over18_france
- age_over18_italy
- age_over18_brazil
- age_over18_australia
- age_over16_australia
- age_over21_verified
Do not assume this is a static enumeration; Persona may add new claim types in the future without a versioned update.
RSA public key (PEM-encoded, 2048-4096 bits). When non-null, claim payloads returned by subsequent reads will be encrypted with RSA OAEP. Pass null to receive unencrypted claim payloads.
When true, the Relay is created in a sandbox environment and uses the sandbox Privacy Pass namespace; sandbox passes are only redeemable against sandbox Relays. When omitted or false, the Relay is created in a production environment and uses the claim-type namespace.
Response headers
The maximum number of requests permitted in the current rate limit window. For an API key with its own rate limit, requests count against both the key's limit and the environment's limit, and this header reports whichever is closer to being reached, so it can change between responses. On a 429 response, it reports the limit that rejected the request. For an API key without its own rate limit, it reports the environment's limit. Returned on every authenticated response.
The number of requests remaining in the current rate limit window for the limit reported in RateLimit-Limit. Returned on every authenticated response.
The unique identifier of the API log entry that recorded this request. Starts with req_. Include this value when reaching out to Persona support. Present on every authenticated response, including error responses.
Response
Public Relay identifier. Use this token in subsequent calls to /relays/{relay-token}/generate-claim.
Secret value tied to this Relay. Returned only at creation and must be passed in the Persona-Relay-Secret header for any read of the claim payload.
Encoded JWT used by Persona's client SDK to load the associated Inquiry Session in the end-user's browser or device.

