Skip to main content
POST
/
env
/
sessions
/
cleanup
JavaScript
import Client from 'agentlin_client';

const client = new Client({
  apiKey: process.env['AGENTLIN_API_KEY'], // This is the default and can be omitted
});

const response = await client.env.cleanSession();

console.log(response);
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

inactive_seconds
integer
default:3600

Inactive threshold in seconds

Response

Successful Response