Webhooks
View as Markdown

Update an endpoint

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

PATCH
/api/v1/webhook-endpoints/{id}

Authorization

Authorization
Required
Bearer <token>

An API key: gpy_test_… or gpy_live_… (or an agent key, agk_…).

In: header

Request Body

application/jsonOptional

urlstring

Format: "uri"

eventsarray<string>

statusstring

Value in: "active" | "disabled"

Path Parameters

id
Required
string

Format: "uuid"
curl -X PATCH "https://globalymint.com/api/v1/webhook-endpoints/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "http://example.com",
    "events": [
      "customer.created"
    ],
    "status": "active"
  }'

The updated endpoint.

{
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "url": "http://example.com",
    "events": [
      "string"
    ],
    "status": "active",
    "mode": "test",
    "createdAt": "2019-08-24T14:15:22Z",
    "disabledReason": "delivery_failures",
    "disabledAt": "2019-08-24T14:15:22Z",
    "failingSince": "2019-08-24T14:15:22Z",
    "previousSecretExpiresAt": "2019-08-24T14:15:22Z",
    "delivered24h": 0,
    "failed24h": 0,
    "retrying": 0,
    "waiting": 0
  },
  "_agent": {
    "summary": "string",
    "status": "ok",
    "next_actions": [
      "string"
    ],
    "warnings": [
      "string"
    ]
  },
  "api_version": "2026-07-01"
}