Skip to main content
POST
/
events
/
batch
JavaScript
import Limitry from '@limitry/sdk';

const client = new Limitry({
  apiKey: process.env['LIMITRY_API_KEY'], // This is the default and can be omitted
});

const response = await client.events.batchIngest({ events: [{ customerId: 'x', eventType: 'x' }] });

console.log(response.count);
{
  "count": 123
}

Authorizations

Authorization
string
header
required

API Key or Personal Access Token (PAT). When using PAT, include X-Project header.

Body

application/json
events
object[]
required

Array of events to ingest (max 1000)

Maximum array length: 1000

Response

Events ingested

count
number
required

Number of events successfully ingested