Skip to content

Menu

  • Media
  • Pricing
  • Docs
  • Language: English

    This page isn’t available in the greyed-out languages.

    • English
    • Español
    • Português
    • Français
    • Deutsch
    • Italiano
    • Nederlands
    • Polski
    • 日本語
    • 한국어
    • Bahasa Indonesia
    • Tiếng Việt
    • Türkçe
    • العربية
    • ไทย
    • Български
    • Català
    • Hrvatski
    • Eesti
    • Magyar
    • Latviešu
    • Lietuvių
    • Srpski
    • Slovenčina
    • Slovenščina
    • Українська
    • Čeština
    • Română
    • Svenska
    • Dansk
    • Norsk bokmål
    • Suomi
    • עברית
    • हिन्दी
    • Tagalog
    • Bahasa Melayu
    • Ελληνικά
    • 简体中文
    • 繁體中文

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

List the webhook endpoints

GET/v1/webhooks

The Workspace's endpoints, without their secrets.

Returns

  • 200The endpoints.
8 fields
  • webhooksobject[]Required
  • webhooks[].idstringRequired
  • webhooks[].urlstring (URL)Required
  • webhooks[].eventsstring[]Required

    One of job.completed, job.partly_failed, job.failed, job.cancelled, or credits.low

  • webhooks[].enabledbooleanRequired

    False once it was switched off after 72 hours of failed deliveries. An Admin switches it back on in Settings.

  • webhooks[].disabled_atstring (date-time) | nullRequired
  • webhooks[].created_atstring (date-time)Required
  • webhooks[].secretstring

    The signing secret. Only in the answer that adds the endpoint.

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()
Response
{
  "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"
    }
  ]
}

Add a webhook endpoint

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)Required

    An 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, or credits.low

Returns

  • 201The endpoint, with its signing secret, shown this once.
7 fields
  • idstringRequired
  • urlstring (URL)Required
  • eventsstring[]Required

    One of job.completed, job.partly_failed, job.failed, job.cancelled, or credits.low

  • enabledbooleanRequired

    False once it was switched off after 72 hours of failed deliveries. An Admin switches it back on in Settings.

  • disabled_atstring (date-time) | nullRequired
  • created_atstring (date-time)Required
  • secretstringRequired

    The signing secret. Only in the answer that adds the endpoint.

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()
Response
{
  "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_…"
}

Remove a webhook endpoint

DELETE/v1/webhooks/{id}

Removes the endpoint. Messages still waiting for it aren't sent.

Path parameters

  • idstringRequired

Returns

  • 204Removed.

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)