Tasks

Returns the organization's persisted daily tasks.

The response includes per-status counts that are not narrowed by the status filter. Each task includes an execution_prompt with the context an AI agent needs to execute it. If action_date is omitted, the response spans all generation dates. This endpoint does not generate a new batch.

get/v1/tasks

Request

  • Base URL
    https://api.lightsage.com
  • Auth
    API key in header X-Lightsage-Api-Key

Query parameters

action_datestring date

The queue date to read in YYYY-MM-DD format. Omit it to include all generation dates.

status'active' | 'todo' | 'new' | 'in_progress' | 'completed' | 'done' | 'dismissed' | 'all'

The queue slice to return. active includes new and in_progress; only all includes added_to_sheet and snoozed tasks.

Response

Successful Response

action_datestring required

The requested action date. It defaults to today in UTC even when data spans every date.

status'active' | 'todo' | 'new' | 'in_progress' | 'completed' | 'done' | 'dismissed' | 'all' required

The requested queue slice; this value is not itself a task status.

batch_numberinteger nullable
latest_batch_numberinteger
countinteger required
active_countinteger
in_progress_countinteger
completed_countinteger
done_countinteger
dismissed_countinteger
history_countinteger
has_historyboolean
can_fetch_next_batchboolean
generated_atstring nullable

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status