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

# Get all events

GET https://usage-events.prod.api.tabsplatform.com/v1/events

Fetches all usage events, and can be filtered as needed. This endpoint is rate-limited to 600 requests per minute per merchant.

Reference: https://docs.tabs.com/api-reference/events/getAllEvents

## Authentication

- `Authorization` header (required) — API Key authentication via header

## Request

### Query parameters

- `startDate` (string, optional) — Start date for filtering events (UTC) (format: YYYY-MM-DDTHH:mm:ss)
- `endDate` (string, optional) — End date for filtering events (UTC) (format: YYYY-MM-DDTHH:mm:ss)
- `ingestStartDate` (string, optional) — Start ingest timestamp for filtering events (UTC) (format: YYYY-MM-DDTHH:mm:ss)
- `ingestEndDate` (string, optional) — End ingest timestamp for filtering events (UTC) (format: YYYY-MM-DDTHH:mm:ss)
- `customerId` (string, optional) — Tabs Customer ID to filter events
- `eventTypeId` (string, optional) — Event type ID to filter events
- `source` (string, optional) — Source to filter events
- `limit` (integer, optional) — Number of events to return (default: 50, max: 1000)
- `cursor` (string, optional) — Cursor for pagination
- `orderDirection` (string, optional) — Sort direction (asc/desc)
- `skipDeletionEvents` (boolean, optional, default: true) — Include deleted events in the response (default: true)
- `idempotencyKeys` (list of string, optional) — Idempotency key(s) to filter events.

## Response

### 200

Events retrieved successfully

- `events` (list of EventDto, optional) — List of events
- `count` (integer, optional) — Total count of events
- `nextCursor` (string, optional) — Cursor for the next page of results
- `hasMore` (boolean, optional) — Whether there are more results available

## Errors

### 400 Bad Request Error

Bad request - Invalid parameters

- `success` (boolean, optional) — Indicates if the operation was successful
- `message` (string, optional) — Human-readable error message
- `error` (ErrorDetail, optional) — Detailed error information

### 429 Too Many Requests Error

Too Many Requests - Rate limit exceeded

- `statusCode` (integer, optional) — HTTP status code
- `message` (string, optional) — Error message
- `timestamp` (string, optional) — Timestamp when the error occurred
- `path` (string, optional) — Request path
- `method` (string, optional) — HTTP method
- `retryAfter` (integer, optional) — Number of seconds to wait before retrying

### 500 Internal Server Error

Internal server error - Failed to retrieve events

- `success` (boolean, optional) — Indicates if the operation was successful
- `message` (string, optional) — Human-readable error message
- `error` (ErrorDetail, optional) — Detailed error information

## Types

### EventDto

Event data transfer object

- `manufacturerId` (string, optional)
- `eventTypeId` (string, optional)
- `metadata` (map from string to EventDtoMetadata, optional)
- `value` (string, optional)
- `differentiator` (string, optional)
- `invoiceGroup` (string, optional)
- `idempotencyKey` (string, optional)
- `datetime` (string, optional)
- `customerId` (string, optional)
- `parentEventId` (string, optional)
- `source` (string, optional)
- `deleted` (boolean, optional) — Whether the event is deleted

### ErrorDetail

Detailed error information

- `code` (integer, optional) — Error code
- `message` (string, optional) — Error message
- `details` (map from string to list of string, optional) — Map of field names to array of error messages

### EventDtoMetadata

## Examples

**Response**

```json
{
  "events": [
    {
      "eventTypeId": "550e8400-e29b-41d4-a716-446655440000",
      "value": "1",
      "differentiator": "mobile",
      "idempotencyKey": "018c1234-5678-7abc-def0-123456789abc",
      "datetime": "2024-01-15T10:30:00Z",
      "customerId": "550e8400-e29b-41d4-a716-446655440000",
      "deleted": false,
      "invoiceSplitKey": "invoice-123"
    }
  ],
  "count": 100,
  "nextCursor": "next-page-cursor",
  "hasMore": true
}
```

**SDK Code**

```python Success Response
import requests

url = "https://usage-events.prod.api.tabsplatform.com/v1/events"

headers = {"Authorization": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Success Response
const url = 'https://usage-events.prod.api.tabsplatform.com/v1/events';
const options = {method: 'GET', headers: {Authorization: '<apiKey>'}};

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

```go Success Response
package main

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

func main() {

	url := "https://usage-events.prod.api.tabsplatform.com/v1/events"

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

	req.Header.Add("Authorization", "<apiKey>")

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

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

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

}
```

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

url = URI("https://usage-events.prod.api.tabsplatform.com/v1/events")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<apiKey>'

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

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

HttpResponse<String> response = Unirest.get("https://usage-events.prod.api.tabsplatform.com/v1/events")
  .header("Authorization", "<apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://usage-events.prod.api.tabsplatform.com/v1/events', [
  'headers' => [
    'Authorization' => '<apiKey>',
  ],
]);

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

```csharp Success Response
using RestSharp;

var client = new RestClient("https://usage-events.prod.api.tabsplatform.com/v1/events");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Success Response
import Foundation

let headers = ["Authorization": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://usage-events.prod.api.tabsplatform.com/v1/events")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
```