> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.etera.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.etera.dev/_mcp/server.

# Get push notification tracking

GET https://api.etera.dev/notification/tracking/push


Get push notification tracking records with filtering and pagination.

**Query Parameters:**
- **userId**: Filter by user ID (optional, defaults to authenticated user)
- **status**: Filter by notification status
- **startDate**: Filter notifications created after this date
- **endDate**: Filter notifications created before this date
- **limit**: Number of records to return (1-100, default: 50)
- **offset**: Number of records to skip (default: 0)
- **sortBy**: Sort field (created_at, sent_at, status)
- **sortOrder**: Sort direction (asc, desc)

**Use Cases:**
- Push notification delivery tracking
- User notification history
- Analytics and reporting
- Debugging push notification issues
        

Reference: https://docs.etera.dev/platform/notifications/notification-api/notification-tracking/get-tracking-push

## Authentication

- `Authorization` header (bearer token, required) — JWT token for authentication. Use 'test-jwt-token' for development.

## Servers

- `https://api.etera.dev/notification` (Production, default)
- `https://api-stage.etera.dev/notification` (Staging)
- `https://api-dev.etera.dev/notification` (Development)

## Request

### Query parameters

- `userId` (string, optional)
- `status` (TrackingPushGetParametersStatus, optional)
- `startDate` (datetime, optional)
- `endDate` (datetime, optional)
- `limit` (double, optional)
- `offset` (double, optional)
- `sortBy` (TrackingPushGetParametersSortBy, optional)
- `sortOrder` (TrackingPushGetParametersSortOrder, optional)

## Response

### 200

- `success` (boolean, required)
- `data` (list of TrackingPushGetResponsesContentApplicationJsonSchemaDataItems, optional)
- `error` (TrackingPushGetResponsesContentApplicationJsonSchemaError, optional)

## Types

### TrackingPushGetParametersStatus

- "pending"
- "sent"
- "delivered"
- "opened"
- "failed"
- "invalid_token"

### TrackingPushGetParametersSortBy

- "created_at"
- "sent_at"
- "status"

### TrackingPushGetParametersSortOrder

- "asc"
- "desc"

### TrackingPushGetResponsesContentApplicationJsonSchemaDataItems

- `id` (string, required)
- `userId` (string, required)
- `messageId` (string, required, nullable)
- `deviceToken` (string, required, nullable)
- `topic` (string, required, nullable)
- `title` (string, required)
- `body` (string, required)
- `status` (TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsStatus, required)
- `platform` (TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsPlatform, required)
- `notificationType` (TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsNotificationType, required)
- `data` (TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsData, required, nullable)
- `imageUrl` (string, required, nullable)
- `actionUrl` (string, required, nullable)
- `priority` (TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsPriority, required)
- `ttl` (double, required, nullable)
- `collapseKey` (string, required, nullable)
- `errorMessage` (string, required, nullable)
- `retryCount` (double, required)
- `maxRetries` (double, required)
- `scheduledFor` (TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsScheduledFor, required, nullable)
- `sentAt` (TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsSentAt, required, nullable)
- `deliveredAt` (TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsDeliveredAt, required, nullable)
- `openedAt` (TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsOpenedAt, required, nullable)
- `clickedAt` (TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsClickedAt, required, nullable)
- `failedAt` (TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsFailedAt, required, nullable)
- `createdAt` (TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsCreatedAt, required)
- `updatedAt` (TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsUpdatedAt, required)

### TrackingPushGetResponsesContentApplicationJsonSchemaError

- `message` (string, required)
- `code` (string, optional)
- `details` (any, optional)

### TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsStatus

- "pending"
- "sent"
- "delivered"
- "opened"
- "failed"
- "invalid_token"

### TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsPlatform

- "ios"
- "android"
- "web"
- "unknown"

### TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsNotificationType

- "direct"
- "topic"
- "bulk"

### TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsData

### TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsPriority

- "high"
- "normal"
- "low"

### TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsScheduledFor

- any
- datetime
- date
- double

### TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsSentAt

- any
- datetime
- date
- double

### TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsDeliveredAt

