Create an authorization session for platform delegation. Returns a QR code for the business owner to scan.
uip_at_ prefix) that can be used in place of an API key for the granted scopes.
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer token with your API key: Bearer YOUR_API_KEY |
Content-Type | Yes | Must be application/json |
identify:create — Create identify sessions on behalf of the businesssign:create — Create sign sessions on behalf of the businessmessages:create — Send messages on behalf of the businessmessages:read — Read message status on behalf of the businessaudits:read — Query audit records on behalf of the businessbusiness:read — Read business profile information["identify:create", "sign:create"]https://www.uip.id/{session_id}.Platform Requests Authorization
Display QR Code
https://www.uip.id/{session_id}Business Owner Scans
Business Owner Approves
Platform Polls for Token
POST /v1/authorize/:id/status with client credentials until status is completed. The completed response includes the delegation token.authorize.completed webhook when the business owner approves. See Webhooks for details.auth/missing-api-key - No API key providedauth/invalid-api-key - Invalid API keyauth/scope-not-allowed - One or more requested scopes are not validrequest/invalid-payload - Missing required fields or invalid formatrate-limit/exceeded - Rate limit exceeded (100/min for authorize)internal/server-error - Failed to create authorization sessionUse your UIP API key as a bearer token
The platform's client ID, issued during platform registration.
The platform's client secret, issued during platform registration.
Array of permission scopes to request from the business.
identify:create, sign:create, messages:create, messages:read, audits:read, business:read Authorization session created
Unique identifier for this session
Base64-encoded PNG data URI of the QR code. The QR code encodes https://www.uip.id/{session_id}
ISO 8601 timestamp when the session expires