Skip to main content
GET
/
webhook
/
config
Busca configuração de webhook
curl --request GET \
  --url https://api.astronpay.co/api/v1/webhook/config \
  --header 'x-api-key: <api-key>' \
  --header 'x-api-secret: <api-key>'
{
  "url": "https://meuapp.com/webhooks/astronpay",
  "secretConfigured": true,
  "lastRotatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required
x-api-secret
string
header
required

Response

200 - application/json

OK

url
string<uri>
Example:

"https://meuapp.com/webhooks/astronpay"

secretConfigured
boolean
Example:

true

lastRotatedAt
string<date-time> | null