OAuth Authentication
Manage provider OAuth connection authentication information
OAuth Authentication object
Attributes
object
Objectid
StringThe unique identifier for this OAuth connection profile
status
EnumThe result status of the OAuth connection attempt
error
ObjectDetails of any error that occurred during the connection attempt
events
Array of ObjectsA list of events that occurred during the OAuth connection attempt
connection_id
StringThe ID of the related OAuth connection
profile
Objectcreated_at
DateTimestamp when the connection profile was created
{"object": "provider_oauth.connection.profile","id": "example_id","status": "completed","error": {"code": "example_code","message": "example_message"},"events": [{"id": "example_id","type": "authentication_completed","metadata": {},"created_at": "2025-08-12T09:45:16.293Z"},{"type": "authentication_completed","metadata": {}}],"connection_id": "example_connection_id","profile": {"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.293Z","last_used_at": "2025-08-12T09:45:16.293Z","updated_at": "2025-08-12T09:45:16.293Z"},"created_at": "2025-08-12T09:45:16.293Z"}
List provider OAuth connection authentications
List provider OAuth connection authentications for a specific connection
URL Parameters
connectionId
StringThe unique identifier for the connection
curl -X GET "https://api.metorial.com/provider-oauth/connections/con_Rm4Mnheq2bfEPhBhP7SY/authentications" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..."
Get provider OAuth connection authentication
Get the information of a specific provider OAuth connection authentication
URL Parameters
connectionId
StringThe unique identifier for the connection
authenticationId
StringThe unique identifier for the authentication
curl -X GET "https://api.metorial.com/provider-oauth/connections/con_Rm4Mnheq2bfEPhBhP7SY/authentications/aut_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..."