---
title: "Connect a Discord channel using an incoming webhook"
method: POST
path: "/accounts/discord/webhook"
tags: ["Accounts"]
---

# Connect a Discord channel using an incoming webhook

`POST /accounts/discord/webhook`

## Request

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

## Request body

- DiscordWebhookLoginInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `intent` 'production' | 'certification_test': Typed execution intent; certification_test requires an unscoped instance administrator
  - `webhook_url` string, required: Discord incoming webhook URL
  - `workspace_id` string, required: Workspace ID

## Response `200`

OK

- AccountConnectionResponse
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `account_id` string, required: OpenPost destination account ID
  - `account_ids` string[], nullable, required: All connected OpenPost account IDs
  - `open_fresh_composer` boolean, required: Whether this is the Workspace's first connected destination
  - `workspace_id` string, required: Workspace receiving the connected destination

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