QR code content
Get display content (metadata and fields) by QR code coding or full URL.
Request example
python
import requests
url = 'https://open.cli.im/api/v2/rpc/qrcodes/getContent'
data = {
'qrcode': 'qk3mJHJ',
'format': 'json'
}
headers = {
'Authorization': 'Bearer <your API Key>',
'Content-Type': 'application/json'
}
response = requests.post(url, json=data, headers=headers)
print(response.text)bash
curl -X POST 'https://open.cli.im/api/v2/rpc/qrcodes/getContent' \
-H 'Authorization: Bearer <your API Key>' \
-H 'Content-Type: application/json' \
-d '{"qrcode": "qk3mJHJ", "format": "json"}'Response example
json
{
"code": 0,
"message": "ok",
"data": {
"meta": {
"id": 6763267,
"title": "示例活码名称",
"url": "https://qr46.cn/xxx/yyy",
"coding": "aBcDeFg"
},
"fields": [
{
"field_id": 1001,
"type": "text",
"title": "标题",
"value": { "value": "示例内容" }
}
]
}
}Request details
qrcode string required
QR code coding or full URL to identify the target code.
format string optional
Output format: json or markdown. Default is json.
Response details
code integer
Status code; 0 means success.
message string
Status message.
data object
Response payload.
data.meta object
Metadata:
titlestring: QR code titleurlstring: QR code URLcodingstring: QR code codingidinteger: QR code ID (externalcode_id)
Notes:
data.meta.idcan be used ascode_idin Add record.data.meta.idcan also be used asfilters.qrcode.idin Get records.- To discover linked forms, call QR code operation elements and read
tpl_idfrom elements withelement_type=2.
data.fields array
List of fields. Each item contains field_id, type, title, and value (shape depends on component type).
Integration tips
Common downstream usage:
- If you only have QR
coding/ URL and needcode_id, call this endpoint. - After getting
code_id:- Read records: Get records
- Write record: Add record
- If you also need linked forms, call QR code operation elements.
Error codes
See Error codes.