---
title: "Initiate OAuth login flow"
method: GET
path: "/accounts/oauth/login"
tags: ["Authentication"]
---

# Initiate OAuth login flow

`GET /accounts/oauth/login`

Generates OAuth URL for authentication with external providers (Auth0)

## Query parameters

- `account` string, required
- `connection` string

## Headers

- `Referer` string, required

## Response `200`

OAuth URL generated successfully

- object
  - `data` object, required
    - `oauth_url` string, uri — URL to redirect user for OAuth authentication

## Other responses

- `400` — Bad request - missing required parameters
- `500` — Internal server error

---

[API](https://skmtc.net/quivaworks/apis/quiva-ai-gateway.md) · [All operations](https://skmtc.net/quivaworks/apis/quiva-ai-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quivaworks/quiva-ai-gateway/revisions/771d118bd4d1/schema)
