---
title: "Register an endpoint"
method: POST
path: "/webhooks"
tags: ["Webhooks"]
---

# Register an endpoint

`POST /webhooks`

## Request

- Base URL: `https://rcs-templates-api-dot-msg2ai-server.ue.r.appspot.com/api/agent`
- URL: `https://rcs-templates-api-dot-msg2ai-server.ue.r.appspot.com/api/agent/webhooks`
- Auth: HTTP bearer

Register an HTTPS endpoint to receive signed platform events. The response carries the signing secret exactly once — store it then, because every later read redacts it and there is no way to retrieve it again.

## Request body

- object
  - `url` string, required: HTTPS endpoint to POST events to.
  - `events` string[], required: Event types to subscribe to.
  - `description` string

## Response `200`

Success.

- object

## Other responses

- `400`: Arguments failed validation.
- `401`: Missing or invalid agent key.
- `403`: Key does not hold the webhooks:manage scope.
- `429`: Rate limited.

---

[API](https://skmtc.dev/rcs-campaigns/apis/rcs-campaigns-agent-gateway.md) · [All operations](https://skmtc.dev/rcs-campaigns/apis/rcs-campaigns-agent-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/rcs-campaigns/apis/rcs-campaigns-agent-gateway/revisions/acdbf292d9d6?raw)
