curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{pid}/deliveries/replay \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '
{
"destination_id": "<string>",
"status": [],
"since": "2023-11-07T05:31:56Z",
"until": "2023-11-07T05:31:56Z",
"limit": 100,
"dry_run": true
}
'const options = {
method: 'POST',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
destination_id: '<string>',
status: [],
since: '2023-11-07T05:31:56Z',
until: '2023-11-07T05:31:56Z',
limit: 100,
dry_run: true
})
};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/deliveries/replay', 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/replay"
payload = {
"destination_id": "<string>",
"status": [],
"since": "2023-11-07T05:31:56Z",
"until": "2023-11-07T05:31:56Z",
"limit": 100,
"dry_run": True
}
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"queued": 123,
"matched": 123,
"remaining": 123,
"more": true,
"stopped": "delivery_allowance_exhausted",
"error": "<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>"
}{
"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>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>"
}Replay every delivery that did not arrive, by filter
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{pid}/deliveries/replay \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '
{
"destination_id": "<string>",
"status": [],
"since": "2023-11-07T05:31:56Z",
"until": "2023-11-07T05:31:56Z",
"limit": 100,
"dry_run": true
}
'const options = {
method: 'POST',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
destination_id: '<string>',
status: [],
since: '2023-11-07T05:31:56Z',
until: '2023-11-07T05:31:56Z',
limit: 100,
dry_run: true
})
};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/deliveries/replay', 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/replay"
payload = {
"destination_id": "<string>",
"status": [],
"since": "2023-11-07T05:31:56Z",
"until": "2023-11-07T05:31:56Z",
"limit": 100,
"dry_run": True
}
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"queued": 123,
"matched": 123,
"remaining": 123,
"more": true,
"stopped": "delivery_allowance_exhausted",
"error": "<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>"
}{
"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>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>"
}Authorizations
The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.
Path Parameters
Project id (UUID) belonging to the caller workspace.
Body
Only deliveries to this destination.
dead, failed, or both (the default). A list, or a comma-separated string. Any other status is a 400.
dead, failed Only deliveries created at or after this time.
Only deliveries created at or before this time.
The most to queue in this call.
1 <= x <= 500Answer {matched, dry_run: true} without queueing or charging anything - what a confirmation states.
Response
One bounded pass (or, with dry_run, the count alone).
- Option 1
- Option 2
New deliveries queued by this call.
Deliveries matching the filter when the call began.
Deliveries still matching after it.
remaining > 0: call again to continue.
Present when the allowance ran out part-way.
delivery_allowance_exhausted With stopped: the allowance message.