---
title: "Create Tokens"
method: GET
path: "/oauth2/{idp_name}/tokens"
---

# Create Tokens

`GET /oauth2/{idp_name}/tokens`

## Path parameters

- `idp_name` string, required

## Query parameters

- `state` string, required
- `code` string, nullable
- `error` string, nullable
- `error_description` string, nullable

## Cookies

- `phoenix-oauth2-state` string, required
- `phoenix-oauth2-nonce` string, required
- `phoenix-oauth2-code-verifier` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-05-07** `4714c409fd3d` — 1 info
  - endpoint added
- **2026-04-29** `c81391216eb5` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/arize-ai/apis/arize-phoenix-rest-api/changes/oauth2/:idp_name/tokens/get.md)

---

[API](https://skmtc.dev/arize-ai/apis/arize-phoenix-rest-api.md) · [All operations](https://skmtc.dev/arize-ai/apis/arize-phoenix-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/arize-ai/arize-phoenix-rest-api/revisions/a845e5135b94/schema)
