SenderKit Templates API

Read and render stored templates.

GitHub OpenAPI

Operations 3

GET /v1/templates List templates #
GET /v1/templates/{slug} Get a template #
POST /v1/templates/{slug}/render Render a template #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/senderkit-com:senderkit-com-templates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

senderkit-com-templates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SenderKit Public Templates 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: Templates
  description: Read and render stored templates.
paths:
  /v1/templates:
    get:
      tags:
      - Templates
      summary: List templates
      operationId: listTemplates
      responses:
        '200':
          description: All templates in the workspace.
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/TemplateSummary'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
  /v1/templates/{slug}:
    get:
      tags:
      - Templates
      summary: Get a template
      operationId: getTemplate
      parameters:
      - $ref: '#/components/parameters/Slug'
      responses:
        '200':
          description: Template detail, including its current published version.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateDetail'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: No template with that slug.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
  /v1/templates/{slug}/render:
    post:
      tags:
      - Templates
      summary: Render a template
      operationId: renderTemplate
      description: 'Render the template''s current published version with the supplied

        variables, without sending. Returns the rendered output for the

        template''s channel plus any variable paths that were referenced but not

        provided.'
      parameters:
      - $ref: '#/components/parameters/Slug'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                vars:
                  type: object
                  additionalProperties: true
                  description: Variable values to interpolate into the template.
            examples:
              default:
                value:
                  vars:
                    name: Ada
      responses:
        '200':
          description: Rendered template output.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RenderResult'
        '400':
          description: Malformed JSON or failed validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: No published version for the template.
          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:
    RenderResult:
      type: object
      required:
      - channel
      - output
      - missing
      properties:
        channel:
          $ref: '#/components/schemas/Channel'
        output:
          type: object
          description: 'Rendered fields for the channel. Email -> {subject, preheader, html,

            text}; SMS -> {body}; push -> {title, body, data, badge, sound};

            web push -> {title, body, icon, clickUrl, data, badge}.

            '
          additionalProperties: true
        missing:
          type: array
          description: Variable paths referenced by the template but not supplied.
          items:
            type: string
    TemplateSummary:
      type: object
      properties:
        slug:
          type: string
        channel:
          $ref: '#/components/schemas/Channel'
        description:
          type:
          - string
          - 'null'
        status:
          type: string
          enum:
          - active
          - draft
          - archived
        updatedAt:
          type: string
          format: date-time
    TemplateDetail:
      type: object
      properties:
        slug:
          type: string
        channel:
          $ref: '#/components/schemas/Channel'
        description:
          type:
          - string
          - 'null'
        status:
          type: string
          enum:
          - active
          - draft
          - archived
        updatedAt:
          type: string
          format: date-time
        currentVersion:
          type:
          - object
          - 'null'
          properties:
            versionNumber:
              type: integer
            variables:
              type: array
              items:
                type: object
                required:
                - name
                - type
                properties:
                  name:
                    type: string
                  type:
                    type: string
                    enum:
                    - string
                    - array
                    - object
                    - boolean
                  description:
                    type:
                    - string
                    - 'null'
                  required:
                    type: boolean
                additionalProperties: true
            publishedAt:
              type:
              - string
              - 'null'
              format: date-time
    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.
    Channel:
      type: string
      enum:
      - email
      - sms
      - push
      - web-push
  parameters:
    Slug:
      name: slug
      in: path
      required: true
      description: Template slug.
      schema:
        type: string
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: API key with an `sk_live_` or `sk_test_` prefix.