dataConnectors
Authorize a connection
Changed onThis method starts the OAuth authorization flow for a data connector. The platform returns an authorization URL. Redirect the user to this URL so they can grant access to their account.
After the user grants or denies access, the platform redirects them to the redirect URI you provided, with the outcome appended to that URI as query parameters. Read these parameters from the redirect that your application receives:
- connection_id: The identifier of the new connection, returned on success. Store this value and pass it as the connection_id path parameter in later requests.
- status: The ok value, returned on success.
- custom_id: The label you supplied, returned on success when you provided one.
- error: An error code, returned instead of the other parameters when the user denies access or the flow fails.
post/connections:authorize
Request
- Base URL: https://api.twelvelabs.io/v1.3
- URL: https://api.twelvelabs.io/v1.3/connections:authorize
- Auth: API key in header x-api-key
Request body
Response
The authorization flow has been successfully initiated.
Changes
- warning
deleted the
headerrequest parameterx-api-key - info
the endpoint scheme security
x-api-keywas added to the API
- warning
- info
api operation id
authorize-connectionremoved and replaced withdataConnectors_authorize-connection
- info