Skip to content
  • Auto
  • Light
  • Dark

Generate URL

Get Oauth2 URL
get/v2/gen-ai/oauth2/url

To generate an Oauth2-URL for use with your localhost, send a GET request to /v2/gen-ai/oauth2/url. Pass 'http://localhost:3000 as redirect_url

Query ParametersExpand Collapse
redirect_url: optional string

The redirect url.

type: optional string

Type "google" / "dropbox".

ReturnsExpand Collapse
url: optional string

The oauth2 url

Get Oauth2 URL
curl https://api.digitalocean.com/v2/gen-ai/oauth2/url \
    -H "Authorization: Bearer $DIGITALOCEAN_ACCESS_TOKEN"
{
  "url": "example string"
}
Returns Examples
{
  "url": "example string"
}