---
title: "Create a signed publication webhook"
method: POST
path: "/external-webhooks"
tags: ["Integrations"]
---

# Create a signed publication webhook

`POST /external-webhooks`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/external-webhooks`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Request body

- CreateExternalWebhookInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `event_types` string[], nullable, required
  - `installation_id` string
  - `url` string, uri, required
  - `workspace_id` string, required

## Response `201`

Created

- CreateExternalWebhookOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `signing_secret` string, required: Webhook signing secret. Returned once.
  - `subscription` ExternalWebhookResponse, required
    - `created_at` string, required
    - `event_types` string, required
    - `id` string, required
    - `installation_id` string, required
    - `status` string, required
    - `url` string, required
    - `workspace_id` string, required

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/openpo/apis/openpost-api.md) · [All operations](https://skmtc.dev/openpo/apis/openpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openpo/apis/openpost-api/revisions/67d3964458a7?raw)
