POST /sessions/{session_id}/stop
Stop an in-flight session and return it.
TypeScript SDKThe npm client, generated from the API spec.Python SDKThe PyPI client, sync and async.
| Method | Path |
|---|---|
| POST | /v1/sessions/{session_id}/stop |
stopped_by is recorded only when the caller's credential maps to a GitHub account.
Path parameters
session_idstringrequired
curl -X POST "https://api.ellipsis.dev/v1/sessions/{session_id}/stop" \
-H "Authorization: Bearer $ELLIPSIS_API_KEY"import os
from ellipsis import Ellipsis
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
result = client.sessions.stop("...")
print(result)import { Ellipsis } from '@ellipsis-dev/sdk';
const client = new Ellipsis({
apiKey: process.env.ELLIPSIS_API_TOKEN!,
});
const result = await client.sessions.stop('...');
console.log(result);Request
Response
Example response · 200
{
}