Send held deliveries now that there is room in the allowance
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{pid}/deliveries/held/release \
--header 'Content-Type: application/json' \
--data '{
"limit": 100
}'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({limit: 100})
};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/deliveries/held/release', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{pid}/deliveries/held/release"
payload = { "limit": 100 }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"released": 123,
"sent": 123,
"dropped": 123,
"remaining": 123
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>"
}Deliveries
Send held deliveries now that there is room in the allowance
Re-runs the fan-out for held events, oldest first, creating the deliveries each event’s destinations still lack and charging them to the allowance. Stops at the first event it cannot fully cover (that event keeps a hold for what is left). A hold whose event has been pruned by retention is dropped. Writes one release_held_deliveries audit row.
POST
/
admin
/
api
/
projects
/
{pid}
/
deliveries
/
held
/
release
Send held deliveries now that there is room in the allowance
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{pid}/deliveries/held/release \
--header 'Content-Type: application/json' \
--data '{
"limit": 100
}'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({limit: 100})
};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/deliveries/held/release', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{pid}/deliveries/held/release"
payload = { "limit": 100 }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"released": 123,
"sent": 123,
"dropped": 123,
"remaining": 123
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>"
}Path Parameters
Body
application/json
Most holds to process in this call.
Required range:
1 <= x <= 500