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
ip
StringNullableIP address of the export request
user_agent
StringNullableUser agent of the export request
metadata
ObjectNullableCustom key-value pairs for storing additional information
auth_config
Objectprovider_id
StringProvider ID
provider_deployment_id
StringNullableDeployment ID
auth_method_id
StringAuth method ID
credentials_id
StringNullableAuth credentials ID
value
ObjectNullableThe exported credential data
created_at
DateTimestamp when created
expires_at
DateNullableTimestamp when the export expires
{"object": "provider.auth_export","id": "pace_7yZaBcDeFgHjKlMn","note": "Exported for backup purposes","ip": "192.168.1.1","metadata": {},"auth_config": {"object": "provider.auth_config","id": "pac_8pQrStUvWxYzAbCd","type": "manual","source": "manual","status": "active","provider_id": "pro_5gHjKlMnPqRsTuVw","name": "GitHub OAuth Token","description": "OAuth token for GitHub API access","metadata": {},"tool_filter": {"type": "allow_all"},"deployment": {"object": "provider.deployment#preview","id": "pde_1aBcDeFgHjKlMnPq","name": "Production","description": "Production deployment","metadata": {},"provider_id": "pro_5gHjKlMnPqRsTuVw","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"},"credentials": {"object": "provider.auth_credentials","id": "par_4sTuVwXyZaBcDeFg","type": "oauth","status": "active","is_default": true,"is_managed": true,"name": "GitHub OAuth","description": "OAuth credentials for GitHub API","metadata": {},"provider_id": "pro_5gHjKlMnPqRsTuVw","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"},"auth_method": {"object": "provider.capabilities.auth_method","id": "pam_2mNpQrStUvWxYzAb","type": "oauth","key": "oauth2","name": "OAuth 2.0","description": "Authenticate using OAuth 2.0","capabilities": {},"input_schema": {"type": "json_schema","schema": {}},"output_schema": {"type": "json_schema","schema": {}},"scopes": [{"object": "provider.capabilities.auth_method.scope","id": "pams_8tUvWxYzAbCdEfGh","scope": "repo","name": "Repository Access","description": "Full control of private repositories"},{"object": "provider.capabilities.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"},"created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"},"provider_id": "pro_5gHjKlMnPqRsTuVw","provider_deployment_id": "pde_1aBcDeFgHjKlMnPq","auth_method_id": "pam_2mNpQrStUvWxYzAb","credentials_id": "par_4sTuVwXyZaBcDeFg","value": {},"created_at": "2025-09-15T10:30:00.000Z","expires_at": "2026-03-15T10:30:00.000Z"}
List provider auth exports
Returns a paginated list of provider auth exports.
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalid
UnionOptionalFilter by export ID(s)
provider_id
UnionOptionalFilter by provider ID(s)
provider_auth_credentials_id
UnionOptionalFilter by auth credentials ID(s)
provider_auth_config_id
UnionOptionalFilter by auth config ID(s)
created_at
ObjectOptionalFilter provider auth export creation time by date range
updated_at
ObjectOptionalFilter provider auth export last update time by date range
curl -X GET "https://api.metorial.com/provider-auth-config-exports" \-H "Authorization: Bearer metorial_sk_..."
Get provider auth export
Retrieves a specific provider auth export by ID.
URL Parameters
provider_auth_export_id
StringThe unique identifier for the provider_auth_export
curl -X GET "https://api.metorial.com/provider-auth-config-exports/pro_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create provider auth export
Exports authentication credentials from a provider.
Request Body
provider_auth_config_id
StringProvider auth config ID
note
Stringmetadata
ObjectOptionalCustom key-value pairs for storing additional information
curl -X POST "https://api.metorial.com/provider-auth-config-exports" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"provider_auth_config_id": "example_provider_auth_config_id","note": "example_note","metadata": {}}'