Exchange White Label Oauth2 Code

Exchange OAuth2 code for tokens and create connection.

Args:

white_label_id: The ID of the white label to exchange the code for code: The OAuth2 code db: The database session user: The current user

Returns:

connection (schemas.Connection): The created connection

Path parameters

white_label_idstringRequired

Headers

x-api-keystringOptional

Query parameters

credsstringRequired

Request

This endpoint expects a string.

Response

Successful Response

namestring
integration_typeenum

Integration type enum.

Allowed values:
statusenum

Connection status enum.

Allowed values:
short_namestring
idstringformat: "uuid"
integration_credential_idstringOptionalformat: "uuid"
organization_idstringOptionalformat: "uuid"
created_by_emailstringOptional
modified_by_emailstringOptional

Errors