API ReferenceWebhook

Register webhook

Creates a new webhook that listens for specified events in a workspace.

POST/webhooks

Authorization API key in the x-api-key header

Body

application/json · object

  • eventWebhookEventrequired

    Events you want to subscribe to.

    To subscribe to multiple events, create multiple webhooks with the same url and different event types.

    One of"TRANSCRIPT_CREATED""TRANSLATION_CREATED""INSIGHT_CREATED"

  • urlstringrequired

    URL where you will be notifed when the event occurs

  • workspaceIdstringrequired

    ID of the workspace on which you get notified about the events

Responses

  • 200New webhook object

    application/json · Webhook

    • eventWebhookEventrequired

      One of"TRANSCRIPT_CREATED""TRANSLATION_CREATED""INSIGHT_CREATED"

    • workspaceIdstringrequired

      Workspace the webhook is linked to. Only triggers for contents of this workspace.

    • createdByIdstringrequired

      ID of the user that created this webhook

    • urlstringrequired

      Webhook url

  • 400Invalid input

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 401Authentication failed

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 403You don't have access

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 404Not found or don't have access

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

curl 'https://transcript.lol/api/v1/webhooks' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "event": "TRANSCRIPT_CREATED",
  "url": "string",
  "workspaceId": "string"
}'
const response = await fetch("https://transcript.lol/api/v1/webhooks", {
  method: "POST",
  headers: {
    "x-api-key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "event": "TRANSCRIPT_CREATED",
    "url": "string",
    "workspaceId": "string"
  }),
});
const text = await response.text();
import requests

response = requests.post(
    "https://transcript.lol/api/v1/webhooks",
    headers={
        "x-api-key": "YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    data="{\n  \"event\": \"TRANSCRIPT_CREATED\",\n  \"url\": \"string\",\n  \"workspaceId\": \"string\"\n}",
)
print(response.text)
{
  "event": "TRANSCRIPT_CREATED",
  "workspaceId": "string",
  "createdById": "string",
  "url": "string"
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}