> Markdown version of https://tuna.am/en/docs/api/webhook-add/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# Add a webhook

post`/v1/webhooks`

## Request

### Authorization

* **Authorization**stringheaderrequired

  Key in the format `Bearer <API-key>`. Create a key on the [API keys](https://my.tuna.am/api_keys) page.

### Request body

application/json

* **description**string

  Description

  **Example:&#x20;**`Receiving callbacks from the payment system`

  **name**string

  Name

  **Example:&#x20;**`Payment callback`

  **policy_rules**string

  Policy

### Response

201application/json

* **created_at**string\<date-time>

  Creation date

  **default_content**string

  Response body

  **Example:&#x20;**`OK`

  **default_content_type**string

  Content-Type header value

  **Example:&#x20;**`text/html`

  **default_status**integer\<int64>

  Response status

  **Example:&#x20;**`200`

  **description**string

  Description

  **Example:&#x20;**`Receiving callbacks from the payment system`

  **id**string

  Identifier

  **Example:&#x20;**`2cUapHVcvLZQEDXJ8fRgQJ8q5qL`

  **latest_request_at**string\<date-time>

  Last request date

  **latest_request_viewed**boolean

  Whether all requests have been viewed

  **name**string

  Name

  **Example:&#x20;**`Payment callback`

  **owner** object

  **active**boolean

  Active flag

  **avatar_url**string

  Avatar

  **Example:&#x20;**`https://www.gravatar.com/avatar/00000000000000000000000000000000`

  **email**string

  Email

  **Example:&#x20;**`jane@example.com`

  **id**integer\<int64>

  Identifier

  **Example:&#x20;**`42`

  **name**string

  Name

  **Example:&#x20;**`Jane Doe`

  **role**string

  Role

  **Possible values:** \[`primary_owner`, `owner`, `admin`, `member`]

  **Example:&#x20;**`member`

  **policy_rules**string

  Policy

  **updated_at**string\<date-time>

  Update date
