curl --request POST \
--url https://sandbox.ignite-checkout.ai/v1/webhook-endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://example.com/ignyt/webhooks"
}
'import requests
url = "https://sandbox.ignite-checkout.ai/v1/webhook-endpoints"
payload = { "url": "https://example.com/ignyt/webhooks" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://example.com/ignyt/webhooks'})
};
fetch('https://sandbox.ignite-checkout.ai/v1/webhook-endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox.ignite-checkout.ai/v1/webhook-endpoints';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://example.com/ignyt/webhooks'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.ignite-checkout.ai/v1/webhook-endpoints"
payload := strings.NewReader("{\n \"url\": \"https://example.com/ignyt/webhooks\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"environment": "sandbox",
"event_types": [
"<string>"
],
"id": "<string>",
"name": "<string>",
"note": "<string>",
"revision": 123,
"secret": "<string>",
"status": "active",
"url": "<string>"
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}Create a webhook endpoint
Register a public HTTPS receiver (port 443) for the chosen event types and return its signing secret once. Retrying with the same Idempotency-Key returns the endpoint with secret: null; rotate the secret if it was lost. Returns 422 webhook_url_not_public or 422 webhook_host_unresolvable for an unusable URL, and 429 when the plan’s endpoint limit is reached. Requires the webhooks:manage scope.
Raw HTTP template
Replace path, credential and schema placeholders using valid resources. The planned host requires activation; use your assigned API URL meanwhile. Preserve a write’s original idempotency key when its contract supports retry. If sending raw HTTP/1.1, use CRLF for request and header lines. Set Content-Length to the byte length of the final encoded body after replacing placeholders, including multipart delimiters and line endings.
POST /v1/webhook-endpoints HTTP/1.1
Host: sandbox.ignite-checkout.ai
Authorization: Bearer <MachineKey-credential>
Idempotency-Key: <persisted-value-for-this-operation>
Content-Type: application/json
Content-Length: <body-length-in-bytes>
{
"url": "REPLACE_WITH_VALID_VALUE"
}
HTTP/2 header equivalent
Logical headers over negotiated HTTPS HTTP/2, not a wire-format message. The endpoint, JSON and idempotency rules are unchanged. See HTTP and transport.
:method: POST
:scheme: https
:authority: sandbox.ignite-checkout.ai
:path: /v1/webhook-endpoints
authorization: Bearer <MachineKey-credential>
idempotency-key: <persisted-value-for-this-operation>
content-type: application/json
{
"url": "REPLACE_WITH_VALID_VALUE"
}
curl --request POST \
--url https://sandbox.ignite-checkout.ai/v1/webhook-endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://example.com/ignyt/webhooks"
}
'import requests
url = "https://sandbox.ignite-checkout.ai/v1/webhook-endpoints"
payload = { "url": "https://example.com/ignyt/webhooks" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://example.com/ignyt/webhooks'})
};
fetch('https://sandbox.ignite-checkout.ai/v1/webhook-endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox.ignite-checkout.ai/v1/webhook-endpoints';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://example.com/ignyt/webhooks'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.ignite-checkout.ai/v1/webhook-endpoints"
payload := strings.NewReader("{\n \"url\": \"https://example.com/ignyt/webhooks\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"environment": "sandbox",
"event_types": [
"<string>"
],
"id": "<string>",
"name": "<string>",
"note": "<string>",
"revision": 123,
"secret": "<string>",
"status": "active",
"url": "<string>"
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}Authorizations
Headers
Optional, recommended. A client-generated key that identifies this operation so it can be retried safely. Repeating the request with the same key and the same body returns the original result instead of performing the action again; reusing a key with a different body is rejected with 409. After a timeout or network error, retry with the same key, never a new one. Reuse is scoped to the calling API key; look up a committed result with GET /v1/webhook-commands/{command_key}.
1 - 80^[A-Za-z0-9_.:-]+$