OAuth Takeout
Manage provider OAuth takeout information
OAuth Takeout object
Attributes
items
Object{"items": {"0": {"object": "provider_oauth.takeout","status": "active","metadata": {}},"object": "example_object","id": "example_id","status": "","note": "example_note","metadata": "example_metadata","access_token": "example_access_token","id_token": "example_id_token","scope": "example_scope","created_at": "2025-10-24T15:30:31.673Z","expires_at": "2025-10-24T15:30:31.673Z"},"pagination": {"has_more_before": false,"has_more_after": false}}
List provider OAuth takeouts
List all provider OAuth takeouts
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalGEThttp://api.metorial.com/provider-oauth/takeouts
curl -X GET "https://api.metorial.com/provider-oauth/takeouts" \-H "Authorization: Bearer metorial_sk_..."
Create provider OAuth takeout
Create a new provider OAuth takeout
Request Body
note
StringOptionalmetadata
StringOptionaloauth_session_id
StringPOSThttp://api.metorial.com/provider-oauth/takeouts
curl -X POST "https://api.metorial.com/provider-oauth/takeouts" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"note": "example_note","metadata": "example_metadata","oauth_session_id": "example_oauth_session_id"}'
Get provider OAuth takeout
Get information for a specific provider OAuth takeout
URL Parameters
takeout_id
StringThe unique identifier for the takeout
GEThttp://api.metorial.com/provider-oauth/takeouts/:takeout_id
curl -X GET "https://api.metorial.com/provider-oauth/takeouts/tak_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."