OAuth Profile

Manage provider OAuth connection profile information

OAuth Profile object

Attributes

object

Object

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

String

The display name of the user associated with this profile

email

String

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",
"id": "example_id",
"status": "active",
"sub": "example_sub",
"name": "example_name",
"email": "example_email",
"connection_id": "example_connection_id",
"created_at": "2025-08-12T09:45:16.337Z",
"last_used_at": "2025-08-12T09:45:16.337Z",
"updated_at": "2025-08-12T09:45:16.337Z"
}

List provider OAuth connection profiles

List provider OAuth connection profiles for a specific connection

URL Parameters

connectionId

String

The unique identifier for the connection

GEThttp://api.metorial.com/provider-oauth/connections/:connectionId/profiles
curl -X GET "https://api.metorial.com/provider-oauth/connections/con_Rm4Mnheq2bfEPhBhP7SY/profiles" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer metorial_sk_..."

Get provider OAuth connection profile

Get the information of a specific provider OAuth connection profile

URL Parameters

connectionId

String

The unique identifier for the connection

profileId

String

The unique identifier for the profile

GEThttp://api.metorial.com/provider-oauth/connections/:connectionId/profiles/:profileId
curl -X GET "https://api.metorial.com/provider-oauth/connections/con_Rm4Mnheq2bfEPhBhP7SY/profiles/pro_Rm4Mnheq2bfEPhBhP7SY" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer metorial_sk_..."