curl --request POST \
--url https://api.creem.io/v1/webhooks/{id}/events/{event_id}/ack \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"status_code": 200,
"response_body": "OK"
}
'import requests
url = "https://api.creem.io/v1/webhooks/{id}/events/{event_id}/ack"
payload = {
"status_code": 200,
"response_body": "OK"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({status_code: 200, response_body: 'OK'})
};
fetch('https://api.creem.io/v1/webhooks/{id}/events/{event_id}/ack', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.creem.io/v1/webhooks/{id}/events/{event_id}/ack",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'status_code' => 200,
'response_body' => 'OK'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.creem.io/v1/webhooks/{id}/events/{event_id}/ack"
payload := strings.NewReader("{\n \"status_code\": 200,\n \"response_body\": \"OK\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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))
}HttpResponse<String> response = Unirest.post("https://api.creem.io/v1/webhooks/{id}/events/{event_id}/ack")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"status_code\": 200,\n \"response_body\": \"OK\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.creem.io/v1/webhooks/{id}/events/{event_id}/ack")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status_code\": 200,\n \"response_body\": \"OK\"\n}"
response = http.request(request)
puts response.read_body{
"id": "evt_5Xb2mQ7vN1pLk9RtYw3zA",
"object": "webhook_event",
"success": true
}Acknowledge a CLI webhook event
Report the status your local server returned for an event from the pending feed. Any 2xx marks the delivery successful; anything else records a failure. Acknowledged events leave the pending feed and appear in the dashboard event log with the reported result. Only valid for endpoints created with delivery_mode: cli.
curl --request POST \
--url https://api.creem.io/v1/webhooks/{id}/events/{event_id}/ack \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"status_code": 200,
"response_body": "OK"
}
'import requests
url = "https://api.creem.io/v1/webhooks/{id}/events/{event_id}/ack"
payload = {
"status_code": 200,
"response_body": "OK"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({status_code: 200, response_body: 'OK'})
};
fetch('https://api.creem.io/v1/webhooks/{id}/events/{event_id}/ack', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.creem.io/v1/webhooks/{id}/events/{event_id}/ack",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'status_code' => 200,
'response_body' => 'OK'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.creem.io/v1/webhooks/{id}/events/{event_id}/ack"
payload := strings.NewReader("{\n \"status_code\": 200,\n \"response_body\": \"OK\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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))
}HttpResponse<String> response = Unirest.post("https://api.creem.io/v1/webhooks/{id}/events/{event_id}/ack")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"status_code\": 200,\n \"response_body\": \"OK\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.creem.io/v1/webhooks/{id}/events/{event_id}/ack")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status_code\": 200,\n \"response_body\": \"OK\"\n}"
response = http.request(request)
puts response.read_body{
"id": "evt_5Xb2mQ7vN1pLk9RtYw3zA",
"object": "webhook_event",
"success": true
}Authorizations
API key for authentication. You can find your API key in the Creem dashboard under Settings > API Keys.
Path Parameters
The webhook ID
The event ID from the pending feed
Body
The local delivery result
The HTTP status code the local server answered with. Any 2xx marks the delivery successful. Report 503 when the local server could not be reached.
100 <= x <= 599200
The response body the local server returned, truncated to 10,000 characters. Shown in the dashboard event log.
"OK"
Response
Successfully acknowledged the event
The acknowledged event ID.
"evt_5Xb2mQ7vN1pLk9RtYw3zA"
A string representing the object’s type. Objects of the same type share the same value.
"webhook_event"
Whether the first acknowledgment recorded a successful delivery (any 2xx). Repeated acknowledgments return the stored result.
true