Real-time QR code challenge management via WebSocket connections
Connect to the WebSocket endpoint for the region of your Tenant.
Region | API URL |
---|---|
US (Oregon) | wss://api-ws.authsignal.com/ws-v1-challenge |
AU (Sydney) | wss://au.api-ws.authsignal.com/ws-v1-challenge |
EU (Dublin) | wss://eu.api-ws.authsignal.com/ws-v1-challenge |
To authenticate with the WebSocket API, you need to provide the following headers in the Sec-WebSocket-Protocol
header: authsignal-ws
and x.authsignal.tenant.<your-tenant-id>
.
The WebSocket communication follows this pattern:
CREATE_CHALLENGE
message to initiate a challengeCHALLENGE_CREATED
confirmationSTATE_CHANGE
messages as the challenge progresses through statesChallenges progress through the following states:
unclaimed
- Challenge created but not yet claimed by a user (This state will not be included in the state change messages)claimed
- User has claimed the challenge on their deviceapproved
- User has approved the challengerejected
- User has rejected the challenge