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.
Provider Auth Imports object
Attributes
object
StringString representing the object's type
id
StringUnique auth import identifier
note
StringNote explaining the import
metadata
ObjectNullableCustom key-value pairs for storing additional information
provider_id
StringNullableProvider ID
provider_deployment_id
StringNullableDeployment ID
provider_auth_config_id
StringNullableAuth config ID
provider_auth_method_id
StringNullableAuth method ID
created_at
DateTimestamp when created
{"object": "provider.auth_import","id": "paci_1vWxYzAbCdEfGhJk","note": "Imported from previous environment","metadata": {"imported_from": "legacy-system","migration_date": "2025-09-01"},"provider_id": "pro_5gHjKlMnPqRsTuVw","provider_deployment_id": "pde_1aBcDeFgHjKlMnPq","provider_auth_config_id": "pac_8pQrStUvWxYzAbCd","provider_auth_method_id": "pam_2mNpQrStUvWxYzAb","created_at": "2025-09-15T10:30:00.000Z"}
List provider auth imports
Returns a paginated list of provider auth imports.
URL Parameters
provider_deployment_id
StringThe unique identifier for the provider_deployment
provider_auth_config_id
StringThe unique identifier for the provider_auth_config
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
curl -X GET "https://api.metorial.com/provider-deployments/pro_Rm4Mnheq2bfEPhBhP7SY/auth-configs/pro_Rm4Mnheq2bfEPhBhP7SY/imports" \-H "Authorization: Bearer metorial_sk_..."
Get provider auth import
Retrieves a specific provider auth import by ID.
URL Parameters
provider_deployment_id
StringThe unique identifier for the provider_deployment
provider_auth_config_id
StringThe unique identifier for the provider_auth_config
provider_auth_import_id
StringThe unique identifier for the provider_auth_import
curl -X GET "https://api.metorial.com/provider-deployments/pro_Rm4Mnheq2bfEPhBhP7SY/auth-configs/pro_Rm4Mnheq2bfEPhBhP7SY/imports/pro_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create provider auth import
Imports authentication credentials for a provider.
URL Parameters
provider_deployment_id
StringThe unique identifier for the provider_deployment
provider_auth_config_id
StringThe unique identifier for the provider_auth_config
Request Body
note
StringA note describing the import source or reason
metadata
ObjectOptionalCustom key-value pairs for storing additional information
providerAuthMethodId
StringOptionalThe authentication method used by these credentials
value
ObjectThe credential data to import
curl -X POST "https://api.metorial.com/provider-deployments/pro_Rm4Mnheq2bfEPhBhP7SY/auth-configs/pro_Rm4Mnheq2bfEPhBhP7SY/imports" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"note": "example_note","metadata": {},"providerAuthMethodId": "example_providerAuthMethodId","value": {}}'
Get auth import schema
Retrieves the JSON Schema for importing authentication credentials.
URL Parameters
provider_deployment_id
StringThe unique identifier for the provider_deployment
provider_auth_config_id
StringThe unique identifier for the provider_auth_config
curl -X GET "https://api.metorial.com/provider-deployments/pro_Rm4Mnheq2bfEPhBhP7SY/auth-configs/pro_Rm4Mnheq2bfEPhBhP7SY/imports/schema" \-H "Authorization: Bearer metorial_sk_..."