Skip to main content
GET
/
api
/
tasks
cURL
curl --request GET \
  --url https://recoup-api.vercel.app/api/tasks
{
  "status": "success",
  "tasks": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "title": "<string>",
      "prompt": "<string>",
      "schedule": "<string>",
      "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "artist_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "enabled": true,
      "trigger_schedule_id": "<string>",
      "recent_runs": [
        {
          "id": "<string>",
          "status": "PENDING_VERSION",
          "taskIdentifier": "<string>",
          "createdAt": "2023-11-07T05:31:56Z",
          "updatedAt": "2023-11-07T05:31:56Z",
          "idempotencyKey": "<string>",
          "version": "<string>",
          "isTest": true,
          "startedAt": "2023-11-07T05:31:56Z",
          "finishedAt": "2023-11-07T05:31:56Z",
          "delayedUntil": "2023-11-07T05:31:56Z",
          "ttl": "<unknown>",
          "expiredAt": "2023-11-07T05:31:56Z",
          "tags": [
            "<string>"
          ],
          "metadata": {},
          "costInCents": 123,
          "baseCostInCents": 123,
          "durationMs": 123,
          "env": {
            "id": "<string>",
            "name": "<string>",
            "user": "<string>"
          },
          "depth": 123,
          "batchId": "<string>",
          "triggerFunction": "trigger",
          "payload": "<unknown>",
          "output": "<unknown>",
          "error": {
            "message": "<string>",
            "name": "<string>",
            "stackTrace": "<string>"
          },
          "attempts": [
            {
              "id": "<string>",
              "status": "PENDING",
              "createdAt": "2023-11-07T05:31:56Z",
              "updatedAt": "2023-11-07T05:31:56Z",
              "startedAt": "2023-11-07T05:31:56Z",
              "completedAt": "2023-11-07T05:31:56Z",
              "error": {
                "message": "<string>",
                "name": "<string>",
                "stackTrace": "<string>"
              }
            }
          ],
          "schedule": {},
          "relatedRuns": {}
        }
      ],
      "upcoming": [
        "2023-11-07T05:31:56Z"
      ],
      "owner_email": "<string>",
      "model": "<string>"
    }
  ],
  "error": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://developers.recoupable.com/llms.txt

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

Query Parameters

id
string<uuid>

Filter by task ID (UUID). Returns a single task matching the provided ID.

account_id
string<uuid>

Filter tasks to only include those for the specified account.

artist_account_id
string<uuid>

Filter tasks to only include those for the specified artist account.

Response

Tasks retrieved successfully

status
enum<string>
required

Status of the request

Available options:
success,
error
tasks
object[]
required

Array of task objects

error
string

Error message (only present if status is error)