Skip to content

OpenAPI V2 Overview

This page introduces common conventions for API 2.0 (OpenAPI V2), the OpenAPI document URL, scenario entry points, and the API index.

Base URL

  • Base URL: https://open.cli.im
  • Path prefix: /api/v2/rpc/, so full endpoints look like https://open.cli.im/api/v2/rpc/{service}/{method}.

For authentication, see Authentication (OpenAPI V2).

All V2 endpoints are POST and use application/json request bodies.

OpenAPI JSON URL

You can fetch the V2 OpenAPI 3.x spec from:

  • URL: https://open.cli.im/openapi.json

No authentication is required for this URL; you can GET it directly. It includes paths, request schemas, responses, and error descriptions for all /api/v2/rpc/* endpoints.

For MCP usage, see MCP (OpenAPI V2).

Where to start

  • First-time integration: read Authentication (OpenAPI V2)
  • Import into Swagger/Postman or generate SDKs: use https://open.cli.im/openapi.json
  • Need recommended call order by business goal: see Scenarios
  • Need endpoint-by-endpoint fields and examples: continue with the index below

API index

QR Codes

APIPathDescription
QR code contentPOST /api/v2/rpc/qrcodes/getContentGet display content (meta + fields) by coding or URL
QR code operation elementsPOST /api/v2/rpc/qrcodes/getOperationGet flattened operation-element list by coding or URL

Forms and Records

APIPathDescription
Get form templatePOST /api/v2/rpc/forms/getTemplateGet form structure by tpl_id
Get a single recordPOST /api/v2/rpc/record/getRecordGet record detail by record_id or record_url
Get recordsPOST /api/v2/rpc/record/getRecordsQuery records by filters, keyword, time, and pagination
Get form listPOST /api/v2/rpc/record/getFormListList forms under current org with pagination
Add recordPOST /api/v2/rpc/record/addRecordSubmit one record by code_id + tpl_id
Verify record certificatePOST /api/v2/rpc/certificates/verifyVerify credential records (next status or target status)

Shared reference

Typical scenarios