Skip to main content

Base URL

All API endpoints are versioned under /v1:
In production, replace with your deployed Pikarc API URL.

Authentication

Pikarc supports two authentication mechanisms:

API Key (SDK endpoints)

Used by the SDK for machine-to-machine communication. Pass the key as a Bearer token:
API key format: lg_<prefix>_<secret>
  • The prefix is used for fast database lookup
  • The secret is verified against a SHA256 hash
  • Keys are generated on registration and can be regenerated in the dashboard

JWT Token (Dashboard endpoints)

Used by the web dashboard. Obtained via the login endpoint:
JWT tokens expire after 24 hours by default.

Endpoint Auth Requirements

Error Responses

All errors return a JSON body with a detail field:

Status Codes

Plan-Gated 403 Errors

Some operations are restricted by plan tier. For example, enabling the kill switch on a Basic or Pro plan returns:
See Plan Tiers for which features are available on each plan.

Health Check

Returns 200 OK with the API status. No authentication required.