senderkit context fetches the workspace your API key belongs to and whether
the connection is in live or test mode. The values come from the API rather than
being derived locally, so the output is authoritative — it tells you exactly
which workspace subsequent send calls will affect.
Output
| Field | What it means |
|---|---|
workspace | Human-readable workspace name |
slug | URL-safe workspace identifier |
mode | live — messages are really delivered; test — messages are recorded but not dispatched to a provider |
--json returns the structured API response:
When to use it
- Before sending in a script — confirm the key points at the right workspace and mode before dispatching real messages.
- Debugging —
sk_live_/sk_test_key prefixes tell you mode, but not which workspace the key belongs to.contextresolves both.
Mirrors
The same information is available as:- SDK:
senderkit.context()— see the TypeScript SDK. - MCP tool:
senderkit_context— call it from an AI agent before sending to confirm which workspace and mode are active. - REST endpoint:
GET /v1/context— see the API Reference.
send
Dispatch a message after confirming context.
Environments
Live vs test mode and what each means for delivery.