Webhook endpoints
The addresses we send a signed message to when a job ends or credits run low. Webhooks shows how to check each message.
On this page
GET/v1/webhooks
The Workspace's endpoints, without their secrets.
Returns
- 200The endpoints.
8 fields
webhooksobject[]Requiredwebhooks[].idstringRequiredwebhooks[].urlstring (URL)Requiredwebhooks[].eventsstring[]RequiredOne of
job.completed,job.partly_failed,job.failed,job.cancelled, orcredits.lowwebhooks[].enabledbooleanRequiredFalse once it was switched off after 72 hours of failed deliveries. An Admin switches it back on in Settings.
webhooks[].disabled_atstring (date-time) | nullRequiredwebhooks[].created_atstring (date-time)Requiredwebhooks[].secretstringThe signing secret. Only in the answer that adds the endpoint.
Errors
Example
curl https://api.filesokay.com/v1/webhooks \
-H "Authorization: Bearer $FILESOKAY_KEY"const res = await fetch("https://api.filesokay.com/v1/webhooks", {
headers: {
Authorization: `Bearer ${process.env.FILESOKAY_KEY}`,
},
});
const list = await res.json();import os
import requests
res = requests.get(
"https://api.filesokay.com/v1/webhooks",
headers={
"Authorization": f"Bearer {os.environ['FILESOKAY_KEY']}",
},
)
list = res.json(){
"webhooks": [
{
"id": "wh_5b0e3c1f9a7d42e8b6c4d2f0a8e61b37",
"url": "https://example.com/webhooks/filesokay",
"events": [
"job.completed",
"job.partly_failed",
"job.failed"
],
"enabled": true,
"disabled_at": null,
"created_at": "2026-12-03T09:25:50Z"
}
]
}POST/v1/webhooks
Adds an HTTPS address on the public internet that we send signed messages to. The answer holds the endpoint's signing secret: keep it, to check each message's signature. A Workspace has up to 20 endpoints.
Request body
urlstring (URL)RequiredAn
https://address. Addresses on private networks are refused.Up to 2,048 characters
eventsstring[]The events to send. Leave it out for all of them.
One of
job.completed,job.partly_failed,job.failed,job.cancelled, orcredits.low
Returns
- 201The endpoint, with its signing secret, shown this once.
7 fields
idstringRequiredurlstring (URL)Requiredeventsstring[]RequiredOne of
job.completed,job.partly_failed,job.failed,job.cancelled, orcredits.lowenabledbooleanRequiredFalse once it was switched off after 72 hours of failed deliveries. An Admin switches it back on in Settings.
disabled_atstring (date-time) | nullRequiredcreated_atstring (date-time)RequiredsecretstringRequiredThe signing secret. Only in the answer that adds the endpoint.
Errors
Example
curl -X POST https://api.filesokay.com/v1/webhooks \
-H "Authorization: Bearer $FILESOKAY_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/webhooks/filesokay",
"events": [
"job.completed",
"job.partly_failed",
"job.failed"
]
}'const res = await fetch("https://api.filesokay.com/v1/webhooks", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.FILESOKAY_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
url: "https://example.com/webhooks/filesokay",
events: [
"job.completed",
"job.partly_failed",
"job.failed"
]
}),
});
const endpoint = await res.json();import os
import requests
res = requests.post(
"https://api.filesokay.com/v1/webhooks",
headers={
"Authorization": f"Bearer {os.environ['FILESOKAY_KEY']}",
},
json={
"url": "https://example.com/webhooks/filesokay",
"events": [
"job.completed",
"job.partly_failed",
"job.failed"
]
},
)
endpoint = res.json(){
"id": "wh_5b0e3c1f9a7d42e8b6c4d2f0a8e61b37",
"url": "https://example.com/webhooks/filesokay",
"events": [
"job.completed",
"job.partly_failed",
"job.failed"
],
"enabled": true,
"disabled_at": null,
"created_at": "2026-12-03T09:25:50Z",
"secret": "whsec_…"
}DELETE/v1/webhooks/{id}
Removes the endpoint. Messages still waiting for it aren't sent.
Path parameters
idstringRequired
Returns
- 204Removed.
Errors
Example
curl -X DELETE https://api.filesokay.com/v1/webhooks/wh_5b0e3c1f9a7d42e8b6c4d2f0a8e61b37 \
-H "Authorization: Bearer $FILESOKAY_KEY"const res = await fetch("https://api.filesokay.com/v1/webhooks/wh_5b0e3c1f9a7d42e8b6c4d2f0a8e61b37", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.FILESOKAY_KEY}`,
},
});
console.log(res.status);import os
import requests
res = requests.delete(
"https://api.filesokay.com/v1/webhooks/wh_5b0e3c1f9a7d42e8b6c4d2f0a8e61b37",
headers={
"Authorization": f"Bearer {os.environ['FILESOKAY_KEY']}",
},
)
print(res.status_code)