POST
/
v1
/
events
/
ingest
import { Polar } from "@polar-sh/sdk";

const polar = new Polar({
  accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
});

async function run() {
  const result = await polar.events.ingest({
    events: [],
  });

  // Handle the result
  console.log(result);
}

run();
{
  "inserted": 123
}

Authorizations

Authorization
string
header
required

You can generate an Organization Access Token from your organization's settings.

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.