# Webhook

HTTP endpoint that receives MONEI events. Each delivery is signed with the account's API key (`MONEI-Signature: t=<unix>,v1=<hmac-sha256>` over `<unix>.<body>`). Failed deliveries are retried with exponential backoff; the webhook is automatically disabled and `lastResponse` recorded once retries are exhausted.

```
type Webhook {

  id: ID!

  accountId: ID!

  url: String!

  eventTypes: [WebhookEventType!]!

  secret: String

  enabled: Boolean!

  createdAt: String!

  updatedAt: String

  lastResponse: CallbackData

}
```

### Fields[​](#fields "Direct link to Fields")

#### [`Webhook.id`](#id) ● [`ID!`](https://docs.monei.com/apis/graphql/types/scalars/id/.md) non-null scalar[​](#id "Direct link to id")

Webhook ID.

#### [`Webhook.accountId`](#account-id) ● [`ID!`](https://docs.monei.com/apis/graphql/types/scalars/id/.md) non-null scalar[​](#account-id "Direct link to account-id")

Account that owns the webhook.

#### [`Webhook.url`](#url) ● [`String!`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) non-null scalar[​](#url "Direct link to url")

HTTPS endpoint MONEI POSTs events to.

#### [`Webhook.eventTypes`](#event-types) ● [`[WebhookEventType!]!`](https://docs.monei.com/apis/graphql/types/enums/webhook-event-type/.md) non-null enum[​](#event-types "Direct link to event-types")

Event types this webhook subscribes to.

#### [`Webhook.secret`](#secret) ● [`String`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) scalar[​](#secret "Direct link to secret")

Sensitive: legacy per-webhook signing secret. New webhooks sign with the account API key; this is kept for backward compatibility.

#### [`Webhook.enabled`](#enabled) ● [`Boolean!`](https://docs.monei.com/apis/graphql/types/scalars/boolean/.md) non-null scalar[​](#enabled "Direct link to enabled")

Whether the webhook is active. Auto-set to `false` after retries are exhausted.

#### [`Webhook.createdAt`](#created-at) ● [`String!`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) non-null scalar[​](#created-at "Direct link to created-at")

Creation timestamp (ISO 8601).

#### [`Webhook.updatedAt`](#updated-at) ● [`String`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) scalar[​](#updated-at "Direct link to updated-at")

Last update timestamp (ISO 8601).

#### [`Webhook.lastResponse`](#last-response) ● [`CallbackData`](https://docs.monei.com/apis/graphql/types/objects/callback-data/.md) object[​](#last-response "Direct link to last-response")

Outcome of the most recent delivery attempt.

### Returned By[​](#returned-by "Direct link to Returned By")

[`createWebhook`](https://docs.monei.com/apis/graphql/operations/mutations/create-webhook/.md) mutation ● [`updateWebhook`](https://docs.monei.com/apis/graphql/operations/mutations/update-webhook/.md) mutation ● [`webhook`](https://docs.monei.com/apis/graphql/operations/queries/webhook/.md) query

### Member Of[​](#member-of "Direct link to Member Of")

[`WebhooksConnection`](https://docs.monei.com/apis/graphql/types/objects/webhooks-connection/.md) object
