Skip to main content
GET
/
prompts
/
status
Poll the status of a run
curl --request GET \
  --url https://openlens.com/api/prompts/status \
  --header 'Authorization: Bearer <token>'
{
  "runId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "totalTasks": 123,
  "completedTasks": 123,
  "failedTasks": 123,
  "pendingTasks": 123,
  "cancelledTasks": 123,
  "incompleteTasks": 123,
  "scraperAttempted": true,
  "scraperSucceeded": true,
  "startedAt": "2023-11-07T05:31:56Z",
  "completedAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.openlens.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Clerk API key. Create one from your account settings under API Keys.

Query Parameters

projectId
string<uuid>
required

Project id. Required on all data endpoints.

runId
string<uuid>

Response

Successful response

runId
string<uuid>
status
enum<string>

cancelled is reported by /prompts/status when a failed run had cancelRequested = true. none only appears when no run exists for the project.

Available options:
running,
completed,
failed,
interrupted,
cancelled,
none
totalTasks
integer
completedTasks
integer
failedTasks
integer
pendingTasks
integer
cancelledTasks
integer
incompleteTasks
integer
scraperAttempted
boolean
scraperSucceeded
boolean
startedAt
string<date-time> | null
completedAt
string<date-time> | null