OAuth Profile

Manage provider OAuth connection profile information

OAuth Profile object

Attributes

object

String

id

String

The unique identifier for this OAuth profile

status

Enum

The current status of the OAuth profile

sub

String

The subject identifier provided by the OAuth provider (usually a unique user ID)

name

StringNullable

The display name of the user associated with this profile

email

StringNullable

The email address of the user associated with this profile

connection_id

String

The ID of the related OAuth connection

created_at

Date

Timestamp when the OAuth profile was created

last_used_at

Date

Timestamp when this profile was last used

updated_at

Date

Timestamp when the profile was last updated

{
"object": "provider_oauth.connection.profile",
"status": "active"
}

List provider OAuth connection profiles

List provider OAuth connection profiles for a specific connection

URL Parameters

connection_id

String

The unique identifier for the connection

Query Parameters

limit

NumberOptional

after

StringOptional

before

StringOptional

cursor

StringOptional

order

EnumOptional
GEThttp://api.metorial.com/provider-oauth/connections/:connection_id/profiles
curl -X GET "https://api.metorial.com/provider-oauth/connections/con_Rm4Mnheq2bfEPhBhP7SY/profiles" \
-H "Authorization: Bearer metorial_sk_..."

Get provider OAuth connection profile

Get the information of a specific provider OAuth connection profile

URL Parameters

connection_id

String

The unique identifier for the connection

profile_id

String

The unique identifier for the profile

GEThttp://api.metorial.com/provider-oauth/connections/:connection_id/profiles/:profile_id
curl -X GET "https://api.metorial.com/provider-oauth/connections/con_Rm4Mnheq2bfEPhBhP7SY/profiles/pro_Rm4Mnheq2bfEPhBhP7SY" \
-H "Authorization: Bearer metorial_sk_..."