/v1/auth/verifyVerify the API key and return its org context
Useful for CLI `whoami`, smoke tests, or surfacing the connected org in a UI before a destructive action. Any valid scope authorizes the call.
Scope: Any scope
Show parameters, schemas and examplesHide details
Response 200
| Field | Type | Notes |
|---|---|---|
| orgIdrequired | string | |
| orgNamerequired | string | |
| orgSlugrequired | string | |
| keyIdrequired | string | |
| scopesrequired | string[] |
{
"orgId": "org_abc123",
"orgName": "Example Org",
"orgSlug": "example-org",
"keyId": "key_abc123",
"scopes": [
"contacts:read",
"contacts:write"
]
}Errors
- 401 Missing or invalid API key
curl 'https://api.turtini.com/v1/auth/verify' \ -H "Authorization: Bearer $TURTINI_API_KEY"
turtini api GET /v1/auth/verify
import { Turtini } from '@turtini/sdk/api'
const turtini = new Turtini({ apiKey: process.env.TURTINI_API_KEY! })
const result = await turtini.auth.whoami()