OAuth Authentication

Manage provider OAuth connection authentication information

OAuth Authentication object

Attributes

items

Object
{
"items": {
"0": {
"object": "provider_oauth.connection.authentication",
"status": "completed",
"error": {},
"events": [
{
"type": "authentication_completed",
"metadata": {}
},
{
"type": "authentication_completed",
"metadata": {}
}
],
"profile": {
"object": "provider_oauth.connection.profile",
"status": "active"
}
},
"object": "example_object",
"id": "example_id",
"status": "",
"error": {
"code": "example_code",
"message": "example_message"
},
"events": {
"id": "example_id",
"type": "",
"metadata": "example_metadata",
"created_at": "2025-10-15T16:41:27.244Z"
},
"connection_id": "example_connection_id",
"profile": {
"object": "example_object",
"id": "example_id",
"status": "",
"sub": "example_sub",
"name": "example_name",
"email": "example_email",
"connection_id": "example_connection_id",
"created_at": "2025-10-15T16:41:27.244Z",
"last_used_at": "2025-10-15T16:41:27.244Z",
"updated_at": "2025-10-15T16:41:27.244Z"
},
"created_at": "2025-10-15T16:41:27.244Z"
},
"pagination": {
"has_more_before": false,
"has_more_after": false
}
}

List provider OAuth connection authentications

List provider OAuth connection authentications 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/authentications
curl -X GET "https://api.metorial.com/provider-oauth/connections/con_Rm4Mnheq2bfEPhBhP7SY/authentications" \
-H "Authorization: Bearer metorial_sk_..."

Get provider OAuth connection authentication

Get the information of a specific provider OAuth connection authentication

URL Parameters

connection_id

String

The unique identifier for the connection

authentication_id

String

The unique identifier for the authentication

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