OAuth Token Import
Manage provider OAuth import information
OAuth Token Import object
Attributes
items
Object{"object": "provider_oauth.import","status": "active","metadata": {}}
List provider OAuth imports
List all provider OAuth imports
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalGEThttp://api.metorial.com/provider-oauth/token-imports
curl -X GET "https://api.metorial.com/provider-oauth/token-imports" \-H "Authorization: Bearer metorial_sk_..."
Create provider OAuth import
Create a new provider OAuth import
Request Body
note
StringOptionalmetadata
StringOptionalaccess_token
Stringexpires_at
DateOptionalid_token
StringOptionalscope
StringOptionaltoken_type
StringOptionalserver_deployment_id
Stringconnection_id
StringPOSThttp://api.metorial.com/provider-oauth/token-imports
curl -X POST "https://api.metorial.com/provider-oauth/token-imports" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"note": "example_note","metadata": "example_metadata","access_token": "example_access_token","expires_at": "2025-11-08T05:52:42.092Z","id_token": "example_id_token","scope": "example_scope","token_type": "example_token_type","server_deployment_id": "example_server_deployment_id"}'
Get provider OAuth import
Get information for a specific provider OAuth import
URL Parameters
take_in_id
StringThe unique identifier for the take_in
GEThttp://api.metorial.com/provider-oauth/token-imports/:take_in_id
curl -X GET "https://api.metorial.com/provider-oauth/token-imports/tak_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Update provider OAuth import
Update information for a specific provider OAuth import
URL Parameters
take_in_id
StringThe unique identifier for the take_in
Request Body
note
StringOptionalmetadata
StringOptionalaccess_token
StringOptionalexpires_at
DateOptionalid_token
StringOptionalscope
StringOptionaltoken_type
StringOptionalPATCHhttp://api.metorial.com/provider-oauth/token-imports/:take_in_id
curl -X PATCH "https://api.metorial.com/provider-oauth/token-imports/tak_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"note": "example_note","metadata": "example_metadata","access_token": "example_access_token","expires_at": "2025-11-08T05:52:42.092Z","id_token": "example_id_token","scope": "example_scope","token_type": "example_token_type"}'