curl --request GET \
--url https://api.devin.ai/v1/sessions/{session_id} \
--header 'Authorization: Bearer <token>'
{
"session_id": "devin-abc123def456",
"status": "running",
"title": "Review PR #123",
"created_at": "2024-01-01T00:00:00.000000+00:00",
"updated_at": "2024-01-01T00:05:30.123456+00:00",
"snapshot_id": null,
"playbook_id": null,
"tags": [
"api",
"documentation",
"review"
],
"pull_request": {
"url": "https://github.com/example/repo/pull/123"
},
"structured_output": {
"result": "success",
"files_modified": 3
},
"status_enum": "blocked",
"messages": [
{
"type": "initial_user_message",
"event_id": "event-abc123-def4-5678-9012-abcdef123456",
"message": "Review the pull request at https://github.com/example/repo/pull/123",
"timestamp": "2024-01-01T00:00:00.000000+00:00",
"username": "user@example.com",
"origin": "web"
},
{
"type": "devin_message",
"event_id": "event-def456-abc1-2345-6789-fedcba654321",
"message": "I'll review the pull request for you. Let me analyze the changes.",
"timestamp": "2024-01-01T00:00:15.123456+00:00"
},
{
"type": "user_message",
"event_id": "event-789abc-def0-1234-5678-9abcdef01234",
"message": "Please focus on the security implications",
"timestamp": "2024-01-01T00:03:45.987654+00:00",
"username": "user@example.com",
"origin": "web"
},
{
"type": "devin_message",
"event_id": "event-012def-abc3-4567-8901-23456789abcd",
"message": "I've completed the security review. Found 2 potential issues that need attention.",
"timestamp": "2024-01-01T00:05:30.123456+00:00"
}
]
}
Retrieve detailed information about an existing Devin session, including its status, output, and metadata.
curl --request GET \
--url https://api.devin.ai/v1/sessions/{session_id} \
--header 'Authorization: Bearer <token>'
{
"session_id": "devin-abc123def456",
"status": "running",
"title": "Review PR #123",
"created_at": "2024-01-01T00:00:00.000000+00:00",
"updated_at": "2024-01-01T00:05:30.123456+00:00",
"snapshot_id": null,
"playbook_id": null,
"tags": [
"api",
"documentation",
"review"
],
"pull_request": {
"url": "https://github.com/example/repo/pull/123"
},
"structured_output": {
"result": "success",
"files_modified": 3
},
"status_enum": "blocked",
"messages": [
{
"type": "initial_user_message",
"event_id": "event-abc123-def4-5678-9012-abcdef123456",
"message": "Review the pull request at https://github.com/example/repo/pull/123",
"timestamp": "2024-01-01T00:00:00.000000+00:00",
"username": "user@example.com",
"origin": "web"
},
{
"type": "devin_message",
"event_id": "event-def456-abc1-2345-6789-fedcba654321",
"message": "I'll review the pull request for you. Let me analyze the changes.",
"timestamp": "2024-01-01T00:00:15.123456+00:00"
},
{
"type": "user_message",
"event_id": "event-789abc-def0-1234-5678-9abcdef01234",
"message": "Please focus on the security implications",
"timestamp": "2024-01-01T00:03:45.987654+00:00",
"username": "user@example.com",
"origin": "web"
},
{
"type": "devin_message",
"event_id": "event-012def-abc3-4567-8901-23456789abcd",
"message": "I've completed the security review. Found 2 potential issues that need attention.",
"timestamp": "2024-01-01T00:05:30.123456+00:00"
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The session ID
Returns session details
Detailed information about an existing session