GET
/
session
/
{session_id}
curl --request GET \
  --url https://api.devin.ai/v1/session/{session_id} \
  --header 'Authorization: Bearer <token>'
{
  "session_id": "devin-xxx",
  "status": "running",
  "title": "Review PR #123",
  "created_at": "2024-01-01T00:00:00Z",
  "updated_at": "2024-01-01T00:01:00Z",
  "snapshot_id": null,
  "playbook_id": null,
  "structured_output": {
    "result": "success"
  },
  "status_enum": "blocked"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

session_id
string
required

The session ID

Response

200
application/json
Returns session details

Detailed information about an existing session

session_id
string
required

Unique identifier for the session

status
string
required

Current status of the session

title
string | null

Session title

created_at
string

Creation timestamp (ISO 8601)

updated_at
string

Last update timestamp (ISO 8601)

snapshot_id
string | null

ID of the machine snapshot used

playbook_id
string | null

ID of the playbook used

pull_request
object | null

Pull request information (null if no PR is associated) containing url field

structured_output
object | null

Task-specific structured output

status_enum
enum<string> | null

Session status enumerations

Available options:
RUNNING,
blocked,
stopped