Skip to main content
Channels

Get channel QR session

Poll a Channel QR authorization session.

GET /api/v1/forward/qr_sessions/{session_key} Returns the current status of a QR authorization session.

Headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT or SAT>

Path parameters

ParameterTypeRequiredDescription
session_keystringYesOpaque QR session key returned by Create Channel QR Session.

Example request

curl -s -X GET 'https://api.qoder.com/api/v1/forward/qr_sessions/qr-a1b2c3d4' \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN"

Example response

HTTP 200 OK
{
  "session_key": "qr-a1b2c3d4",
  "channel_id": "channel_dingtalk-001",
  "channel_type": "dingtalk",
  "status": "confirmed",
  "expires_at": "2026-06-18T10:05:00Z",
  "err_code": null,
  "err_msg": null
}

Status values

StatusDescription
waitingWaiting for scan, authorization, installation, or configuration.
scannedQR code was scanned and is waiting for mobile confirmation.
confirmedActivation succeeded. Channel binding_status becomes bound.
expiredQR session expired. Create a new QR session.
deniedUser denied authorization or cancelled installation.
errorThe third-party channel returned an unrecoverable error.

Error codes

HTTPTypeTrigger
401authentication_errorPAT or SAT is invalid or expired.
404not_found_errorQR session does not exist, is expired, or is not visible to the caller.

Response fields

FieldTypeDescription
session_keystringOpaque QR session key.
statusstringwaiting, scanned, confirmed, expired, denied, or error.
channel_idstringAssociated Channel ID.
channel_typestringAssociated channel type.
expires_atstringQR session expiration time.
err_codestring|nullChannel error code on failure.
err_msgstring|nullChannel error message on failure.

Notes

  • session_key is a short-lived opaque credential.
  • After confirmed, refresh Channel details.