Provider Auth Imports
An auth import lets you bring in existing OAuth tokens or credentials from another system, so users don't need to re-authenticate to use Metorial.
The Provider Auth Import object
object"provider.auth_import"requiredidstringrequirednotestringrequiredipstringrequirednullableuser_agentstringrequirednullablemetadataRecord<string, any>requirednullableauth_configobjectrequiredprovider_idstringrequiredprovider_deployment_idstringrequirednullableauth_method_idstringrequiredcredentials_idstringrequirednullablecreated_atdaterequiredexpires_atdaterequirednullableEndpoints
List provider auth imports
/provider-auth-config-importsReturns a paginated list of provider auth imports.
Query parameters
idstring or string[]optionalFilter by import ID(s)
provider_idstring or string[]optionalFilter by provider ID(s)
provider_auth_credentials_idstring or string[]optionalFilter by auth credentials ID(s)
provider_auth_config_idstring or string[]optionalFilter by auth config ID(s)
provider_deployment_idstring or string[]optionalFilter by provider deployment ID(s)
created_atobjectoptionalFilter provider auth import creation time by date range
updated_atobjectoptionalFilter provider auth import last update time by date range
Example request
Get provider auth import
/provider-auth-config-imports/:provider_auth_import_idRetrieves a specific provider auth import by ID.
Path parameters
provider_auth_import_idstringrequiredThe unique identifier for the provider_auth_import
Example request
Create provider auth import
/provider-auth-config-importsImports authentication credentials for a provider.
Request body
provider_idstringoptionalprovider_deployment_idstringoptionalprovider_auth_config_idstringoptionalprovider_auth_method_idstringoptionalThe authentication method used by these credentials
notestringrequiredA note describing the import source or reason
metadataRecord<string, any>optionalCustom key-value pairs for storing additional information
valueRecord<string, any>requiredThe credential data to import
Example request
Get auth import schema
/provider-auth-config-imports/schemaRetrieves the JSON Schema for importing authentication credentials.
Query parameters
provider_idstringoptionalprovider_deployment_idstringoptionalprovider_auth_config_idstringoptionalprovider_auth_method_idstringoptional