Provider Auth Configs
An auth config is a user's authenticated connection to a provider. Created when a user completes OAuth or manually enters an API token.
Provider Auth Configs object
Attributes
object
StringString representing the object's type
id
StringUnique auth config identifier
type
EnumAuthentication type
source
EnumAuth config source
status
EnumAuth config status
is_default
BooleanWhether this is the default auth config
provider_id
StringProvider ID
name
StringNullableDisplay name
description
StringNullableDescription
metadata
ObjectNullableCustom key-value pairs for storing additional information
tool_filter
ObjectTool filter configuration
deployment
ObjectNullablecredentials
ObjectNullableauth_method
Objectcreated_at
DateTimestamp when created
updated_at
DateTimestamp when last updated
{"object": "provider.auth_config","id": "pac_8pQrStUvWxYzAbCd","type": "manual","source": "manual","status": "active","provider_id": "pro_5gHjKlMnPqRsTuVw","name": "GitHub OAuth Token","description": "OAuth token for GitHub API access","metadata": {},"tool_filter": {"type": "allow_all"},"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"},"credentials": {"object": "provider.auth_credentials","id": "par_4sTuVwXyZaBcDeFg","type": "oauth","status": "active","is_default": true,"is_managed": true,"name": "GitHub OAuth","description": "OAuth credentials for GitHub API","metadata": {},"provider_id": "pro_5gHjKlMnPqRsTuVw","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"},"auth_method": {"object": "provider.capabilities.auth_method","id": "pam_2mNpQrStUvWxYzAb","type": "oauth","key": "oauth2","name": "OAuth 2.0","description": "Authenticate using OAuth 2.0","capabilities": {},"input_schema": {"type": "json_schema","schema": {}},"output_schema": {"type": "json_schema","schema": {}},"scopes": [{"object": "provider.capabilities.auth_method.scope","id": "pams_8tUvWxYzAbCdEfGh","scope": "repo","name": "Repository Access","description": "Full control of private repositories"},{"object": "provider.capabilities.auth_method.scope","id": "pams_8tUvWxYzAbCdEfGh","scope": "repo","name": "Repository Access","description": "Full control of private repositories"}],"provider_id": "pro_5gHjKlMnPqRsTuVw","provider_specification_id": "psp_9gHjKlMnPqRsTuVw","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"},"created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"}
List provider auth configs
Returns a paginated list of provider auth configs.
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalstatus
UnionOptionalFilter by status (active, archived)
id
UnionOptionalFilter by auth config ID(s)
provider_id
UnionOptionalFilter by provider ID(s)
provider_deployment_id
UnionOptionalFilter by provider deployment ID(s)
provider_auth_credentials_id
UnionOptionalFilter by auth credentials ID(s)
provider_auth_method_id
UnionOptionalFilter by auth method ID(s)
actor_id
UnionOptionalFilter by actor ID(s)
consumer_id
UnionOptionalFilter by consumer ID(s)
identity_id
UnionOptionalFilter by identity ID(s)
identity_credential_id
UnionOptionalFilter by identity credential ID(s)
search
StringOptionalSearch by name or description
created_at
ObjectOptionalFilter provider auth config creation time by date range
updated_at
ObjectOptionalFilter provider auth config last update time by date range
curl -X GET "https://api.metorial.com/provider-auth-configs" \-H "Authorization: Bearer metorial_sk_..."
Get provider auth config
Retrieves a specific provider auth config by ID.
URL Parameters
provider_auth_config_id
StringThe unique identifier for the provider_auth_config
curl -X GET "https://api.metorial.com/provider-auth-configs/pro_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create provider auth config
Creates a new provider auth config.
Request Body
name
StringOptionaldescription
StringOptionalmetadata
ObjectOptionalCustom key-value pairs for storing additional information
tool_filters
UnionOptionalNullableprovider_auth_method_id
StringThe authentication method this config uses (e.g., OAuth, API key)
provider_deployment_id
StringOptionalThe provider deployment this auth config is associated with (if applicable)
value
ObjectAuthentication config payload
curl -X POST "https://api.metorial.com/provider-auth-configs" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {},"tool_filters": {"type": "example_type","keys": ["example_item"]},"provider_auth_method_id": "example_provider_auth_method_id","provider_deployment_id": "example_provider_deployment_id","value": {}}'
Update provider auth config
Updates a specific provider auth config.
URL Parameters
provider_auth_config_id
StringThe unique identifier for the provider_auth_config
Request Body
name
StringOptionaldescription
StringOptionalmetadata
ObjectOptionalCustom key-value pairs for storing additional information
tool_filters
UnionOptionalNullablecurl -X PATCH "https://api.metorial.com/provider-auth-configs/pro_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {},"tool_filters": {"type": "example_type","keys": ["example_item"]}}'
Delete provider auth config
Permanently deletes a provider auth config.
URL Parameters
provider_auth_config_id
StringThe unique identifier for the provider_auth_config
curl -X DELETE "https://api.metorial.com/provider-auth-configs/pro_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."