Session Errors
Session errors track errors that occurred during a session. This read-only resource provides visibility into issues that happened during provider execution.
Session Errors object
Attributes
object
StringString representing the object's type
id
StringUnique session error identifier
type
StringNullableError type
name
StringNullableError name
message
StringNullableError message
stack
StringNullableError stack trace
metadata
ObjectNullableCustom key-value pairs
session_id
StringParent session ID
session_error_group_id
StringNullableError group ID
provider_run_id
StringNullableProvider run ID
created_at
DateTimestamp when created
{"object": "session.error","id": "ser_6fGhJkLmNpQrStUv","type": "RuntimeError","name": "ConnectionTimeout","message": "Connection timed out after 30 seconds","stack": "Error: Connection timed out\n at Socket.connect...","metadata": {"timeout_ms": 30000},"session_id": "ses_4dEfGhJkLmNpQrSt","session_error_group_id": "seg_7gHjKlMnPqRsTuVw","provider_run_id": "prn_8hJkLmNpQrStUvWx","created_at": "2025-09-15T10:30:00.000Z"}
List all session errors
Returns a paginated list of errors across all sessions.
Query Parameters
limit
NumberOptionalMaximum number of items to return (1-100)
after
StringOptionalReturn items after this ID
before
StringOptionalReturn items before this ID
cursor
StringOptionalPagination cursor from a previous response
order
EnumOptionalSort order for results
type
StringOptionalFilter by error type
session_id
UnionOptionalFilter by session ID(s)
session_error_group_id
UnionOptionalFilter by error group ID(s)
provider_run_id
UnionOptionalFilter by provider run ID(s)
curl -X GET "https://api.metorial.com/session-errors" \-H "Authorization: Bearer metorial_sk_..."
List session errors
Returns a paginated list of errors that occurred in a session.
URL Parameters
session_id
StringThe unique identifier for the session
Query Parameters
limit
NumberOptionalMaximum number of items to return (1-100)
after
StringOptionalReturn items after this ID
before
StringOptionalReturn items before this ID
cursor
StringOptionalPagination cursor from a previous response
order
EnumOptionalSort order for results
type
StringOptionalFilter by error type
session_error_group_id
UnionOptionalFilter by error group ID(s)
provider_run_id
UnionOptionalFilter by provider run ID(s)
curl -X GET "https://api.metorial.com/sessions/ses_Rm4Mnheq2bfEPhBhP7SY/errors" \-H "Authorization: Bearer metorial_sk_..."
Get session error
Retrieves a specific error that occurred in a session.
URL Parameters
session_id
StringThe unique identifier for the session
session_error_id
StringThe unique identifier for the session_error
curl -X GET "https://api.metorial.com/sessions/ses_Rm4Mnheq2bfEPhBhP7SY/errors/ses_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."