For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tasks

List Tasks

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
pageinteger · int32 · min: 1Optional

Page number to fetch, 1-indexed. Defaults to 1.

perPageinteger · int32 · min: 1 · max: 100Optional

Number of results per page (1-100). Defaults to the API's standard page size if omitted.

querystringOptional

Lucene-style filter query (e.g. status:active AND createdAt:[2024-01-01 TO *]). Field names match the Task object's own fields. This syntax is part of an in-flight migration (see docs/design/lucene-migration-json-filter-spec.md) and may change.

sortstringOptional

Field name to sort by - any top-level field of the Task object returned by this endpoint. Defaults to the API's natural order if omitted.

sortDirstring · enumOptional

Sort direction: asc or desc. Only takes effect when sort is set.

Possible values:
Responses
200

List of tasks

application/json
totalRowsnumberOptional
pagenumberOptional
perPagenumberOptional
get/tasks
GET /v2/tasks HTTP/1.1
Host: openapi.paintscout.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "totalRows": 1,
  "page": 1,
  "perPage": 1,
  "rows": [
    {
      "title": "Make the call",
      "dealId": "abcd1234-abcd-1234-abcd-abcd1234abcd",
      "notes": "Call the client to see how everything is going.",
      "owner": {
        "id": "ownerid1234",
        "firstName": "John",
        "lastName": "Doe",
        "email": "johndoefake@fakemail.com"
      },
      "timestamp": {
        "start": 1672531200
      }
    }
  ]
}

Create Task

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
idstringOptional

The ID of the Task. Ignored when creating & updating tasks.

titlestringOptional

The title of the Task.

dealIdstringOptional

The deal ID this task is associated with

notesstring · nullableOptional

A note about this task

completedboolean · nullableOptional

Whether the task has been completed

Responses
200

Details about the new Task

application/json
idstringOptional

The ID of the Task. Ignored when creating & updating tasks.

titlestringOptional

The title of the Task.

dealIdstringOptional

The deal ID this task is associated with

notesstring · nullableOptional

A note about this task

completedboolean · nullableOptional

Whether the task has been completed

post/tasks
POST /v2/tasks HTTP/1.1
Host: openapi.paintscout.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 264

{
  "title": "Make the call",
  "dealId": "abcd1234-abcd-1234-abcd-abcd1234abcd",
  "notes": "Call the client to see how everything is going.",
  "owner": {
    "id": "ownerid1234",
    "firstName": "John",
    "lastName": "Doe",
    "email": "johndoefake@fakemail.com"
  },
  "timestamp": {
    "start": 1672531200
  }
}
{
  "title": "Make the call",
  "dealId": "abcd1234-abcd-1234-abcd-abcd1234abcd",
  "notes": "Call the client to see how everything is going.",
  "owner": {
    "id": "ownerid1234",
    "firstName": "John",
    "lastName": "Doe",
    "email": "johndoefake@fakemail.com"
  },
  "timestamp": {
    "start": 1672531200
  }
}

Retrieve Task

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

ID of the Task

Responses
200

Details about the task

application/json
idstringOptional

The ID of the Task. Ignored when creating & updating tasks.

titlestringOptional

The title of the Task.

dealIdstringOptional

The deal ID this task is associated with

notesstring · nullableOptional

A note about this task

completedboolean · nullableOptional

Whether the task has been completed

get/tasks/{id}
GET /v2/tasks/{id} HTTP/1.1
Host: openapi.paintscout.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "title": "Make the call",
  "dealId": "abcd1234-abcd-1234-abcd-abcd1234abcd",
  "notes": "Call the client to see how everything is going.",
  "owner": {
    "id": "ownerid1234",
    "firstName": "John",
    "lastName": "Doe",
    "email": "johndoefake@fakemail.com"
  },
  "timestamp": {
    "start": 1672531200
  }
}

Update Task

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

ID of the Task

Body
titlestringOptional

The title of the Task.

dealIdstringRequired

The deal ID this task is associated with

notesstring · nullableOptional

A note about this task

completedboolean · nullableOptional

Whether the task has been completed

Responses
200

The updated task

application/json
idstringOptional

The ID of the Task. Ignored when creating & updating tasks.

titlestringOptional

The title of the Task.

dealIdstringOptional

The deal ID this task is associated with

notesstring · nullableOptional

A note about this task

completedboolean · nullableOptional

Whether the task has been completed

put/tasks/{id}
PUT /v2/tasks/{id} HTTP/1.1
Host: openapi.paintscout.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 264

{
  "title": "Make the call",
  "dealId": "abcd1234-abcd-1234-abcd-abcd1234abcd",
  "notes": "Call the client to see how everything is going.",
  "owner": {
    "id": "ownerid1234",
    "firstName": "John",
    "lastName": "Doe",
    "email": "johndoefake@fakemail.com"
  },
  "timestamp": {
    "start": 1672531200
  }
}
{
  "title": "Make the call",
  "dealId": "abcd1234-abcd-1234-abcd-abcd1234abcd",
  "notes": "Call the client to see how everything is going.",
  "owner": {
    "id": "ownerid1234",
    "firstName": "John",
    "lastName": "Doe",
    "email": "johndoefake@fakemail.com"
  },
  "timestamp": {
    "start": 1672531200
  }
}

Delete Task

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

ID of the Task

Responses
204

No Content

No content

delete/tasks/{id}
DELETE /v2/tasks/{id} HTTP/1.1
Host: openapi.paintscout.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Last updated

Was this helpful?