OAuth Token Export

Manage provider OAuth token export information

OAuth Token Export object

Attributes

object

String

id

String

The unique identifier for this OAuth export

status

Enum

The current state of the export

note

StringNullable

An optional note associated with the export

metadata

Object

Additional metadata associated with the export

connection_id

String

The ID of the associated OAuth connection

access_token

StringNullable

The access token associated with the export. Only present when the export is created.

id_token

StringNullable

The ID token associated with the export. Only present when the export is created.

scope

StringNullable

The scope of the OAuth token

created_at

Date

Timestamp when the export was created

expires_at

DateNullable

Timestamp 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

NumberOptional

after

StringOptional

before

StringOptional

cursor

StringOptional

order

EnumOptional
GEThttp://api.metorial.com/provider-oauth/token-exports
curl -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

StringOptional

metadata

ObjectOptional

A key-value map

oauth_session_id

String
POSThttp://api.metorial.com/provider-oauth/token-exports
curl -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

String

The unique identifier for the takeout

GEThttp://api.metorial.com/provider-oauth/token-exports/:takeout_id
curl -X GET "https://api.metorial.com/provider-oauth/token-exports/tak_Rm4Mnheq2bfEPhBhP7SY" \
-H "Authorization: Bearer metorial_sk_..."