List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. Use the id with update or delete.
const url = 'https://api.pingram.io/webhooks';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.pingram.io/webhooks \ --header 'Authorization: Bearer <token>'Authorizations
Responses
200
Successful response
Events webhook endpoints configured for the current account.
object
Configured webhook endpoints. Empty when none exist.
Destination URL that receives signed event payloads for a set of subscribed events.
object
Unique identifier for this endpoint within the account.
Destination URL that receives signed JSON event payloads.
Subscribed event types for this endpoint.
HMAC secret for verifying X-Pingram-Signature. Returned on create and list; updates keep the same secret. Format: pingram_whsecret_…
Example
{ "endpoints": [ { "events": [ "EMAIL_OPEN" ] } ]}400
Bad Request - validation errors, invalid input
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}401
Unauthorized
402
Payment Required - usage limits exceeded
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}500
Internal Server Error
502
Bad Gateway - provider error
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}