Provider Templates
Provider templates are reusable, consumer-facing wrappers around provider deployments.
Provider Templates object
Attributes
object
Stringid
Stringstatus
Enumname
Stringdescription
StringNullablemetadata
ObjectA key-value map
provider_deployment_id
Stringcreated_at
Dateupdated_at
Date{"object": "provider.template","status": "active","metadata": {}}
List provider templates
Returns a paginated list of provider templates.
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalid
UnionOptionalprovider_deployment_id
UnionOptionalsearch
StringOptionalstatus
UnionOptionalcurl -X GET "https://api.metorial.com/provider-templates" \-H "Authorization: Bearer metorial_sk_..."
Get provider template
Retrieves a specific provider template.
URL Parameters
provider_template_id
StringThe unique identifier for the provider_template
curl -X GET "https://api.metorial.com/provider-templates/pro_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create provider template
Creates a new provider template from an existing provider deployment or creates a minimal backing deployment first.
Request Body
name
Stringdescription
StringOptionalmetadata
ObjectOptionalA key-value map
curl -X POST "https://api.metorial.com/provider-templates" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {},"provider_deployment_id": "example_provider_deployment_id"}'
Update provider template
Updates an existing provider template.
URL Parameters
provider_template_id
StringThe unique identifier for the provider_template
Request Body
name
StringOptionaldescription
StringOptionalmetadata
ObjectOptionalA key-value map
curl -X PATCH "https://api.metorial.com/provider-templates/pro_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {}}'
Archive provider template
Archives an existing provider template.
URL Parameters
provider_template_id
StringThe unique identifier for the provider_template
curl -X DELETE "https://api.metorial.com/provider-templates/pro_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."