GET
/
v1
/
businesses
/
{businessId}
/
tasks
/
{taskId}

Authorizations

Authorization
string
headerrequired

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

Headers

Content-Type
string

Content-Type must be set to application/json

Path Parameters

businessId
string
required

The UUID of the business to fetch tasks for

taskId
string
required

The UUID of the task to fetch

Response

200 - application/json
id
string
required

Unique ID for the task

user_response_type
enum<string>
required

User response type for the task

Available options:
FREE_RESPONSE,
UPLOAD_DOCUMENT
title
string
required

Title for the task

question
string
required

The question asked to the business owner

user_response
string | null

The business owner's response to the task

status
enum<string>
required

The status of the task

Available options:
TODO,
USER_MARKED_COMPLETED,
COMPLETED,
ARCHIVED,
DELETED
transaction_id
string | null

The transaction the task is related to, if any.

created_at
string
required

Timestamp of when the task was created

updated_at
string
required

Timestamp of when the task was last updated

user_marked_completed_at
string | null

Timestamp of when the business owner marked the task as completed.

completed_at
string | null

Timestamp of when Layer marked the task as completed.

archived_at
string | null

Timestamp of when the task was archived.