Lumen Platform API
platform-v1OpenAPI v1The API an application built on Lumen uses, with an app key: the worker API its remote steps' workers call.
| מאפיין | ערך |
|---|---|
| Server | https://api.go-lumen.ai |
| Authentication | An app key issued to your application: Authorization: Bearer lak_<id>_<secret>. App keys (lak_) are separate from the workspace API keys (lmn_) of the Runtime API. |
| OpenAPI file | platform-v1.json |
| Operations | 5 |
Overview
The API an application built on Lumen uses, authenticated by a key of its AppClient (Authorization: Bearer lak_<id>_<secret>).
Worker API (/worker/v1): an app's own workers pull the tasks of its remote steps (ClusterStep executor.remote.app) from the region the workspace lives in. A worker claims tasks, heartbeats them every lease/3, uploads any files through artifacts:presign, and completes or fails each attempt. An attempt it no longer holds (its lease ran out and the task was claimed again, or it finished) answers 409, and the worker must stop working on it. The task idempotencyKey is stable across attempts: key side effects on it.
Errors are a Status object (code, reason, message).
Operations
| Method | Path | Operation |
|---|---|---|
| POST | /worker/v1/artifacts:presign | Sign an upload of one artifact of a held attempt |
| POST | /worker/v1/claims | Claim tasks of the app's remote steps |
| POST | /worker/v1/heartbeats | Extend the leases of held tasks |
| POST | /worker/v1/tasks/{taskId}/attempts/{attempt}:complete | Complete a held attempt |
| POST | /worker/v1/tasks/{taskId}/attempts/{attempt}:fail | Fail a held attempt |
Request and response bodies below are described by the schemas in Schemas; the example bodies are built from those schemas.