---
title: "OpenID Connect callback"
method: GET
path: "/api/auth/callback"
tags: ["Auth"]
---

# OpenID Connect callback

`GET /api/auth/callback`

This is the callback route for the OAuth provider, it should not be called directly. Redirects to browser with set-cookie header.

## Response `200`

Response that returns with set-cookie header

- SlimUser
  - `created_at` string, date-time, required
  - `email` string, required
  - `id` string, uuid, required
  - `name` string, nullable
  - `orgs` Organization[], required
    - `created_at` string, date-time, required — Timestamp of the creation of the dataset
    - `deleted` integer, required — Flag to indicate if the organization has been deleted. Deletes are handled async after the flag is set so as to avoid expensive search index compaction.
    - `id` string, uuid, required — Unique identifier of the dataset, auto-generated uuid created by Trieve
    - `name` string, required — Name of the organization
    - `partner_configuration` unknown, required
    - `registerable` boolean, nullable — Flag to indicate whether or not new users may join the organization. Default is true.
    - `updated_at` string, date-time, required — Timestamp of the last update of the dataset
  - `user_orgs` UserOrganization[], required
    - `created_at` string, date-time, required
    - `id` string, uuid, required
    - `organization_id` string, uuid, required
    - `role` integer, required
    - `scopes` string[], nullable
    - `updated_at` string, date-time, required
    - `user_id` string, uuid, required

## Other responses

- `400` — Email or password empty or incorrect

---

[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)