- any
- datetime
- date
- double

### TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsOpenedAt

- any
- datetime
- date
- double

### TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsClickedAt

- any
- datetime
- date
- double

### TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsFailedAt

- any
- datetime
- date
- double

### TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsCreatedAt

- any
- datetime
- date
- double

### TrackingPushGetResponsesContentApplicationJsonSchemaDataItemsUpdatedAt

- any
- datetime
- date
- double

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "success": true,
  "data": [
    {
      "id": "notif_123e4567-e89b-12d3-a456-426614174000",
      "userId": "user_987654321",
      "messageId": "msg_abc123def456",
      "deviceToken": "dTk_1a2b3c4d5e6f7g8h9i0j",
      "topic": null,
      "title": "Welcome to Etera!",
      "body": "Thank you for joining Etera. Get started by exploring your dashboard.",
      "status": "delivered",
      "platform": "ios",
      "notificationType": "direct",
      "data": {
        "screen": "dashboard",
        "promoCode": "WELCOME10"
      },
      "imageUrl": "https://cdn.etera.dev/images/welcome-banner.png",
      "actionUrl": "https://app.etera.dev/dashboard",
      "priority": "high",
      "ttl": 3600,
      "collapseKey": "welcome_notifications",
      "errorMessage": null,
      "retryCount": 0,
      "maxRetries": 3,
      "scheduledFor": null,
      "sentAt": "2024-05-10T14:22:30Z",
      "deliveredAt": "2024-05-10T14:22:45Z",
      "openedAt": "2024-05-10T14:25:00Z",
      "clickedAt": "2024-05-10T14:25:10Z",
      "failedAt": null,
      "createdAt": "2024-05-10T14:20:00Z",
      "updatedAt": "2024-05-10T14:25:10Z"
    }
  ],
  "error": null
}
```

**SDK Code**

```python
import requests

url = "https://api.etera.dev/notification/tracking/push"

querystring = {"userId":"user_987654321","status":"delivered","startDate":"2024-05-01T00:00:00Z","endDate":"2024-05-15T23:59:59Z","limit":"25","offset":"0","sortBy":"sent_at","sortOrder":"desc"}

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.get(url, json=payload, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://api.etera.dev/notification/tracking/push?userId=user_987654321&status=delivered&startDate=2024-05-01T00%3A00%3A00Z&endDate=2024-05-15T23%3A59%3A59Z&limit=25&offset=0&sortBy=sent_at&sortOrder=desc';
const options = {
  method: 'GET',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.etera.dev/notification/tracking/push?userId=user_987654321&status=delivered&startDate=2024-05-01T00%3A00%3A00Z&endDate=2024-05-15T23%3A59%3A59Z&limit=25&offset=0&sortBy=sent_at&sortOrder=desc"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("GET", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.etera.dev/notification/tracking/push?userId=user_987654321&status=delivered&startDate=2024-05-01T00%3A00%3A00Z&endDate=2024-05-15T23%3A59%3A59Z&limit=25&offset=0&sortBy=sent_at&sortOrder=desc")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.etera.dev/notification/tracking/push?userId=user_987654321&status=delivered&startDate=2024-05-01T00%3A00%3A00Z&endDate=2024-05-15T23%3A59%3A59Z&limit=25&offset=0&sortBy=sent_at&sortOrder=desc")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.etera.dev/notification/tracking/push?userId=user_987654321&status=delivered&startDate=2024-05-01T00%3A00%3A00Z&endDate=2024-05-15T23%3A59%3A59Z&limit=25&offset=0&sortBy=sent_at&sortOrder=desc', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.etera.dev/notification/tracking/push?userId=user_987654321&status=delivered&startDate=2024-05-01T00%3A00%3A00Z&endDate=2024-05-15T23%3A59%3A59Z&limit=25&offset=0&sortBy=sent_at&sortOrder=desc");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.etera.dev/notification/tracking/push?userId=user_987654321&status=delivered&startDate=2024-05-01T00%3A00%3A00Z&endDate=2024-05-15T23%3A59%3A59Z&limit=25&offset=0&sortBy=sent_at&sortOrder=desc")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```