Show who this key is and what it can do
On this page
GET
/v1/whoamiget_current_access| Risk | read |
| Authentication | API key or OAuth access token |
| Scopes | none (any valid credential) |
| Idempotency | natural: repeating the call gives the same result |
| Dry run | not applicable |
| Success status | 200 |
| Response type | application/json |
What it does#
- Use when: You start a session, check a pasted key, or need your scopes, plan limits, sending status or the operations you may call.
- Do not use when: you need usage counts (call get_usage_and_limits).
- Side effects: None.
- Reversible: Not applicable, nothing changes.
- Required scope: none (any valid credential).
- Idempotency: safe to repeat.
- Typical next step: call get_usage_and_limits, or list_lists to find a list id.
Request#
Path parameters#
None.
Query parameters#
None.
Every read also accepts fields=a,b,c to return only those top-level fields.
Response#
| Field | Type | Required | Description |
|---|---|---|---|
workspace | object | yes | |
workspace.id | string | yes | |
workspace.name | string | yes | The workspace name. The name readers see on mailings (the default from_name and usual author name) is sender_name in get_workspace. |
credential | object | yes | |
credential.id | string | yes | key_... for an API key, ogr_... for an OAuth grant. |
credential.type | one of "api_key", "oauth_grant" | yes | |
credential.name | string or null | yes | The name the owner gave the key. |
credential.mode | one of "live", "test" | yes | |
credential.key_kind | one of "user", "agent", "vendor" or null | yes | |
credential.scopes | array of string | yes | Every scope this credential holds. |
credential.last_four | string or null | yes | |
credential.created_at | string or null | yes | |
credential.expires_at | string or null | yes | RFC 3339 UTC, or null for an approved vendor key. |
credential.last_used_at | string or null | yes | |
plan | object | yes | |
plan.tier | string | yes | |
plan.name | string | yes | |
entitlements | object | yes | |
entitlements.api_access | boolean | yes | |
entitlements.api_send | boolean | yes | A key with mailings:send may send without dashboard approval. |
entitlements.api_events_feed | boolean | yes | |
entitlements.api_webhook_endpoints | integer, min -9007199254740991, max 9007199254740991 | yes | Webhook endpoints this workspace may hold. |
entitlements.api_requests_per_minute | integer, min -9007199254740991, max 9007199254740991 | yes | |
entitlements.api_write_requests_per_minute | integer, min -9007199254740991, max 9007199254740991 | yes | |
entitlements.mailing_audience_limit | integer, min -9007199254740991, max 9007199254740991 | yes | Most active subscribers a mailing may reach. |
entitlements.daily_email_cap | integer, min -9007199254740991, max 9007199254740991 or null | yes | |
sending | object | yes | |
sending.status | one of "active", "warning", "paused" | yes | |
sending.reason_code | string or null | yes | |
sending.sentence | string or null | yes | What the author sees in the dashboard, when sending is paused or at risk. |
sending.next_step | string or null | yes | |
callable_operations | array of string | yes | Operation ids this credential may call right now, given its scopes and plan. |
docs | object | yes | |
docs.openapi | string | yes | |
docs.llms_txt | string | yes | |
docs.agent_guide | string | yes |
Examples#
integration key#
Request:
curl 'https://api.seemly.com/v1/whoami' \
-H "Authorization: Bearer $SEEMLY_API_KEY"const response = await fetch("https://api.seemly.com/v1/whoami", {
headers: {
"Authorization": `Bearer ${process.env.SEEMLY_API_KEY}`,
},
});
const result = await response.json();
console.log(response.status, result);import os
import requests
response = requests.get(
"https://api.seemly.com/v1/whoami",
headers={
"Authorization": f"Bearer {os.environ['SEEMLY_API_KEY']}",
},
)
print(response.status_code, response.json())Response: 200:
{
"workspace": {
"id": "ws_9f3k2m8a1b",
"name": "Hollow Oak Books"
},
"credential": {
"id": "key_4d8x2p0q7r",
"type": "api_key",
"name": "Store checkout",
"mode": "live",
"key_kind": "user",
"scopes": [
"account:read",
"lists:read",
"subscribers:write"
],
"last_four": "k3m9",
"created_at": "2026-12-01T12:00:00Z",
"expires_at": "2027-12-01T12:00:00Z",
"last_used_at": "2026-12-02T09:30:00Z"
},
"plan": {
"tier": "magnets",
"name": "Magnets & Promos"
},
"entitlements": {
"api_access": true,
"api_send": true,
"api_events_feed": true,
"api_webhook_endpoints": 3,
"api_requests_per_minute": 120,
"api_write_requests_per_minute": 60,
"mailing_audience_limit": 500,
"daily_email_cap": 500
},
"sending": {
"status": "active",
"reason_code": null,
"sentence": null,
"next_step": null
},
"callable_operations": [
"get_current_access",
"list_lists",
"upsert_subscriber"
],
"docs": {
"openapi": "https://api.seemly.com/v1/openapi.json",
"llms_txt": "https://api.seemly.com/llms.txt",
"agent_guide": "https://api.seemly.com/docs/api/agents.md"
}
}Errors#
| Status | Codes |
|---|---|
| 401 | unauthenticated, credential_revoked, credential_expired |
| 403 | plan_does_not_include, api_suspended, consent_required |
| 429 | rate_limited |
| 503 | service_unavailable |
Every error is an application/problem+json body with a code, a fix sentence and next_actions. See reading a problem response.