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

Output

workspace: Acme Inc
slug:      acme
mode:      live
FieldWhat it means
workspaceHuman-readable workspace name
slugURL-safe workspace identifier
modelive — messages are really delivered; test — messages are recorded but not dispatched to a provider
--json returns the structured API response:
{
  "workspace": { "id": "ws_…", "slug": "acme", "name": "Acme Inc" },
  "mode": "live"
}

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.
# Check before a bulk send
senderkit context --json | jq -r '"workspace: \(.workspace.name), mode: \(.mode)"'

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.