Skip to main content
A license represents an organization’s credential within PitPath Chrono. Each license has a unique key and an optional expiry date. When you create a license, the response also includes a bootstrapped API key so you can immediately authenticate subsequent requests. Rigs and API keys are always scoped to a single license.

POST /api/v1/licenses

Create a new license for an organization. The response contains both the full license record and a newly-generated API key — this is the only time the full API key token is returned. Required role: ADMIN
string
required
Internal identifier for the license. Must be 3–120 characters and must not be blank.
string
required
Human-readable label shown in the UI and included in associated resource responses. Must be 3–120 characters.
object
required
The newly created license record.
object
required
A bootstrapped API key for the new license. The full token is only present in this response.

GET /api/v1/licenses

Return all licenses registered in the system. You must hold a role that permits license management to call this endpoint. Required role: ADMIN
The response is an array of license objects. Each item has the same shape as the license object described in the POST response above.

GET /api/v1/licenses/current

Return the license associated with the API key used in the request. Any authenticated user can call this endpoint regardless of role. Required role: Any authenticated user
string (UUID)
required
Unique identifier for the license.
string
required
Internal identifier for the license.
string
required
Human-readable display name.
string
required
Opaque license key used to identify the organization.
boolean
required
Whether this license is currently active.
string (ISO 8601)
Expiry timestamp. null if the license does not expire.
string (ISO 8601)
Timestamp of the most recent authenticated request made under this license.
string (ISO 8601)
required
Timestamp when the license was created.
string (ISO 8601)
required
Timestamp of the most recent update.

POST /api/v1/licenses//file

Issue a signed license file for a specific license. License files are used by timing rigs to self-register via POST /api/v1/rigs. You must own or be authorized to act on the specified license. Required role: License owner or ADMIN
string (UUID)
required
The UUID of the license for which you want to generate a signed file.
string (UUID)
required
The license this file was issued for.
string
required
The license key embedded in the signed file.
string (ISO 8601)
required
Timestamp when the file was issued.
string
required
Cryptographic signature verifying the authenticity of this license file. Pass the entire object as licenseFile when registering a rig.