Generate webhook secret
This endpoint is used to generate a webhook secret that is essential for authenticating the sources of webhooks.
POST : v1/account/generate-webhook-secret
Headers
secret-key
string
Your Alexpay secret key
public-key
string
Your Alexpay public key
Response
On a successful request, the API will return a response with the following structure:
webhook_secret (string): The generated webhook secret that will be used for authentication.
{
"status": "",
"code": 0,
"message": "",
"data": {
"webhook_secret": ""
}
}
NOTE:
The generated webhook secret should be stored securely and used to verify the authenticity of incoming webhook requests.
The verification uses HMAC-SHA256 as the hashing algorithm.
Concatenated string consisting of a unix timestamp (as a string) and the full, raw JSON body of the webhook payload
Last updated