Skip to main content
POST
Start today's session

Authorizations

X-API-Key
string
header
required

Scopes

programs:write

Set the teammate's goal and build programs.

Path Parameters

external_id
string
required

Your own id for the teammate, or @me with a teammate token.

Required string length: 1 - 255
Pattern: ^(?:@me|[A-Za-z0-9._:-]{1,255})$

Body

application/json
effort
enum<string>
default:as_planned

How to start today's session. as_planned starts the stored session. easier and harder first rebuild today's session for that effort and store it, then start it. Once today's session has started, any later start that day returns the started session unchanged, whatever the effort. Defaults to as_planned.

Available options:
as_planned,
easier,
harder

Response

date
string<date>
required

Today in the teammate's time zone.

effort
enum<string>
required

The effort the started session was stored with. When the session had already started, this is the effort it started with, not the one this call asked for.

Available options:
as_planned,
easier,
harder
engine_version
string | null
required
program_id
string
required
revision
integer | null
required
session
object
required
started_at
string<date-time>
required

When this run of the session started, in UTC.

time_zone
string
required

The IANA time zone the date was read in.