---
title: "Login"
method: GET
path: "/api/auth"
tags: ["Auth"]
---

# Login

`GET /api/auth`

This will redirect you to the OAuth provider for authentication with email/pass, SSO, Google, Github, etc.

## Query parameters

- `organization_id` string, uuid, nullable
- `redirect_uri` string, nullable
- `inv_code` string, uuid, nullable

## Other responses

- `303` — Response that redirects to OAuth provider through a Location header to be handled by browser.
- `400` — OAuth error likely with OIDC provider.

---

[API](https://skmtc.net/devflowinc/apis/trieve-api.md) · [All operations](https://skmtc.net/devflowinc/apis/trieve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/devflowinc/trieve-api/revisions/84583e7c9fc1/schema)
