Get Oauth2 Dropbox Tokens
/v2/gen-ai/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'
Body Parameters
code: optional string
The oauth2 code from google
redirect_url: optional string
Redirect url
Returns
token: optional string
The access token
refresh_token: optional string
The refresh token
Get Oauth2 Dropbox Tokens
curl https://api.digitalocean.com/v2/gen-ai/oauth2/dropbox/tokens \
-X POST \
-H "Authorization: Bearer $DIGITALOCEAN_ACCESS_TOKEN"
{
"token": "example string",
"refresh_token": "example string"
}Returns Examples
{
"token": "example string",
"refresh_token": "example string"
}