/api/v1/schedules (GET)
GET
/api/v1/schedules
const url = 'https://example.com/api/v1/schedules?state=upcoming&subjectType=thing&limit=20';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/schedules?state=upcoming&subjectType=thing&limit=20' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”locationId
string format: uuid
state
string
subjectType
string
q
string
limit
integer
cursor
string
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
items
required
Array<object>
object
id
required
string format: uuid
locationId
required
string format: uuid
subject
required
object
type
required
string
id
required
string format: uuid
name
required
string
path
required
string
shortCode
string | null
name
required
string
everyMonths
required
number | null
everyUnits
required
string | null
meter
required
dueOn
required
string | null
leadDays
required
number
leadUnits
required
string | null
anchorOn
required
string
anchorValue
required
string | null
next
required
object
dueOn
required
string | null
dueValue
required
string | null
state
required
string
basis
required
string
snoozedUntil
required
string | null
snoozedUntilValue
required
string | null
skipNext
required
boolean
active
required
boolean
rowVersion
required
number
counts
required
object
due
required
number
overdue
required
number
next_cursor
required
string | null
Example
{ "items": [ { "subject": { "type": "thing" }, "next": { "state": "upcoming", "basis": "months" } } ]}