Bearer
or Token authentication.
To start, ensure that you’re in Test Mode and generate an API key for testing by going to the Orb webapp > Organization Settings > Create new API key.
Even though you haven’t set up any customers in Orb just yet, we can still start
sending in some events.
Events in Orb must be tagged with a timestamp, so let’s first get the current
time as an ISO 8601 string. In your terminal, run:
2023-02-20T00:00:00Z
, which is an ISO formatted current timestamp. Copy this value so we can use it in the next step.
Paste the following cURL command into your terminal, replacing the <TOKEN>
with your copied API token and <TIMESTAMP>
with the timestamp you just generated.
idempotency_key
(for deduplication), a customer identifier (for attribution), and a timestamp (to assign the event to an appropriate billing period).