Sessions

Terminate an existing session

Terminate a running Devin session by sending a stop event. This will gracefully stop the session and prevent further execution.

Permission Requirements:

  • If the session-write-only-owner feature flag is enabled for your organization, only the session owner can terminate the session.
  • Otherwise, any user in the organization with access to the session can terminate it.

Status Validation:

  • Cannot terminate a session that has already exited (status: "exit")
  • Sessions in other states (running, blocked, suspended) can be terminated
delete/v1/sessions/{session_id}

Request

  • Base URL
    https://api.devin.ai
  • URL
    https://api.devin.ai/v1/sessions/{session_id}
  • Auth
    HTTP bearer

Path parameters

session_idstring required

The session ID

Response

Session terminated successfully

detailstring

Example response

{
  "detail": "Session terminated successfully"
}

Changes

No recorded changes to this operation across all 1 revision of this API.