API reference
All operations
ACTIVITIES

Gets the current user's open activities based on the specified filter.

GET/api/v2/activities/open

Authentication

Choose one supported method for this request.

OAuth 2.0 client credentials

Parameters

filterquerystring

The filter to apply: `Today`, `OverDue`, `TodayOverdue` or `Future`.

searchTermquerystring

Optional text to narrow the results.

endDatequerystring · date-time

Optional end of the date range.

startDatequerystring · date-time

Optional start of the date range.

relatedRecordTypequerystring

Optional, with relatedRecordId: only activities related (or sub-related) to this record, e.g. Company or Lead.

relatedRecordIdqueryinteger · int32

Optional, with relatedRecordType: the ID of that record.

X-On-Behalf-Ofheaderstring · email

Email of an active user to act as. That user is recorded as the owner/author of what this request writes. Only client_credentials tokens may send it (others get 403); an email that matches no active user gets 400.

Responses

Open activities retrieved successfully.

Standard response envelopeisSuccessmessageerrorsdata

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

dataOpenActivityDto[]

An array. Each item is a OpenActivityDto:

  • recordIDinteger · int32

    The ID of the activity record

  • recordTypestring

    The type of activity (Call, Task, Event, etc.)

  • relatedToRecordIDinteger · int32

    The ID of the related record

  • relatedToRecordTypestring

    The type of the related record

  • subRelatedRecordTypestring

    The SubRelated Record Type

  • subRelatedRecordIDinteger · int32

    They ID for the SubRelatedRecordType

  • relatedTostring

    A description of what this activity is related to

  • contactIDinteger · int32

    The ID of the contact associated with this activity

  • contactstring

    The name of the contact

  • ownerIDinteger · int32

    The ID of the activity owner

  • ownerstring

    The name of the activity owner

  • subjectstring

    The subject of the activity

  • commentsstring

    Additional comments about the activity

  • statusstring

    The current status of the activity

  • prioritystring

    The priority level of the activity

  • dueDatestring · date-timenullable

    The due date of the activity

  • startTimestring · date-timenullable

    Gets or sets the scheduled start time of the event.

  • endTimestring · date-timenullable

    Gets or sets the end time of the event.

  • callTypestring

    The type of call (for Call activities)

  • enteredBystring

    Who entered the activity

  • modifiedBystring

    Who last modified the activity

  • overdueboolean

    Whether the activity is overdue

  • editableboolean

    Whether the current user can edit this activity

  • canCompleteboolean

    Whether the activity can be marked as complete

  • addNoteboolean

    Whether notes can be added to this activity

  • gridGroupstring

    The group this activity belongs to in a grid view

  • citystring

    The city associated with this activity

  • countystring

    The county associated with this activity

  • onRouteboolean

    Whether the activity is part of a map route (only applies to Tasks)

  • routeIDinteger · int32

    ID for the associated route if OnRoute = true

  • routeNamestring

    Name of the associated route if OnRoute = true