Notifications
Get all notifications
Retrieve a list of notifications with optional filtering and pagination
Authorization
Authorization
header
string
required
Enter the project access token with the Bearer prefix, e.g. "Bearer project_access_token"
Query Parameters
Available options:
job.completedjob.failedjob.cancelledupload.completedupload.failedupload.expired
response_status_code.eq
integer
Filter by exact response status code
Required range: 100 <= x <= 599
response_status_code.gte
integer
Filter by response status code greater than or equal
Required range: 100 <= x <= 599
response_status_code.lte
integer
Filter by response status code less than or equal
Required range: 100 <= x <= 599
Pagination limit (max 100)
Required range: 1 <= x <= 100
Filter by creation date greater than or equal (UNIX epoch time)
Required range: x >= 0
Filter by creation date less than or equal (UNIX epoch time)
Required range: x >= 0
created.sort
default: "asc"
string
Sort by creation date (asc/desc)
Available options:
ascdesc
Responses
application/jsonData contains the paginated notification items
created_at
string
date-time
required
Timestamp when the notification was created
Examples:
2025-01-01T12:00:00Z
Type of event that triggered this notification
Available options:
job.completedjob.failedjob.cancelledupload.completedupload.failedupload.expired
Unique identifier of the notification
Examples:
notf_2G6MJiNz71bHQGNzGwKx5cJwPFS
ID of the object that triggered this notification
Examples:
job_2G6MJiNz71bHQGNzGwKx5cJwPFS
JSON payload that was sent to the webhook endpoint
Examples:
{"event":"job.completed""job":{"id":"job_123"}}
Webhook endpoint configuration that received this notification
Whether the webhook is currently enabled
Array of event types this webhook subscribes to
Available options:
job.completedjob.failedjob.cancelledupload.completedupload.failedupload.expired
Examples:
[job.completed job.failed]
Unique identifier of the webhook
Examples:
wh_2G6MJiNz71bHQGNzGwKx5cJwPFS
ID of the project this webhook belongs to
Examples:
proj_2G6MJiNz71bHQGNzGwKx5cJwPFS
URL where webhook events will be sent
Examples:
https://example.com/webhook
response_status_code
integer
HTTP status code received from the webhook endpoint
Limit indicates the maximum number of items in the current response
Offset indicates the offset of the first item in the current response
status
"success"
string
required
Status indicates the response status "success"
Total indicates the total number of items
OK
application/jsonError response details
Code is the HTTP status code
Message is a human-readable error description
Examples:
Authentication error: invalid token or subscription inactive
type
"AuthenticationError"
string
required
Type indicates the error category
Available options:
AuthenticationError
status
"error"
string
required
Status indicates the response status "error"
Authentication error: invalid token or subscription inactive
application/jsonError response details
Code is the HTTP status code
Message is a human-readable error description
Examples:
Rate limit exceeded
type
"TooManyRequestsError"
string
required
Type indicates the error category
Available options:
TooManyRequestsError
status
"error"
string
required
Status indicates the response status "error"
Rate limit exceeded
# Get all notifications
> Retrieve a list of notifications with optional filtering and pagination
```json
{
"path": "/api/notifications",
"method": "get",
"schema": {
"description": "Retrieve a list of notifications with optional filtering and pagination",
"operationId": "listNotifications",
"parameters": [
{
"description": "Filter by object ID",
"in": "query",
"name": "object_id",
"schema": {
"type": "string"
}
},
{
"description": "Filter by webhook ID",
"in": "query",
"name": "webhook_id",
"schema": {
"type": "string"
}
},
{
"description": "Filter by events",
"in": "query",
"name": "events",
"schema": {
"items": {
"$ref": "#/components/schemas/WebhookEvent"
},
"type": "array"
}
},
{
"description": "Filter by exact response status code",
"in": "query",
"name": "response_status_code.eq",
"schema": {
"maximum": 599,
"minimum": 100,
"type": "integer"
}
},
{
"description": "Filter by response status code greater than or equal",
"in": "query",
"name": "response_status_code.gte",
"schema": {
"maximum": 599,
"minimum": 100,
"type": "integer"
}
},
{
"description": "Filter by response status code less than or equal",
"in": "query",
"name": "response_status_code.lte",
"schema": {
"maximum": 599,
"minimum": 100,
"type": "integer"
}
},
{
"description": "Pagination offset",
"in": "query",
"name": "offset",
"schema": {
"default": 0,
"minimum": 0,
"type": "integer"
}
},
{
"description": "Pagination limit (max 100)",
"in": "query",
"name": "limit",
"schema": {
"default": 100,
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
{
"description": "Filter by creation date greater than or equal (UNIX epoch time)",
"in": "query",
"name": "created.gte",
"schema": {
"examples": [
"1764238404"
],
"format": "epoch",
"minimum": 0,
"type": "integer"
}
},
{
"description": "Filter by creation date less than or equal (UNIX epoch time)",
"in": "query",
"name": "created.lte",
"schema": {
"examples": [
"1764238404"
],
"format": "epoch",
"minimum": 0,
"type": "integer"
}
},
{
"description": "Sort by creation date (asc/desc)",
"in": "query",
"name": "created.sort",
"schema": {
"default": "asc",
"enum": [
"asc",
"desc"
],
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotificationListResponse"
}
}
},
"description": "OK"
},
"401": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseErrorAuthentication"
}
}
},
"description": "Authentication error: invalid token or subscription inactive"
},
"429": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseErrorTooManyRequests"
}
}
},
"description": "Rate limit exceeded"
}
},
"security": [
{
"ProjectAccessToken": []
}
],
"summary": "Get all notifications",
"tags": [
"Notifications"
],
"x-codeSamples": [
{
"lang": "JavaScript",
"source": "import Chunkify from '@chunkify/chunkify';\n\nconst client = new Chunkify({\n projectAccessToken: 'My Project Access Token',\n});\n\n// Automatically fetches more pages as needed.\nfor await (const notification of client.notifications.list()) {\n console.log(notification.id);\n}"
},
{
"lang": "Python",
"source": "from chunkify import Chunkify\n\nclient = Chunkify(\n project_access_token=\"My Project Access Token\",\n)\n\n# Automatically fetches more pages as needed.\nfor notification in client.notifications.list():\n print(notification.id)"
},
{
"lang": "php",
"source": "\u003c?php\n\nuse Chunkify\\Client;\n\n$client = new Client(\n projectAccessToken: 'My Project Access Token',\n);\n\n// Automatically fetches more pages as needed.\nforeach ($client-\u003enotifications-\u003elist()-\u003epagingEachItem() as $notification) {\n var_dump($notification-\u003eid);\n}"
},
{
"lang": "Go",
"source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/chunkifydev/chunkify-go\"\n \"github.com/chunkifydev/chunkify-go/option\"\n)\n\nfunc main() {\n client := chunkify.NewClient(\n option.WithProjectAccessToken(\"My Project Access Token\"),\n )\n page, err := client.Notifications.List(\n context.TODO(),\n chunkify.NotificationListParams{},\n )\n if err != nil {\n panic(err.Error())\n }\n\n // Loop through the pages and print the notifications IDs\n for page != nil {\n for _, notification := range page.Data {\n fmt.Printf(\"%+v\\n\", notification.ID)\n }\n page, err = page.GetNextPage()\n if err != nil {\n panic(err.Error())\n }\n }\n}\n"
}
]
}
}
```
```json #/components/schemas/WebhookEvent
{
"enum": [
"job.completed",
"job.failed",
"job.cancelled",
"upload.completed",
"upload.failed",
"upload.expired"
],
"type": "string"
}
```
```json #/components/schemas/NotificationListResponse
{
"description": "Paginated response containing a list of notifications",
"properties": {
"data": {
"description": "Data contains the paginated notification items",
"items": {
"$ref": "#/components/schemas/Notification"
},
"type": "array"
},
"limit": {
"description": "Limit indicates the maximum number of items in the current response",
"type": "integer"
},
"offset": {
"description": "Offset indicates the offset of the first item in the current response",
"type": "integer"
},
"status": {
"const": "success",
"description": "Status indicates the response status \"success\"",
"type": "string"
},
"total": {
"description": "Total indicates the total number of items",
"type": "integer"
}
},
"required": [
"data",
"limit",
"offset",
"status",
"total"
],
"type": "object"
}
```
```json #/components/schemas/Notification
{
"properties": {
"created_at": {
"description": "Timestamp when the notification was created",
"examples": [
"2025-01-01T12:00:00Z"
],
"format": "date-time",
"type": "string"
},
"event": {
"$ref": "#/components/schemas/WebhookEvent",
"description": "Type of event that triggered this notification"
},
"id": {
"description": "Unique identifier of the notification",
"examples": [
"notf_2G6MJiNz71bHQGNzGwKx5cJwPFS"
],
"type": "string"
},
"object_id": {
"description": "ID of the object that triggered this notification",
"examples": [
"job_2G6MJiNz71bHQGNzGwKx5cJwPFS"
],
"type": "string"
},
"payload": {
"description": "JSON payload that was sent to the webhook endpoint",
"examples": [
"{\"event\":\"job.completed\",\"job\":{\"id\":\"job_123\"}}"
],
"type": "string"
},
"response_status_code": {
"description": "HTTP status code received from the webhook endpoint",
"examples": [
200
],
"type": "integer"
},
"webhook": {
"allOf": [
{
"$ref": "#/components/schemas/Webhook"
}
],
"description": "Webhook endpoint configuration that received this notification"
}
},
"required": [
"created_at",
"event",
"id",
"object_id",
"payload",
"webhook"
],
"type": "object"
}
```
```json #/components/schemas/WebhookEvent
{
"enum": [
"job.completed",
"job.failed",
"job.cancelled",
"upload.completed",
"upload.failed",
"upload.expired"
],
"type": "string"
}
```
```json #/components/schemas/Webhook
{
"properties": {
"enabled": {
"description": "Whether the webhook is currently enabled",
"examples": [
true
],
"type": "boolean"
},
"events": {
"description": "Array of event types this webhook subscribes to",
"examples": [
[
"job.completed",
"job.failed"
]
],
"items": {
"$ref": "#/components/schemas/WebhookEvent"
},
"type": "array"
},
"id": {
"description": "Unique identifier of the webhook",
"examples": [
"wh_2G6MJiNz71bHQGNzGwKx5cJwPFS"
],
"type": "string"
},
"project_id": {
"description": "ID of the project this webhook belongs to",
"examples": [
"proj_2G6MJiNz71bHQGNzGwKx5cJwPFS"
],
"type": "string"
},
"url": {
"description": "URL where webhook events will be sent",
"examples": [
"https://example.com/webhook"
],
"type": "string"
}
},
"required": [
"enabled",
"events",
"id",
"project_id",
"url"
],
"type": "object"
}
```
```json #/components/schemas/WebhookEvent
{
"enum": [
"job.completed",
"job.failed",
"job.cancelled",
"upload.completed",
"upload.failed",
"upload.expired"
],
"type": "string"
}
```
```json #/components/schemas/ResponseErrorAuthentication
{
"description": "Error response",
"properties": {
"error": {
"description": "Error response details",
"properties": {
"code": {
"const": 401,
"description": "Code is the HTTP status code",
"examples": [
401
],
"type": "integer"
},
"message": {
"description": "Message is a human-readable error description",
"examples": [
"Authentication error: invalid token or subscription inactive"
],
"type": "string"
},
"type": {
"const": "AuthenticationError",
"description": "Type indicates the error category",
"enum": [
"AuthenticationError"
],
"type": "string"
}
},
"required": [
"type",
"code",
"message"
],
"type": "object"
},
"status": {
"const": "error",
"description": "Status indicates the response status \"error\"",
"type": "string"
}
},
"required": [
"status",
"error"
],
"type": "object"
}
```
```json #/components/schemas/ResponseErrorTooManyRequests
{
"description": "Error response",
"properties": {
"error": {
"description": "Error response details",
"properties": {
"code": {
"const": 429,
"description": "Code is the HTTP status code",
"examples": [
429
],
"type": "integer"
},
"message": {
"description": "Message is a human-readable error description",
"examples": [
"Rate limit exceeded"
],
"type": "string"
},
"type": {
"const": "TooManyRequestsError",
"description": "Type indicates the error category",
"enum": [
"TooManyRequestsError"
],
"type": "string"
}
},
"required": [
"type",
"code",
"message"
],
"type": "object"
},
"status": {
"const": "error",
"description": "Status indicates the response status \"error\"",
"type": "string"
}
},
"required": [
"status",
"error"
],
"type": "object"
}
```