OAuth Token Export
Manage provider OAuth token export information
OAuth Token Export object
Attributes
object
Stringid
StringThe unique identifier for this OAuth export
status
EnumThe current state of the export
note
StringNullableAn optional note associated with the export
metadata
ObjectAdditional metadata associated with the export
connection_id
StringThe ID of the associated OAuth connection
access_token
StringNullableThe access token associated with the export. Only present when the export is created.
id_token
StringNullableThe ID token associated with the export. Only present when the export is created.
scope
StringNullableThe scope of the OAuth token
created_at
DateTimestamp when the export was created
expires_at
DateNullableTimestamp when the export expires
{"object": "provider_oauth.export","status": "active","metadata": {}}
List provider OAuth token exports
List all provider OAuth token exports
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalcurl -X GET "https://api.metorial.com/provider-oauth/token-exports" \-H "Authorization: Bearer metorial_sk_..."
Create provider OAuth token export
Create a new provider OAuth token export
Request Body
note
StringOptionalmetadata
ObjectOptionalA key-value map
oauth_session_id
Stringcurl -X POST "https://api.metorial.com/provider-oauth/token-exports" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"note": "example_note","metadata": {},"oauth_session_id": "example_oauth_session_id"}'
Get provider OAuth token export
Get information for a specific provider OAuth token export
URL Parameters
takeout_id
StringThe unique identifier for the takeout
curl -X GET "https://api.metorial.com/provider-oauth/token-exports/tak_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."