Skip to main content
This guide walks you through the minimum steps to go from zero to a recorded lap time. You will list events to confirm your key works, register a rig with its hardware ID, and then post a lap against that rig. All requests go to the base path /api/v1/ and require the X-API-Key header. See Authentication for details on roles and key management.
1

Obtain your license and API key

Contact the PitPath team to provision a license for your organization. When your license is created, Chrono returns a bootstrap response containing your license details and an initial ADMIN API key — store the token value immediately, as it is only returned once.
Example bootstrap response
The token field is the raw API key value. Save it to a secure secrets store. Chrono stores only a hashed version and cannot recover the plain-text token after this response.
2

Make your first API call — list events

Confirm your key works by listing all enabled events. A CR role or higher is sufficient for this read operation.
curl
A successful response returns an array of event objects. An empty array [] means no events have been created yet — that is expected on a fresh license.
Example response
3

Register a rig

A rig represents a physical sim racing setup. To register one, you provide its hardwareId (a unique identifier for the machine) and a signed license file issued by the PitPath team for your license.First, request a license file for your license ID by calling:
curl
That returns an object with licenseId, licenseKey, issuedAt, and signature — pass those four fields as the licenseFile object when creating the rig:
curl
The response includes the new rig and an auto-generated API key scoped to that rig:
Example response
Use the rig’s auto-generated API key on the sim rig itself. Its CR role lets it submit laps without granting access to administrative operations.
4

Record your first lap time

With an event, a participant, a rig, a car, and a track in place, you can submit a lap. Sector times are in milliseconds and must sum to totalTime.
curl
A 201 Created response confirms the lap is recorded:
Example response

Next steps

  • Read Authentication to understand roles and how to create additional API keys with the right permissions.
  • Browse the API reference for every available endpoint.
  • Check Licenses and rigs for a deeper explanation of how your license scopes data.