# Send a test event

`POST /api/v1/webhook-endpoints/{id}/test`

POSTs one signed SAMPLE payload of the given type, marked `"test": true`, and returns what the receiver answered. No billing state is read or changed. Works on a disabled endpoint. Rate-limited per endpoint.

Needs the `webhooks:write` scope, or a full-access key.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | required |  |

## Headers

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string | optional | A unique value for this operation, chosen by you. A retry with the same key and the same body returns the first response instead of running again. The same key with a different body answers 409 `idempotency_key_reused`; a key whose first request is still running answers 409 `idempotency_in_progress`. |

## Request body

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "event_type": {
      "type": "string",
      "enum": [
        "customer.created",
        "subscription.created",
        "subscription.updated",
        "subscription.paused",
        "subscription.resumed",
        "subscription.canceled",
        "subscription.renewed",
        "invoice.created",
        "invoice.finalized",
        "invoice.paid",
        "invoice.payment_failed",
        "invoice.voided",
        "invoice.uncollectible",
        "payment.refunded",
        "payment_method.attached",
        "dunning.retry.scheduled",
        "dunning.campaign.exhausted",
        "entitlements.updated",
        "credit_note.issued",
        "subscription.discount_applied",
        "subscription.discount_removed",
        "customer.balance_updated",
        "checkout.session.completed",
        "subscription.trial_will_end",
        "customer.updated",
        "payment.succeeded",
        "subscription.renewal_upcoming",
        "subscription.price_change_scheduled",
        "subscription.price_change_applied",
        "subscription.price_change_canceled",
        "api_key.expiring"
      ],
      "description": "An event GlobalyMint delivers."
    }
  },
  "required": [
    "event_type"
  ]
}
```

## Responses

### 200

The outcome of the POST. `delivered` is false when the receiver did not answer 2xx within 10 s.

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "delivery_id": {
          "type": "string",
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        },
        "event_id": {
          "type": "string",
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        },
        "event_type": {
          "type": "string"
        },
        "delivered": {
          "type": "boolean"
        },
        "status_code": {
          "type": [
            "integer",
            "null"
          ]
        },
        "response_ms": {
          "type": "integer"
        },
        "error": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "delivery_id",
        "event_id",
        "event_type",
        "delivered",
        "status_code",
        "response_ms",
        "error"
      ]
    },
    "_agent": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ok"
          ]
        },
        "next_actions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "summary",
        "status",
        "next_actions",
        "warnings"
      ]
    },
    "api_version": {
      "type": "string",
      "example": "2026-07-01"
    }
  },
  "required": [
    "data",
    "_agent",
    "api_version"
  ]
}
```
