Skip to content

Retrieve an event

GET/v1/events/{id}

Send your API key as a bearer token in the Authorization header. Secret API key: Authorization: Bearer ctp_live_sk_…. A publishable key (ctp_…_pk_…) is accepted by these operations only, which serve reference data: getRate, listAssets, listNetworks (each marked x-publishable-key: true). Every other operation refuses it with 403 publishable_key_not_allowed, whatever Origin the request carries: that header binds browsers, not other clients, and nothing on this API relies on it.

Name Type Description
id required string At most 100 characters.
Terminal window
curl "https://api.ctpeway.com/v1/events/{id}" \
-H "Authorization: Bearer $CTPEWAY_API_KEY"
Field Type Description
id string evt_….
type string
api_version string
created integer Unix time in seconds.
livemode boolean
data object
data.object map of string to any See webhooks.v1.json for the schema of each type.
{
"id": "string",
"type": "string",
"api_version": "string",
"created": 0,
"livemode": true,
"data": {
"object": {}
}
}

The values are placeholders generated from the schema. They show the shape, not real data.

A failed request answers with the error format described under Errors.

Besides the codes any endpoint can return, this endpoint can answer with these code values: