Authentication
You can get accessToken and related verification information by sending your publicKey and SecretKey . AccessToken will expire after 12 hours. When calling the subsequent interface, you must carry this token in the request header: Authorization: Bearer {accessToken}
.
Postman Example:
Get Token:
Request method
- request method: POST
- parameter transfer method: Body (JSON)
Request parameter
Parameter | Data Type | Description | Required |
---|---|---|---|
publicKey | String | Project public Key: You can find the public key in the API Keys section of your ComPDFKit API Account. | yes |
secretKey | String | Project secret Key: You can find the secret key in the API Keys section of your ComPDFKit API Account. | yes |
Request address
https://api-server.compdf.com/server/v1/oauth/token
Return parameter
Parameter | Data Type | Description |
---|---|---|
accessToken | String | Token |
tokenType | String | Token type |
expiresIn | String | Token validity |
scope | String | Token Range |
projectName | String | Project Name |
java
"code": "200",
"msg": "success",
"data": {
"accessToken": "<signed_token>",
"tokenType": "bearer",
"expiresIn": "41767",
"scope": "server",
"projectName": "Test"
}