Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
The workspace ID
Body
application/json
Response
Successful Response
The response is of type any.
Initiate an OAuth authentication flow.
This endpoint generates an authorization URL that the user should visit to grant permissions to the integration.
Flow:
auth_urlExample:
POST /oauth/initiate
{
"integration_id": "gmail",
"auth_method_id": "oauth2",
"scopes": [
"https://www.googleapis.com/auth/gmail.readonly",
"https://www.googleapis.com/auth/gmail.send"
]
}
Response:
{
"auth_url": "https://accounts.google.com/o/oauth2/v2/auth?...",
"state": "abc123...",
"integration_id": "gmail"
}
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The workspace ID
Successful Response
The response is of type any.