GET
/
v1
/
businesses
/
{businessId}
/
tasks
/
{taskId}
curl --request GET \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/tasks/{taskId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "user_response_type": "FREE_RESPONSE",
  "title": "This is a demo task",
  "question": "On Wednesday, you spent $290.99 on example items. What was this purchase for?",
  "user_response": "This is my response to the task.",
  "status": "COMPLETED",
  "transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "user_marked_completed_at": "2023-11-07T05:31:56Z",
  "completed_at": "2023-11-07T05:31:56Z",
  "archived_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Example:

"This is a demo task"

question
string
required

The question asked to the business owner

Example:

"On Wednesday, you spent $290.99 on example items. What was this purchase for?"

status
enum<string>
required

The status of the task

Available options:
TODO,
USER_MARKED_COMPLETED,
COMPLETED,
ARCHIVED,
DELETED
created_at
string
required

Timestamp of when the task was created

updated_at
string
required

Timestamp of when the task was last updated

user_response
string | null

The business owner's response to the task

Example:

"This is my response to the task."

transaction_id
string | null

The transaction the task is related to, if any.

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.