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
StringString representing the object's type
id
StringUnique session template provider identifier
name
StringNullableDisplay name
description
StringNullableDescription
metadata
ObjectNullableCustom key-value pairs
session_template_id
StringParent session template ID
provider_id
StringProvider ID
provider_deployment_id
StringNullableProvider deployment ID
provider_deployment_name
StringNullableProvider deployment name
provider_config_name
StringNullableProvider config name
provider_auth_config_name
StringNullableProvider auth config name
created_at
DateTimestamp when created
updated_at
DateTimestamp when last updated
{"object": "session.template.provider","id": "stp_3cDeFgHjKlMnPqRs","name": "GitHub Provider","description": "GitHub integration for this template","metadata": {"priority": 1},"session_template_id": "stm_2bCdEfGhJkLmNpQr","provider_id": "pro_5gHjKlMnPqRsTuVw","provider_deployment_id": "pde_1aBcDeFgHjKlMnPq","provider_deployment_name": "Production","provider_config_name": "Default Config","provider_auth_config_name": "OAuth Config","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.
URL Parameters
session_template_id
StringThe unique identifier for the session_template
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
provider_id
UnionOptionalcurl -X GET "https://api.metorial.com/session-templates/ses_Rm4Mnheq2bfEPhBhP7SY/providers" \-H "Authorization: Bearer metorial_sk_..."
Get session template provider
Retrieves a specific provider configuration from a session template.
URL Parameters
session_template_id
StringThe unique identifier for the session_template
session_template_provider_id
StringThe unique identifier for the session_template_provider
curl -X GET "https://api.metorial.com/session-templates/ses_Rm4Mnheq2bfEPhBhP7SY/providers/ses_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create session template provider
Adds a new provider configuration to a session template.
URL Parameters
session_template_id
StringThe unique identifier for the session_template
Request Body
name
StringOptionaldescription
StringOptionalmetadata
ObjectOptionalA key-value map
provider_deployment
Objectprovider_config
ObjectOptionalprovider_auth_config
ObjectOptionaltool_filters
ObjectOptionalcurl -X POST "https://api.metorial.com/session-templates/ses_Rm4Mnheq2bfEPhBhP7SY/providers" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {},"provider_deployment": {"type": "example_type","provider_deployment_id": "example_provider_deployment_id"},"provider_config": {"type": "example_type","provider_config_id": "example_provider_config_id"},"provider_auth_config": {"type": "example_type","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_id
StringThe unique identifier for the session_template
session_template_provider_id
StringThe unique identifier for the session_template_provider
Request Body
name
StringOptionaldescription
StringOptionalmetadata
ObjectOptionalA key-value map
provider_deployment
ObjectOptionalprovider_config
ObjectOptionalprovider_auth_config
ObjectOptionaltool_filters
ObjectOptionalcurl -X PATCH "https://api.metorial.com/session-templates/ses_Rm4Mnheq2bfEPhBhP7SY/providers/ses_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {},"provider_deployment": {"type": "example_type","provider_deployment_id": "example_provider_deployment_id"},"provider_config": {"type": "example_type","provider_config_id": "example_provider_config_id"},"provider_auth_config": {"type": "example_type","provider_auth_config_id": "example_provider_auth_config_id"},"tool_filters": {"tool_keys": ["example_item"]}}'
Delete session template provider
Removes a provider configuration from a session template.
URL Parameters
session_template_id
StringThe unique identifier for the session_template
session_template_provider_id
StringThe unique identifier for the session_template_provider
curl -X DELETE "https://api.metorial.com/session-templates/ses_Rm4Mnheq2bfEPhBhP7SY/providers/ses_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."