v1 API contract

One source of truth for authentication, scopes, rate limits, errors and pricing. Version 2026-08-01. Machine-readable at https://lucidry.base44.app/functions/serveOpenApiSpec.

Authentication

Send Authorization: Bearer lucid_live_…. Alternatively use the X-Api-Key header.

  • Keys are shown once at creation and stored only as a SHA-256 hash, Lucidry cannot recover a lost key.
  • Revoking a key takes effect on the next request; existing jobs keep running.
  • Sandbox keys (sbx_) are never accepted on the production surface.

Scopes

ScopeGrants
jobs:read
Read jobs
List and read jobs, sources, estimates, profiles and drift reports.
jobs:write
Create and cancel jobs
Create refinement and translation jobs, register sources, cancel jobs. Implies jobs:read.
artifacts:read
Download artifacts
Read artifact metadata and mint short-lived signed download URLs.
billing:read
Read billing usage
Read the organization credit position and the masked usage ledger.
wallet:read
Read wallet
Read the wallet balance, receipts and the per-principal usage summary.
webhooks:write
Manage webhooks
Register, list and delete webhook endpoints. Signing secrets are returned once, on create.
admin
Administer the account
Everything above, plus account-level configuration. Issue sparingly.
*
Unrestricted (legacy)
Every scope. The default for keys created before scopes existed.

Rate limits

Two windows are enforced per credential. A breach returns RATE_LIMITED with a Retry-After header.

standard
Sustained
60/min
Burst
20 / 10s
Retry-After
60s
high
Sustained
300/min
Burst
60 / 10s
Retry-After
20s
unlimited
Sustained
unmetered
Burst
unmetered
Retry-After
0s

Errors

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "target_language is required",
    "request_id": "req_…",
    "details": []
  }
}
CodeHTTPMeaning
UNAUTHORIZED401
FORBIDDEN403
NOT_FOUND404
VALIDATION_ERROR422
BAD_REQUEST400
JOB_INSTRUCTIONS_TOO_LONG400
JOB_NAME_TOO_LONG422
JOB_NAME_REQUIRED422
INVALID_TRANSFORM_PROFILE422
SOURCE_MALWARE_DETECTED422
PAYMENT_REQUIRED402
FREE_TIER_CAP_EXCEEDED402
WALLET_INSUFFICIENT_FUNDS402
RATE_LIMITED429
ACCOUNT_FLAGGED423
LLM_GATEWAY_FAILED502
STAGE_TIMED_OUT504
PROVIDER_UNAVAILABLE502
OUTPUT_TRUNCATED422
INTERNAL_ERROR500

Endpoints

EndpointScopePurpose
GET /health-Service health
POST /translatejobs:writeTranslate text
POST /jobsjobs:writeCreate a refinement job
GET /jobsjobs:readList jobs
GET /jobs/{job_id}jobs:readGet a job
POST /jobs/{job_id}/canceljobs:writeCancel a job
POST /sourcesjobs:writeRegister a source asset
GET /sourcesjobs:readList source assets
GET /sources/{source_id}jobs:readGet a source asset
GET /artifacts/{artifact_id}artifacts:readGet an artifact
POST /estimatesjobs:readEstimate a job price
GET /profilesjobs:readList transform profiles
GET /usagebilling:readUsage history
GET /webhookswebhooks:writeList webhook endpoints
POST /webhookswebhooks:writeCreate a webhook endpoint
DELETE /webhookswebhooks:writeDelete a webhook endpoint
GET /translation/profilesjobs:readList translation profiles
GET /translation/glossariesjobs:readList glossaries
GET /translation/drift-reportjobs:readGet a drift report