Poll a Channel QR authorization session.
Request headers
|
Header |
Required |
Description |
|
|
Yes |
|
Path parameters
|
Parameter |
Type |
Required |
Description |
|
|
string |
Yes |
Opaque QR session key returned by Create Channel QR Session. |
Example request
curl -s -X GET 'https://api.qoder.com.cn/api/v1/forward/qr_sessions/qr-a1b2c3d4' \
-H "Authorization: Bearer $QODER_PAT"
Example response
HTTP 200 OK
{
"type": "channel_qr_session",
"session_key": "qr-a1b2c3d4",
"channel_id": "ci_dingtalk_001",
"channel_type": "dingtalk",
"status": "confirmed",
"expires_at": "2026-06-18T10:05:00Z",
"err_code": null,
"err_msg": null
}
Status values
|
Status |
Description |
|
|
Waiting for scan, authorization, installation, or configuration. |
|
|
QR code was scanned and is waiting for mobile confirmation. |
|
|
Activation succeeded. Channel |
|
|
QR session expired. Create a new QR session. |
|
|
User denied authorization or cancelled installation. |
|
|
Gateway or third-party channel returned an unrecoverable error. |
Errors
|
HTTP |
Type |
Code |
Trigger |
|
401 |
|
|
PAT invalid or expired. |
|
404 |
|
|
QR session does not exist, is expired, or is not visible to the caller. |
Notes
-
session_keyis a short-lived high-entropy opaque token. -
Poll at the returned
poll_interval_secondsfrom the create response. -
After
confirmed, refresh Channel details.