OAuth Authentication

Manage provider OAuth connection authentication information

OAuth Authentication object

Attributes

object

String

id

String

The unique identifier for this OAuth connection profile

status

Enum

The result status of the OAuth connection attempt

error

ObjectNullable

Details of any error that occurred during the connection attempt

events

Object

A list of events that occurred during the OAuth connection attempt

connection_id

String

The ID of the related OAuth connection

profile

ObjectNullable

created_at

Date

Timestamp when the connection profile was created

{
"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"
}
}

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_..."