curl --request POST 'https://api.mayar.id/hl/v1/webhook/test' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here' \
--data '{
    "urlHook": "https://example.mayar.com"
}'
{
  "statusCode": 200,
  "messages": "success"
}
curl --request POST 'https://api.mayar.id/hl/v1/webhook/test' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here' \
--data '{
    "urlHook": "https://example.mayar.com"
}'
{
  "statusCode": 200,
  "messages": "success"
}
Endpoint:
https://api.mayar.id/hl/v1/webhook/test

Authorization

Authorization
string
required
Example:Authorization | Bearer Paste-Your-API-Key-Here

Request Body

urlHook
string
required
URL for webhook callback.

Response

Successful Response

Main Structure (Root)

statusCode
integer
required
Status code form API.
messages
string
required
Status message that describes the status code.