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

---

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