Everstack
API ReferenceOpenai agents restGet Session

Get Session

GET/v1/openai-agents/sessions/{session-id}
GET/v1/openai-agents/sessions/{session-id}

Your instance endpoint, shown on the instance page in the dashboard. Each instance has its own host; there is no shared API host.

Parameters

NameInTypeRequiredDescription
session-idpathstringYes

Responses

200 Success

PropertyTypeDescription
idstring
providerstring
connection_idstring
conversation_idstring
upstream_session_idstring
upstream_environment_idstring
sandbox_idstring
modelstring
environmentobject
statusstring
readinessstring
cleanup_statusstring
environment_cleanup_statusstring
last_errorstring
created_atstring
updated_atstring

400 Invalid request

PropertyTypeDescription
errorobject

403 Permission denied

PropertyTypeDescription
errorobject

404 Not found

PropertyTypeDescription
errorobject

500 Internal error

PropertyTypeDescription
errorobject

503 Unavailable

PropertyTypeDescription
errorobject

Request

curl -X GET "http://localhost:8089/v1/openai-agents/sessions/{session-id}" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
const response = await fetch("http://localhost:8089/v1/openai-agents/sessions/{session-id}", {
  method: "GET",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
});
const data = await response.json();
import requests

response = requests.get(
    "http://localhost:8089/v1/openai-agents/sessions/{session-id}",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
    },
)
data = response.json()

Response

{
  "id": "string",
  "provider": "string",
  "connection_id": "string",
  "conversation_id": "string",
  "upstream_session_id": "string",
  "upstream_environment_id": "string",
  "sandbox_id": "string",
  "model": "string",
  "environment": {
    "type": "none",
    "workspace_directory": "string"
  },
  "status": "string",
  "readiness": "string",
  "cleanup_status": "string",
  "environment_cleanup_status": "string",
  "last_error": "string",
  "created_at": "string",
  "updated_at": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}