Item | Description |
API prefix | /openapi/v1 |
Transport protocol | HTTPS only (HTTP not supported). |
Response format | JSON( Content-Type: application/json) |
Character encoding | UTF-8 |
Time format. | RFC3339 / ISO 8601, supporting time zone offset, for example, 2024-01-15T18:30:00+08:00. |
Environment | Domain Name | Purpose |
Test Environment | https://api.test.sign.tencent.com | Development and Integration Testing |
Production Environment (Singapore Node) | https://sgapi.tencent-esign.com | Formal Production |
https://sgapi.tencent-esign.com/openapi/v1/envelopes/quick-create.Header | Required | Description |
Authorization | Yes (for business interfaces) | Fixed format: Bearer <access_token> |
Content-Type | Yes | For business interfaces, use application/json; for OAuth interfaces, use application/x-www-form-urlencoded. |
X-Operator-User-Id | No | Specifies the execution identity for this call. If the execution identity is not passed, the system user associated with the application is used. When an envelope is initiated, a real user ID must be passed, and this user is the envelope sender. |
space_id. The issued access_token is valid only for that specific space. Subsequent business APIs are executed within that space, and you do not need to pass the SpaceId again.access_token must be included in all business API calls.Project | Content |
Request URL | POST /openapi/v1/oauth/token |
Content-Type | application/x-www-form-urlencoded |
Parameter | Type | Required | Description |
grant_type | string | Yes | Fixed value: client_credentials |
client_id | string | Yes | Application client ID |
client_secret | string | Yes | Application client secret |
space_id | string | Yes | Space ID |
scope | string | Yes | Scope, separate multiple scopes with spaces |
POST https://sgapi.tencent-esign.com/openapi/v1/oauth/tokenContent-Type: application/x-www-form-urlencodedgrant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&space_id=YOUR_SPACE_ID&scope=envelope:create envelope:read
Field | Description |
access_token | Access token, valid for 1 hour |
client_secret must be securely stored and must not be exposed in frontend code or public repositories. It is recommended to store it using environment variables or a key management service.Project | Content |
Request URL | POST /openapi/v1/oauth/revoke |
Content-Type | application/x-www-form-urlencoded |
Parameter | Type | Required | Description |
token | string | Yes | The access token to be revoked |
client_id | string | Yes | Application client ID |
client_secret | string | Yes | Application client secret |
Scope | Description |
envelope:create | Create and send a envelope. |
envelope:read | Retrieve envelope status and details. |
POST method and require the Authorization: Bearer <access_token> Header. A complete signing process typically follows the sequence: upload file → initiate envelope → obtain signing link → query result.FileId required for initiating the envelope later.Project | Content |
Request URL | POST /openapi/v1/files/upload |
Parameter | Description |
Files | List of files (array) |
Files[].FileName | File Name |
Files[].FileBody | Base64-encoded file content |
Field | Description |
FileId | The file ID, valid for 24 hours, must be used to initiate a envelope as soon as possible. |
Project | Content |
Request URL | POST /openapi/v1/envelopes/quick-create |
Required Headers | Authorization and X-Operator-User-Id (real user ID of the sender) |
Parameter | Description |
BasicInfo | Basic information, including EnvelopeTitle (envelope title) and SigningOrderType (signing order type) |
Documents | List of documents, including DocumentId, FileId, and Order |
Signers | List of signers, including RecipientId, Name, and Email |
Tabs | Signing locations, including TabType, RecipientId, DocumentId, and Position |
Field | Description |
EnvelopeId | Envelope ID. The envelope goes to the signing process immediately after creation. |
Project | Content |
Request URL | POST /openapi/v1/envelopes/detail |
Parameter | Description |
EnvelopeId | Envelope ID |
Project | Content |
Request URL | POST /openapi/v1/envelopes/signing-view |
Parameter | Description |
EnvelopeId | Envelope ID |
RecipientId | Signer ID |
Field | Description |
SignerInfos | List of signer information |
SigningUrl | Signing URL, used for sending to the signer |
Step | Operation | Method and API | Key Output |
1 | Obtain a token. | POST /openapi/v1/oauth/token | access_token |
2 | Upload files. | POST /openapi/v1/files/upload | FileId |
3 | Initiate an envelope | POST /openapi/v1/envelopes/quick-create | EnvelopeId |
4 | Obtain a signing URL. | POST /openapi/v1/envelopes/signing-view | SigningUrl |
5 | Distribute to the signer for completion. | - | - |
6 | Query the Result | POST /openapi/v1/envelopes/detail | Signing Status |
FileId validity period: 24 hours.client_secret and access_token must not be exposed in the frontend or public code repositories.Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan