Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
UpdateWebhookData
curl --request PUT \
--url https://api.lettermint.co/v1/webhooks/{webhookId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"url": "<string>",
"events": [
"message.created"
],
"enabled": true
}'{
"data": {
"id": "<string>",
"route_id": "<string>",
"name": "<string>",
"url": "<string>",
"events": [
"<string>"
],
"enabled": true,
"secret": "<string>",
"last_called_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"message": "Webhook updated successfully."
}Updates webhook configuration. Events, URL, name, and enabled status can be modified.
curl --request PUT \
--url https://api.lettermint.co/v1/webhooks/{webhookId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"url": "<string>",
"events": [
"message.created"
],
"enabled": true
}'{
"data": {
"id": "<string>",
"route_id": "<string>",
"name": "<string>",
"url": "<string>",
"events": [
"<string>"
],
"enabled": true,
"secret": "<string>",
"last_called_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"message": "Webhook updated successfully."
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
UpdateWebhookData