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

Authorization

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

Request Body

urlHook
string
required
URL for webhook callback. Must be a valid URL.

Response

Successful Response

Main Structure (Root)

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

Errors

400 — URL missing
object
Returned when urlHook is missing: { "statusCode": 400, "messages": "Url tidak ditemukan. Silahkan masukkan url webhook anda." }.
400 — URL invalid
object
Returned when urlHook is not a valid URL: { "statusCode": 400, "messages": "Url tidak valid. Silahkan masukkan url webhook yang valid." }.