POST /v1/keysCreate API key
Platform platform (cross-worker)
Gives you a key that lets your code use the API. Generate a free-tier API key. Returns the raw key once — must be saved immediately. The key is stored as a SHA-256 hash.
Request Body
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
tier | string | No | Only 'free' can be created |
Response Schema
success (boolean): Operation success
key (string): Raw API key (lf_...)
tier (string): Key tier
message (string): Friendly message
cURL Example
curl -X POST 'https://laminarforge.dev/v1/keys' -H 'Content-Type: application/json' -d '{"tier":"free"}'Python Example
import requests
url = 'https://laminarforge.dev/v1/keys'
data = {'tier': 'free'}
response = requests.post(url, json=data)
key = response.json()['key']
print(f'Save this key immediately: {key}')