Get webhook
GET /v2/api-gateway/webhooks
Returns the registered webhook URL, or { "webhook": { "url": null } } when none is configured (200, not 404). The signing secret is never returned here. V2 only — V1 has no equivalent read.
Request
Authentication: your API key in the x-api-key header.
Example request
cURL
curl --request GET \
--url 'https://api.themooncard.com/v2/api-gateway/webhooks' \
--header 'x-api-key: YOUR_API_KEY'Responses
200 Success
| Field | Type | Description |
|---|---|---|
webhook required | object | |
webhook. required | string, nullable | Registered webhook URL, or null when none is configured. |
JSON
{
"webhook": {
"url": "https://example.com/moon/webhooks"
}
}401 Error
Missing or invalid credentials, e.g. { "message": "Invalid API Key", "code": "UNAUTHORIZED" }.
The body is the standard error object: see Errors.
500 Error
Unexpected server error. Body is { message: "Internal server error", code: "INTERNAL_.
The body is the standard error object: see Errors.
Last updated September 4, 2026