Provider Auth Methods
An auth method defines one way to authenticate with a provider (OAuth, API token, or custom credentials). A provider version may support multiple auth methods.
Provider Auth Methods object
Attributes
object
StringString representing the object's type
id
StringUnique auth method identifier
type
EnumAuthentication type
name
StringDisplay name
description
StringNullableAuth method description
input_schema
ObjectNullableJSON Schema defining the required auth input fields. Contains standard JSON Schema fields like type, properties, required, etc.
scopes
ObjectNullableAvailable OAuth scopes
provider_id
StringProvider ID
provider_specification_id
StringSpecification ID
created_at
DateTimestamp when created
updated_at
DateTimestamp when last updated
{"object": "provider.auth_method","id": "pam_2mNpQrStUvWxYzAb","type": "oauth","name": "OAuth 2.0","description": "Authenticate using OAuth 2.0","input_schema": {"type": "object","properties": {"client_id": {"type": "string","description": "OAuth client ID"},"client_secret": {"type": "string","description": "OAuth client secret"}},"required": ["client_id","client_secret"]},"scopes": [{"object": "provider.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"}
List provider auth methods
Returns a paginated list of provider auth methods.
URL Parameters
provider_id
StringThe unique identifier for the provider
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_version_id
StringOptionalcurl -X GET "https://api.metorial.com/providers/pro_Rm4Mnheq2bfEPhBhP7SY/auth-methods" \-H "Authorization: Bearer metorial_sk_..."
Get provider auth method
Retrieves a specific provider auth method by ID.
URL Parameters
provider_id
StringThe unique identifier for the provider
provider_auth_method_id
StringThe unique identifier for the provider_auth_method
curl -X GET "https://api.metorial.com/providers/pro_Rm4Mnheq2bfEPhBhP7SY/auth-methods/pro_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."