post
https://{URL}/v1/open-api/auth-signature
Note: This is intended for testing purposes only and should not be used in production. Generate Auth Signature refer to this page Auth Signature
This endpoint is used to generate or validate a digital signature required for authentication and security in interactions between an application and the API.
A. Request Header
| Field | Format | Mandatory | Length | Example |
|---|---|---|---|---|
| Content-Type | string | Y | application/json | |
| Open-Api Timestamp | yyyy-mm-dd 'T'hh:mm:ss+07:00 | Y | 2022-03-21T10:11:40+07:00 |
B. Request Body
| Field | Type | Description | Required | Example |
|---|---|---|---|---|
| client_id | string | The unique identifier for the B2B client. | true | "3f9c8962-4c4b-4bb6-b3c1-8fc883519c02" |
| timestamp | string | The current timestamp when the request is made, typically in ISO 8601 format. | true | "2023-12-13T15:14:17.000+07:00" |
| private_key | string | The private key associated with the B2B client, used for securing the request. (base64) | true | "" |
C. Sample Request
{
"client_id": "{{B2B_CLIENT_ID}}",
"timestamp": "{{B2B_OPEN_API_CURRENT_TIMESTAMP}}",
"private_key": "{{B2B_CLIENT_PRIVATE_KEY}}"
}
D. Response Body
| Field | Type | Description | Example |
|---|---|---|---|
| response_code | string | A combination of HTTP code and Klikoo B2B internal code. See page documentation API's Response Code . | “200012000” |
| response_message | string | An explanation of response code | "Success" |
| data | object | Contains additional data related to the response. | |
signature | string | The digital signature value | "" |
E. Sample Response
{
"response_code": "2000100",
"response_message": "Success.",
"data": {
"signature": " "
}
}
Try It Here (Form)
To try the following endpoint, enter the example request data you want to use in the following form