Provider Auth Exports
An auth export lets you extract OAuth tokens or credentials from Metorial to use in other systems, avoiding duplicate authentication flows.
Provider Auth Exports object
Attributes
object
StringString representing the object's type
id
StringUnique auth export identifier
note
StringNote explaining the export reason
metadata
ObjectNullableCustom key-value pairs for storing additional information
provider_auth_config_id
StringAuth config ID that was exported
value
ObjectThe exported credential data (access token, refresh token, etc.)
created_at
DateTimestamp when created
{"object": "provider.auth_export","id": "pace_7yZaBcDeFgHjKlMn","note": "Exported for backup purposes","metadata": {"exported_by": "admin@company.com","reason": "backup"},"provider_auth_config_id": "pac_8pQrStUvWxYzAbCd","value": {"access_token": "gho_xxxxxxxxxxxxxxxxxxxx","refresh_token": "ghr_xxxxxxxxxxxxxxxxxxxx","token_type": "bearer","scope": "repo,read:user"},"created_at": "2025-09-15T10:30:00.000Z"}
List provider auth exports
Returns a paginated list of provider auth exports.
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/exports" \-H "Authorization: Bearer metorial_sk_..."
Get provider auth export
Retrieves a specific provider auth export 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_export_id
StringThe unique identifier for the provider_auth_export
curl -X GET "https://api.metorial.com/provider-deployments/pro_Rm4Mnheq2bfEPhBhP7SY/auth-configs/pro_Rm4Mnheq2bfEPhBhP7SY/exports/pro_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create provider auth export
Exports authentication credentials from 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
Stringmetadata
ObjectOptionalCustom key-value pairs for storing additional information
curl -X POST "https://api.metorial.com/provider-deployments/pro_Rm4Mnheq2bfEPhBhP7SY/auth-configs/pro_Rm4Mnheq2bfEPhBhP7SY/exports" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"note": "example_note","metadata": {}}'