dots.v2.genAi.oauth2.url.get()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.genAi.oauth2.url.get(requestConfiguration?: RequestConfiguration<UrlRequestBuilderGetQueryParameters>): Promise<undefined | ApiGenerateOauth2URLOutput>

Description

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

Parameters

type string optional

Example: "example string"

Type "google" / "dropbox".

redirectUrl string optional

Example: "example string"

The redirect url.

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.genAi.oauth2.url.get();

Response Example

Show Response Example
{
  "url": "example string"
}

More Information

See /v2/gen-ai/oauth2/url in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.