--- title: End Session | Luma Agents --- DELETE /v1/sessions/{session\_id} Select code samplecURL (shell:curl) ```js const url = 'https://agents.lumalabs.ai/v1/sessions/example'; const options = {method: 'DELETE', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```sh curl --request DELETE \ --url https://agents.lumalabs.ai/v1/sessions/example \ --header 'Authorization: Bearer ' ``` - Productionagents.lumalabs.ai/v1/sessions/{session\_id} End a session gracefully and stop any work that could resume it. ## Authorizations - **[BearerAuth](/api/agents/index.md#bearerauth)** ## Parameters ### Path Parameters **session\_id** required *Session Id* string ## Responses ### 200 Successful Response Media typeapplication/json *EndSessionResponse* object **session\_id** required *Session Id* string **status** required *Status* Closing refuses new work; completed confirms shutdown finished. string Allowed values: closing completed ##### Example ```json { "status": "closing" } ``` ### 422 Validation Error Media typeapplication/json *HTTPValidationError* object **detail** *Detail* Array\ *ValidationError* object **ctx** *Context* object **input** *Input* **loc** required *Location* Array **msg** required *Message* string **type** required *Error Type* string ##### Examplegenerated ```json { "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ] } ```