---
title: "Get API key identity"
method: GET
path: "/whoami"
tags: ["Account"]
---

# Get API key identity

`GET /whoami`

Returns identity information about the authenticated API key. Useful for confirming which project and organization a key is scoped to, and for obtaining the project slug used to compose the `model` value (`<project_slug>/<endpoint_slug>`) in dedicated endpoint inference calls.
Requires a Bearer API key in the `Authorization` header. Cookie, session, and SLS JWT credentials are not accepted.

## Response `200`

API key identity information

- WhoamiResponse
  - `api_key_id` string, required — The ID of the API key that authenticated the request.
  - `project_id` string, required — The ID of the project the API key is scoped to.
  - `project_name` string, required — Human-readable name of the project.
  - `project_slug` string, required — DNS-friendly project identifier. Used with an endpoint slug as `<project_slug>/<endpoint_slug>` to form the `model` value in dedicated endpoint inference calls.
  - `organization_id` string, required — The ID of the organization that owns the project.
  - `organization_name` string, required — Human-readable name of the organization.
  - `user_id` string — The ID of the authenticated user, if available.

## Other responses

- `401` — Unauthorized — missing or invalid API key
- `500` — Internal server error

## Changes

- **2026-07-26** `0c4fdad77435` — 1 info
  - added the optional property `user_id` to the response with the `200` status

[Change history](https://skmtc.dev/together/apis/together-apis/changes/whoami/get.md)

---

[API](https://skmtc.dev/together/apis/together-apis.md) · [All operations](https://skmtc.dev/together/apis/together-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/together/together-apis/revisions/d8f688ad4165/schema)
