# GET /v1/keys/me

> Describe the key you are calling with.

Source: https://docs.invariant-ai.com/api/key-me

`GET https://api.invariant-ai.com/v1/keys/me`

Returns the id, prefix, owner and status of the key on the request. Useful for checking which key a deployment is using without printing it.

```bash
curl -s https://api.invariant-ai.com/v1/keys/me \
  -H "X-API-Key: $INVARIANT_API_KEY"
```

Response 200:

```json
{
  "key_id": "key_3f9a1c2b7d41",
  "key_prefix": "ief_8cd6a120",
  "email": "you@company.com",
  "name": "laptop",
  "created_at": "2026-11-22T04:10:00.000000+00:00",
  "revoked": false
}
```

Response 401:

```json
{
  "detail": {
    "error": "auth_invalid",
    "message": "API key not recognised or revoked."
  }
}
```

## Headers

| Header | Notes |
| --- | --- |
| `X-API-Key` | The key to describe. `Authorization: Bearer <key>` also works. |

## Response

| Key | Meaning |
| --- | --- |
| `key_id` | Stable id for the key. |
| `key_prefix` | First 12 characters of the key. |
| `email`, `name` | Who the key belongs to, and its label. |
| `created_at` | When it was created. |
| `revoked` | Always `false` here; a revoked key gets `401`. |
