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

Parameters

session_id (req)
string

Required parameter to specify the session ID. The session ID of the session to be closed. This field is mandatory.

Response

session_id
string

The unique identifier for the closed session.

error
string (opt)

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

Error Responses

400
string

Invalid request. This error is returned when the session ID is not provided.

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/close' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer your-api-key' \
--data '{
  "session_id": "abc123"
}'
{
  "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