List recent notification logs for the authenticated account, newest first.
const url = 'https://api.pingram.io/logs';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/logs \ --header 'Authorization: Bearer <token>'Authorizations
Parameters
Query Parameters
Maximum number of logs to return (default
Pagination cursor for next page
Responses
200
Successful response
object
object
Address that received the mail. Same value as matched.email on the EMAIL_INBOUND webhook, including when that address was only in Cc or Bcc.
Original To header addresses. Not the address that received the mail.
Original Cc header addresses.
Bcc header addresses still on the delivered message. Usually omitted, because the Bcc header is removed before delivery.
object
Original filename from the message.
MIME type of the file.
Size in bytes. This response does not include the file bytes.
Content-ID with angle brackets removed, so it matches cid: references in bodyHtml. Omitted when the part has no Content-ID.
inline when the HTML body references this file; attachment when it is a separate file. Omitted when the message does not say which.
Inbound MMS attachments (includes contentType when available).
object
Example
{ "messages": [ { "attachments": [ { "contentDisposition": "inline" } ], "resolutionType": "reply" } ]}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" }}