API Documentation
Invoice Line Items
Invoices
Catalogs
API Keys
Subscriptions
PaymentMethods
UsageEvents
ProductFeatures
Webhooks
Create Webhook
POST
/
api
/
v1
/
webhooks
curl --request POST \
--url https://app.flowglad.com/api/v1/webhooks \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"webhook": {
"filterTypes": [
"customer.created"
],
"url": "<string>",
"name": "<string>",
"active": true
}
}'
{
"webhook": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdByCommit": "<string>",
"updatedByCommit": "<string>",
"livemode": true,
"filterTypes": [
"customer.created"
],
"organizationId": "<string>",
"url": "<string>",
"name": "<string>",
"active": true
},
"secret": "<string>"
}
Authorizations
Body
application/json
Response
200
application/json
Successful response
The response is of type object
.
curl --request POST \
--url https://app.flowglad.com/api/v1/webhooks \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"webhook": {
"filterTypes": [
"customer.created"
],
"url": "<string>",
"name": "<string>",
"active": true
}
}'
{
"webhook": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdByCommit": "<string>",
"updatedByCommit": "<string>",
"livemode": true,
"filterTypes": [
"customer.created"
],
"organizationId": "<string>",
"url": "<string>",
"name": "<string>",
"active": true
},
"secret": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.