---
title: "createWebhookSigningKey"
method: POST
path: "/v2/createWebhookSigningKey"
tags: ["Webhooks"]
---

# createWebhookSigningKey

`POST /v2/createWebhookSigningKey`

Create a webhook.

Specify a topic and a url. Use this call to either create or update a webhook for a topic.

<details>
<summary><strong>Error Glossary</strong> (click to expand)</summary>

| Code | HTTP Status | Message |
|------|-------------|-------------|
| `AP009` | 401 | Unauthorized |
| `AP101` | 401 | No authenticated user |
| `AP1000` | 200 | Invalid API |
| `AP1107` | 400 | Merchant is required |

</details>

## Headers

- `Content-Type` string, required
- `authorization` string, required

## Request body

- object
  - `topic` string — The event topic to subscribe to.
  - `url` string — The destination URL where webhooks will be sent.

## Response `200`

Successful Response - Signing Key Created

- object
  - `message` string
  - `signingKey` string

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/aero/apis/aeropay-v2-api.md) · [All operations](https://skmtc.net/aero/apis/aeropay-v2-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aero/aeropay-v2-api/revisions/4700c4ceeaad/schema)
