Provider Auth Credentials
Auth credentials store your OAuth app registration (client ID, client secret, and scopes). These are the app-level credentials you get from a service like GitHub or Slack.
Provider Auth Credentials object
Attributes
object
StringString representing the object's type
id
StringUnique credentials identifier
type
Stringname
StringNullableDisplay name
description
StringNullableDescription
metadata
ObjectNullableCustom key-value pairs for storing additional information
provider_id
StringProvider ID
created_at
DateTimestamp when created
updated_at
DateTimestamp when last updated
{"object": "provider.auth_credentials","id": "par_4sTuVwXyZaBcDeFg","type": "oauth","name": "GitHub OAuth","description": "OAuth credentials for GitHub API","metadata": {"app_name": "My GitHub App","created_by": "admin@company.com"},"provider_id": "pro_5gHjKlMnPqRsTuVw","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"}
List provider auth credentials
Returns a paginated list of provider auth credentials.
URL Parameters
provider_deployment_id
StringThe unique identifier for the provider_deployment
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
id
UnionOptionalFilter by credential ID(s)
curl -X GET "https://api.metorial.com/provider-deployments/pro_Rm4Mnheq2bfEPhBhP7SY/auth-credentials" \-H "Authorization: Bearer metorial_sk_..."
Get provider auth credentials
Retrieves specific provider auth credentials by ID.
URL Parameters
provider_deployment_id
StringThe unique identifier for the provider_deployment
provider_auth_credentials_id
StringThe unique identifier for the provider_auth_credentials
curl -X GET "https://api.metorial.com/provider-deployments/pro_Rm4Mnheq2bfEPhBhP7SY/auth-credentials/pro_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create provider auth credentials
Creates new provider auth credentials.
URL Parameters
provider_deployment_id
StringThe unique identifier for the provider_deployment
Request Body
name
Stringdescription
StringOptionalmetadata
ObjectOptionalCustom key-value pairs for storing additional information
config
Objectcurl -X POST "https://api.metorial.com/provider-deployments/pro_Rm4Mnheq2bfEPhBhP7SY/auth-credentials" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {},"config": {"type": "example_type","clientId": "example_clientId","clientSecret": "example_clientSecret","scopes": ["example_item"]}}'
Update provider auth credentials
Updates specific provider auth credentials.
URL Parameters
provider_deployment_id
StringThe unique identifier for the provider_deployment
provider_auth_credentials_id
StringThe unique identifier for the provider_auth_credentials
Request Body
name
StringOptionaldescription
StringOptionalmetadata
ObjectOptionalCustom key-value pairs for storing additional information
curl -X PATCH "https://api.metorial.com/provider-deployments/pro_Rm4Mnheq2bfEPhBhP7SY/auth-credentials/pro_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {}}'
Delete provider auth credentials
Permanently deletes provider auth credentials.
URL Parameters
provider_deployment_id
StringThe unique identifier for the provider_deployment
provider_auth_credentials_id
StringThe unique identifier for the provider_auth_credentials
curl -X DELETE "https://api.metorial.com/provider-deployments/pro_Rm4Mnheq2bfEPhBhP7SY/auth-credentials/pro_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."