Skip to main content
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.
No arguments or flags. The command exits non-zero if the key is invalid or the API is unreachable.

Output

--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.
  • Debuggingsk_live_ / sk_test_ key prefixes tell you mode, but not which workspace the key belongs to. context resolves 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.