Skip to main content
GET
/
notifications
/
{notification_id}
/
logs
List logs for a notification
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.paddle.com/notifications/{notification_id}/logs', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "data": [
    {
      "id": "ntflog_01h8c0bswct46cwamynrzs6fwr",
      "response_code": 200,
      "response_content_type": "text/plain; charset=UTF-8",
      "response_body": "",
      "attempted_at": "2023-08-21T12:15:54.764232Z"
    },
    {
      "id": "ntflog_01h8c04xjj1ybcgsawp54h5zkr",
      "response_code": 404,
      "response_content_type": "application/json",
      "response_body": "{\"success\":false,\"error\":{\"message\":\"Token not found\",\"id\":null}}",
      "attempted_at": "2023-08-21T12:12:09.170559Z"
    },
    {
      "id": "ntflog_01h8bzyx2g57ywng4edfnpycya",
      "response_code": 404,
      "response_content_type": "application/json",
      "response_body": "{\"success\":false,\"error\":{\"message\":\"Token not found\",\"id\":null}}",
      "attempted_at": "2023-08-21T12:08:52.049462Z"
    },
    {
      "id": "ntflog_01h8bzsp45tvprvrra1jq5m2n5",
      "response_code": 404,
      "response_content_type": "application/json",
      "response_body": "{\"success\":false,\"error\":{\"message\":\"Token not found\",\"id\":null}}",
      "attempted_at": "2023-08-21T12:06:01.093936Z"
    },
    {
      "id": "ntflog_01h8bzn9vr2j0hav6bqjvmfhwj",
      "response_code": 404,
      "response_content_type": "application/json",
      "response_body": "{\"success\":false,\"error\":{\"message\":\"Token not found\",\"id\":null}}",
      "attempted_at": "2023-08-21T12:03:37.464996Z"
    },
    {
      "id": "ntflog_01h8bzhqdt790wtmepa10we4ed",
      "response_code": 404,
      "response_content_type": "application/json",
      "response_body": "{\"success\":false,\"error\":{\"message\":\"Token not found\",\"id\":null}}",
      "attempted_at": "2023-08-21T12:01:40.282965Z"
    },
    {
      "id": "ntflog_01h8bzey4xs3txscjw7td3793c",
      "response_code": 404,
      "response_content_type": "application/json",
      "response_body": "{\"success\":false,\"error\":{\"message\":\"Token not found\",\"id\":null}}",
      "attempted_at": "2023-08-21T12:00:08.861949Z"
    },
    {
      "id": "ntflog_01h8bzcx9gwtcvf000ngvacnnw",
      "response_code": 404,
      "response_content_type": "application/json",
      "response_body": "{\"success\":false,\"error\":{\"message\":\"Token not found\",\"id\":null}}",
      "attempted_at": "2023-08-21T11:59:02.448596Z"
    },
    {
      "id": "ntflog_01h8bzb80ns1dtwmjsx311ztcw",
      "response_code": 404,
      "response_content_type": "application/json",
      "response_body": "{\"success\":false,\"error\":{\"message\":\"Token not found\",\"id\":null}}",
      "attempted_at": "2023-08-21T11:58:07.893473Z"
    },
    {
      "id": "ntflog_01h8bzame8ykt2zw5a11mxs110",
      "response_code": 404,
      "response_content_type": "application/json",
      "response_body": "{\"success\":false,\"error\":{\"message\":\"Token not found\",\"id\":null}}",
      "attempted_at": "2023-08-21T11:57:47.848991Z"
    }
  ],
  "meta": {
    "pagination": {
      "per_page": 50,
      "estimated_total": 10,
      "next": "https://api.paddle.com/notifications/ntf_01h8bzam1z32agrxjwhjgqk8w6/logs?after=ntflog_01h8bzame8ykt2zw5a11mxs110",
      "has_more": false
    },
    "request_id": "b12dc646-6131-4801-b76a-b717d1aff37c"
  }
}

Authorizations

Authorization
string
header
required

Requests are authenticated with API keys. Provide your API key as a Bearer token in the Authorization header.

API keys are assigned permissions, granting them access to entities and operations. Each endpoint may require one or more permissions, defined with the x-permissions extension. Values for include parameters may require specific permissions as defined in the x-enum-permissions extension. See all available permissions in the permission schema or documentation.

Get an API key and select the permissions you need from the Paddle dashboard under Paddle > Developer Tools > Authentication.

Path Parameters

notification_id
string
required

Paddle ID of the notification entity to work with.

Example:

"ntf_01gt261ms8ew72a0vnm5p5ne2q"

Query Parameters

after
string

Return entities after the specified Paddle ID when working with paginated endpoints. Used in the meta.pagination.next URL in responses for list operations.

per_page
integer
default:50

Set how many entities are returned per page. Paddle returns the maximum number of results if a number greater than the maximum is requested. Check meta.pagination.per_page in the response to see how many were returned.

Default: 50; Maximum: 200.

Required range: x <= 200

Response

OK

data
NotificationLog · object[]
required
meta
MetaPaginated · object
required

Information about this response.