Revise API menu

Create a webhook

POSThttps://revise.io/api/v1/webhooks

Register up to 10 active account-wide endpoints. Use HTTPS port 443 and public addresses; redirects are not followed. Store signing_secret on creation: it is returned on idempotent replay but omitted from lists. Matching status transitions produce signed JSON notifications containing the job ID, not document content. Deliveries have a 30-second timeout and up to 11 attempts within 24 hours; duplicate or out-of-order delivery is possible. See the webhook guide for payloads, HMAC verification, and acknowledgement-based deletion.

See payloads, signatures, and delivery behavior for integration guidance.

TypeScript#

TypeScript
import { ReviseClient } from "@reviseio/api";

const revise = new ReviseClient({ apiKey: process.env.REVISE_API_KEY! });
const result = await revise.webhooks.create(
  {
    url: "https://example.com/hooks/revise",
    events: ["prompt.completed", "conversion.completed"],
  },
  { idempotencyKey: "webhook-42" },
);

Authorization#

Authorizationstringrequired

Bearer <key>, with an API key from the console.

Headers#

Idempotency-Keystringrequired

min length 1 · max length 128

Body#

application/json · required

urlstring<uri>required

example "https://app.example.com/hooks/revise"

eventsarray<string>required

min items 1 · max items 7

Responses#

201WebhookWebhook and signing secret, including on idempotent replay. No Idempotent-Replayed header is returned.
idstringrequired

example "wh_21ff52db-63f9-4a1c-a1ab-8d1a9f11c201"

urlstring<uri>required

example "https://example.com/webhooks/revise"

eventsarray<string>required

min items 1 · max items 7 · example ["prompt.completed","prompt.failed"]

created_atstring<date-time>required

example "2026-09-08T12:00:00Z"

deleted_atstring | nullrequired

example null

signing_secretstring

Returned only on creation and its idempotent replay. Store securely.

example "whsec_AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8="

defaultErrorError
errorobjectrequired
Properties
codestringrequired
messagestringrequired
detailsobject