Skip to main content
POST
/
v4
/
sessions
Create Session
curl --request POST \
  --url https://api.egp.scale.com/v4/sessions \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "title": "<string>",
  "state": {},
  "account_id": "<string>",
  "start_date": "2023-11-07T05:31:56Z",
  "end_date": "2023-11-07T05:31:56Z"
}
'
{
  "id": "<string>",
  "title": "<string>",
  "state": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "created_by_user_id": "<string>",
  "created_by_identity_type": "user",
  "account_id": "<string>",
  "start_date": "2023-11-07T05:31:56Z",
  "end_date": "2023-11-07T05:31:56Z",
  "archived_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.gp.scale.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Body

application/json
title
string
required
state
State · object
required

Opaque, caller-defined session state.

account_id
string
required

The ID of the account that owns the given entity.

start_date
string<date-time>

Start of the session window.

end_date
string<date-time>

End of the session window.

Response

Successful Response

id
string
required
title
string
required
state
State · object
required

Opaque, caller-defined session state.

created_at
string<date-time>
required

The date and time when the entity was created in ISO format.

updated_at
string<date-time>
required

The date and time when the entity was last updated in ISO format.

created_by_user_id
string
required

The user who originally created the entity.

created_by_identity_type
enum<string>
required

The type of identity that created the entity.

Available options:
user,
service_account
account_id
string
required

The ID of the account that owns the given entity.

start_date
string<date-time>

Start of the session window.

end_date
string<date-time>

End of the session window.

archived_at
string<date-time>

The date and time when the entity was archived in ISO format.