Data API

Use the Data API to access progammaticaly access your Runs, and more coming soon.

Base URL

https://api.lunary.ai/v1

Authentication

You'll need to authenticate your requests to access any of the endpoints in the data API.

To obtain your API key, visit the Settings Page.

The API key can be passed in the Authorization header as a Bearer token.

Some endpoints, such as the ingestion endpoint, can be accessed with the public key.

Sample request

curl --get 'https://api.lunary.ai/v1/runs' \
-H "Authorization: Bearer api_key" \
-d "limit=10" \
-d "page=0" \
-d "order=asc" \
-d "type=llm"

Rate Limiting

The API employs a sliding window rate limiter. The current rate limit for this endpoint is set at 30 requests per second.

Questions? We're here to help.