Skip to main content
GET
/
api
/
tasks
cURL
curl --request GET \
  --url https://recoup-api.vercel.app/api/tasks \
  --header 'Authorization: Bearer <token>'
{
  "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>"
    }
  ],
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

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)