Session Template Providers

Session template providers define which providers should be included when a session is created from a template.

Session Template Providers object

Attributes

object

String

String representing the object's type

id

String

Unique session template provider identifier

status

String

Provider status

tool_filter

Object

Tool filter configuration

provider_id

String

Provider ID

session_template_id

String

Parent session template ID

deployment

Object

config

Object

auth_config

ObjectNullable

created_at

Date

Timestamp when created

updated_at

Date

Timestamp when last updated

{
"object": "session.template.provider",
"id": "stp_3cDeFgHjKlMnPqRs",
"status": "active",
"tool_filter": {
"type": "v1.allow_all"
},
"provider_id": "pro_5gHjKlMnPqRsTuVw",
"session_template_id": "stm_2bCdEfGhJkLmNpQr",
"deployment": {
"object": "provider.deployment#preview",
"id": "pde_1aBcDeFgHjKlMnPq",
"name": "Production",
"description": "Production deployment",
"metadata": {},
"provider_id": "pro_5gHjKlMnPqRsTuVw",
"created_at": "2025-09-15T10:30:00.000Z",
"updated_at": "2026-01-10T14:45:00.000Z"
},
"config": {
"object": "provider.config#preview",
"id": "pcf_7dEfGhJkLmNpQrSt",
"name": "Production Config",
"description": "Configuration for production environment",
"metadata": {},
"provider_id": "pro_5gHjKlMnPqRsTuVw",
"created_at": "2025-09-15T10:30:00.000Z",
"updated_at": "2026-01-10T14:45:00.000Z"
},
"auth_config": {
"object": "provider.auth_config#preview"
},
"created_at": "2025-09-15T10:30:00.000Z",
"updated_at": "2026-01-10T14:45:00.000Z"
}

List session template providers

Returns a paginated list of providers configured for a session template.

Query Parameters

limit

NumberOptional

Maximum number of items to return (1-100)

after

StringOptional

Return items after this ID

before

StringOptional

Return items before this ID

cursor

StringOptional

Pagination cursor from a previous response

order

EnumOptional

Sort order for results

status

UnionOptional

id

UnionOptional

Filter by session template provider ID(s)

session_template_id

UnionOptional

Filter by session template ID(s)

session_template_template_id

UnionOptional

Filter by session template template ID(s)

provider_id

UnionOptional

Filter by provider ID(s)

provider_deployment_id

UnionOptional

Filter by provider deployment ID(s)

provider_config_id

UnionOptional

Filter by provider config ID(s)

provider_auth_config_id

UnionOptional

Filter by provider auth config ID(s)

GEThttp://api.metorial.com/session-template-providers
curl -X GET "https://api.metorial.com/session-template-providers" \
-H "Authorization: Bearer metorial_sk_..."

Get session template provider

Retrieves a specific provider configuration from a session template.

URL Parameters

session_template_provider_id

String

The unique identifier for the session_template_provider

GEThttp://api.metorial.com/session-template-providers/:session_template_provider_id
curl -X GET "https://api.metorial.com/session-template-providers/ses_Rm4Mnheq2bfEPhBhP7SY" \
-H "Authorization: Bearer metorial_sk_..."

Create session template provider

Adds a new provider configuration to a session template.

Request Body

session_template_id

String

provider_deployment_id

StringOptional

provider_config_id

StringOptional

provider_auth_config_id

StringOptional

tool_filters

ObjectOptional
POSThttp://api.metorial.com/session-template-providers
curl -X POST "https://api.metorial.com/session-template-providers" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer metorial_sk_..." \
-d '{
"session_template_id": "example_session_template_id",
"provider_deployment_id": "example_provider_deployment_id",
"provider_config_id": "example_provider_config_id",
"provider_auth_config_id": "example_provider_auth_config_id",
"tool_filters": {
"tool_keys": [
"example_item"
]
}
}'

Update session template provider

Updates a provider configuration in a session template.

URL Parameters

session_template_provider_id

String

The unique identifier for the session_template_provider

Request Body

tool_filters

ObjectOptional
PATCHhttp://api.metorial.com/session-template-providers/:session_template_provider_id
curl -X PATCH "https://api.metorial.com/session-template-providers/ses_Rm4Mnheq2bfEPhBhP7SY" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer metorial_sk_..." \
-d '{
"tool_filters": {
"tool_keys": [
"example_item"
]
}
}'

Delete session template provider

Removes a provider configuration from a session template.

URL Parameters

session_template_provider_id

String

The unique identifier for the session_template_provider

DELETEhttp://api.metorial.com/session-template-providers/:session_template_provider_id
curl -X DELETE "https://api.metorial.com/session-template-providers/ses_Rm4Mnheq2bfEPhBhP7SY" \
-H "Authorization: Bearer metorial_sk_..."