cURL
curl --request POST \ --url https://management.stytch.com/pwa/v3/projects/:project_slug/environments/:environment_slug/public_tokens \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data '{}'
{ "request_id": "<string>", "public_token": { "public_token": "<string>", "created_at": "<string>" }, "status_code": 123 }
Create creates a new public token for an environment.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Request type
Successful response
Response type
Show child attributes