POST
/
session
/
start
curl --location \
--request POST 'https://api.notte.cc/session/start' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer your-api-key' \
--data '{
  "keep_alive": true,
  "session_timeout": 15,
  "screenshot": false
}'
{
  "session_id": "abc123",
  "error": null
}

Parameters

session_id (opt)
string

Optional parameter to specify a session ID. Session ID should not be provided when starting a new session. Use observe to interact with existing sessions.

keep_alive (opt)
boolean

Optional parameter to keep the session alive beyond its timeout period. Default is false.

session_timeout (opt)
integer

Optional parameter to set a custom timeout for the session. Specify the timeout in minutes. Default is 10.

screenshot (opt)
boolean

Optional parameter to request a screenshot during the session. Default is null (no screenshot).

Response

session_id
string

The unique identifier for the created session.

error
string (opt)

An optional error message if something goes wrong during session creation.

Error Responses

400
string

Invalid request. This error is returned when the input parameters are not valid.

500
string

Internal server error. This error is returned when the server encounters an unexpected condition.

curl --location \
--request POST 'https://api.notte.cc/session/start' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer your-api-key' \
--data '{
  "keep_alive": true,
  "session_timeout": 15,
  "screenshot": false
}'
{
  "session_id": "abc123",
  "error": null
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
session_id
string | null
keep_alive
boolean
default:false
session_timeout
integer
default:10
screenshot
boolean | null

Response

200
application/json
Successful Response
session_id
string
required
error
string | null