Saltar al contendio prinicipal

Schedules

Advertencia

Esta página aún no se encuentra traducida al español.

Overview

Schedules are automated tasks that can run on a scheduled date and time, either once or recurrently.

additional resources

These are just some of the most basic API requests. For a complete list of endpoints, consult our API documentation on Swagger.

Get All Schedules

Returns all the schedules that exist within the company.

GET /schedules

Endpoint URL

https://www.cotalker.com/api/v2/schedules

Headers

HeaderDescriptionRequiredValues
AdminAuthorizes access to the data.Requiredtrue
AuthorizationSends your access token to make an API request.
Click here to see how to obtain an access token.
RequiredBearer $ACCESS_TOKEN

Query Parameters

ParameterDescriptionTypeRequiredNotes
limitLimits the amount of schedules returned in the response.numberOptionalBy default, the limit is set to 10.
pageMakes the response display data from the indicated page number.numberOptionalBest used in combination with the "limit" parameter.
countAdds the counter field with the total amount of schedules.booleanOptional
codeReturns the schedule with the indicated code name.stringOptionalThe schedule's code is found in the COTSchedule data model.

Request Sample

curl --location --request GET 'https://www.cotalker.com/api/v2/schedules' \
--header 'admin: true' \
--header 'Authorization: Bearer $ACCESS_TOKEN'

Response Sample

Responses follow the COTSchedule data model.