Output
| Field | Type | Description |
|---|---|---|
user.id | string | Clay user id of the API key owner. |
user.name | string | null | Display name of the user, or null if not set. |
workspace.id | string | Workspace the API key is scoped to. |
Errors
| Code | Exit | Notes |
|---|---|---|
auth_required | 3 | Not signed in — no stored credential and CLAY_API_KEY is unset. Run clay login. Universal code, listed here because whoami is the first auth check. |
auth_invalid | 3 | The configured credential was rejected by Clay. whoami is the canonical check. |

