v8

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2025-10-165266542.4 MB
DigitalOcean-public.v2-new_GradientAI Platform

Get Oauth2 Dropbox Tokens

To obtain the refresh token, needed for creation of data sources, send a GET request to /v2/gen-ai/oauth2/dropbox/tokens. Pass the code you obtrained from the oauth flow in the field 'code'

post/v2/gen-ai/oauth2/dropbox/tokens

Request body

codestring

The oauth2 code from google

redirect_urlstring

Redirect url

Example request

{
  "code": "example string",
  "redirect_url": "example string"
}

Response

A successful response.

refresh_tokenstring

The refresh token

tokenstring

The access token

Example response

{
  "refresh_token": "example string",
  "token": "example string"
}