Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: SenderKit Public Context API
version: 1.0.0
description: 'Public REST API for SenderKit — send transactional messages (email, SMS,
push, web push), list message history, and read/render templates.
## Authentication
All endpoints require a Bearer API key:
Authorization: Bearer sk_live_xxx
The `sk_live_` / `sk_test_` prefix selects the environment (live vs. test).
The prefix is only a hint for humans; the secret is the full token. Keys are
created in the dashboard and shown once at creation.
## Sends are asynchronous
`POST /v1/send` enqueues the message and returns `202` with `status: "queued"`.
Delivery happens out of band; poll `GET /v1/messages` to observe progress.
## Rate limits
All endpoints are rate limited per API key. Sends and reads count against
separate budgets, so listing messages never competes with sending them.
A `429` response includes a `Retry-After` header (seconds).'
servers:
- url: https://api.senderkit.com
description: Production
- url: http://localhost:3000/api
description: Local development
security:
- apiKey: []
tags:
- name: Context
description: Inspect the workspace and environment an API key operates in.
paths:
/v1/context:
get:
tags:
- Context
summary: Get workspace context
operationId: getContext
description: 'Returns the workspace the API key belongs to and the environment the key
operates in. Useful to confirm which workspace and mode subsequent calls
will affect before sending.'
responses:
'200':
description: Workspace context.
content:
application/json:
schema:
$ref: '#/components/schemas/Context'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
description: The API key's workspace no longer exists (`workspace_not_found`).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
$ref: '#/components/responses/RateLimited'
components:
responses:
RateLimited:
description: Rate limit exceeded.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Missing, malformed, invalid, or revoked API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
description: Stable machine-readable error code.
example: invalid_request
message:
type: string
issues:
type: array
description: Present on validation failures (Zod issues).
items:
type: object
additionalProperties: true
limit:
type: integer
description: Present on rate-limit errors.
Context:
type: object
required:
- workspace
- mode
properties:
workspace:
type: object
required:
- id
- slug
- name
properties:
id:
type: string
format: uuid
slug:
type: string
name:
type: string
mode:
type: string
enum:
- live
- test
description: 'The environment the API key operates in. Note this is the string
`live`/`test`, distinct from the boolean `livemode` field on other
responses.
'
securitySchemes:
apiKey:
type: http
scheme: bearer
description: API key with an `sk_live_` or `sk_test_` prefix.