curl --request GET 'https://api.mayar.id/hl/v1/webhook/register' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here' \
--data '{
    "urlHook": "https://example.mayar.com"
}'
{
  "statusCode": 200,
  "messages": "success"
}
curl --request GET 'https://api.mayar.id/hl/v1/webhook/register' \
--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/register

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.