API reference
All operations
TASK

Fetches the calling user's tasks related to a specific record, with pagination.

Only tasks owned by the authenticated user are returned; deleted tasks are excluded. Tasks are sorted by due date, latest first. For a `Company`, tasks on the company's active contacts are included as well. Any other record type returns an empty page.

GET/api/v2/tasks/by-record

Authentication

Choose one supported method for this request.

OAuth 2.0 client credentials

Parameters

recordTypequerystring

The type of record (case-sensitive): `Company`, `Contact`, or `Equipment`.

recordIdqueryinteger · int32

The ID of the record. Must be greater than zero.

pagequeryinteger · int32

Page number, 1-based (default: 1). Must be 1 or greater.

pageSizequeryinteger · int32

Number of items per page (default: 20, maximum: 200; larger values are treated as 200). Must be 1 or greater.

Responses

Tasks retrieved successfully

Standard response envelopeisSuccessmessageerrorsdata

Read the result from data. When isSuccess is false, errors lists what went wrong. Handling errors

Paginated
dataPaginatedResponse<TaskDetailsDto[]>
  • totalCountinteger · int32
    • taskIdinteger · int32
    • subRelatedRecordIDinteger · int32
    • subRelatedRecordTypestring
    • ownerstring
    • subjectstring
    • commentsstring
    • dueDatestring · datenullable
    • completeDatestring · date-timenullable
    • statusstring
    • prioritystring
    • createdstring · date-time
    • lastModifiedstring · date-timenullable
  • pageCountinteger · int32
  • currentPageCountinteger · int32
  • nextPageNumberinteger · int32nullable
  • hasNextPageboolean