Skip to main content

sessions

Returns the sessions of the current user. Time ranges are capped at 93 days except for Zapier OAuth requests.

sessions(
after: String
endTime: ISO8601DateTime
first: Int
sort: TimeEntrySortEnum = start_time
startTime: ISO8601DateTime
statuses: [String!] = ["active"]
): [Session!]!

Arguments​

sessions.after ● String scalar​

Return sessions after this position in the requested sort order. Pass the cursor of the last session from the previous page.

sessions.endTime ● ISO8601DateTime scalar​

Defaults to 60 days after startTime, or 30 days from now when startTime is also omitted. For Zapier OAuth requests, omitted start-time bounds end on January 1, 9999.

sessions.first ● Int scalar​

Return at most this many sessions (1-500). Omit to return the whole range.

sessions.sort ● TimeEntrySortEnum enum​

sessions.startTime ● ISO8601DateTime scalar​

Defaults to 60 days before endTime, or 30 days ago when endTime is also omitted. When both are omitted with a created_at or updated_at sort, returns sessions created or updated in the last 60 days, whatever their start time. For Zapier OAuth requests, omitted start-time bounds default to September 1, 2020.

sessions.statuses ● [String!] list scalar​

Type​

Session object​