Provider Runs
Provider runs track the execution of provider operations within a session. This read-only resource provides visibility into provider activity.
Provider Runs object
Attributes
object
StringString representing the object's type
id
StringUnique provider run identifier
status
StringNullableRun status
name
StringNullableDisplay name
description
StringNullableDescription
metadata
ObjectNullableCustom key-value pairs
session_id
StringParent session ID
session_provider_id
StringNullableSession provider ID
provider_id
StringNullableProvider ID
provider_deployment_id
StringNullableProvider deployment ID
provider_version_id
StringNullableProvider version ID
started_at
DateNullableTimestamp when run started
completed_at
DateNullableTimestamp when run completed
created_at
DateTimestamp when created
updated_at
DateTimestamp when last updated
{"object": "session.provider_run","id": "prn_8hJkLmNpQrStUvWx","status": "completed","name": "Tool execution","description": "Executing search_files tool","metadata": {"tool_name": "search_files"},"session_id": "ses_4dEfGhJkLmNpQrSt","session_provider_id": "spr_3cDeFgHjKlMnPqRs","provider_id": "pro_5gHjKlMnPqRsTuVw","provider_deployment_id": "pde_1aBcDeFgHjKlMnPq","provider_version_id": "prv_4dEfGhJkLmNpQrSt","started_at": "2025-09-15T10:30:00.000Z","completed_at": "2025-09-15T10:30:05.000Z","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"}
List all provider runs
Returns a paginated list of provider runs 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
status
StringOptionalFilter by run status
session_id
UnionOptionalFilter by session ID(s)
provider_id
UnionOptionalFilter by provider ID(s)
session_provider_id
UnionOptionalFilter by session provider ID(s)
curl -X GET "https://api.metorial.com/provider-runs" \-H "Authorization: Bearer metorial_sk_..."
Get provider run
Retrieves a specific provider run by ID.
URL Parameters
provider_run_id
StringThe unique identifier for the provider_run
curl -X GET "https://api.metorial.com/provider-runs/pro_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Get provider run logs
Retrieves the logs for a specific provider run.
URL Parameters
provider_run_id
StringThe unique identifier for the provider_run
curl -X GET "https://api.metorial.com/provider-runs/pro_Rm4Mnheq2bfEPhBhP7SY/logs" \-H "Authorization: Bearer metorial_sk_..."
List provider runs
Returns a paginated list of provider runs for 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
status
StringOptionalFilter by run status
provider_id
UnionOptionalFilter by provider ID(s)
session_provider_id
UnionOptionalFilter by session provider ID(s)
curl -X GET "https://api.metorial.com/sessions/ses_Rm4Mnheq2bfEPhBhP7SY/provider-runs" \-H "Authorization: Bearer metorial_sk_..."
Get provider run
Retrieves a specific provider run for a session.
URL Parameters
session_id
StringThe unique identifier for the session
provider_run_id
StringThe unique identifier for the provider_run
curl -X GET "https://api.metorial.com/sessions/ses_Rm4Mnheq2bfEPhBhP7SY/provider-runs/pro_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Get provider run logs
Retrieves the logs for a specific provider run.
URL Parameters
session_id
StringThe unique identifier for the session
provider_run_id
StringThe unique identifier for the provider_run
curl -X GET "https://api.metorial.com/sessions/ses_Rm4Mnheq2bfEPhBhP7SY/provider-runs/pro_Rm4Mnheq2bfEPhBhP7SY/logs" \-H "Authorization: Bearer metorial_sk_..."