Templated API Keys API

Bearer credentials for server-to-server API access

GitHub OpenAPI

Operations 3

GET /accounts/{slug}/api-keys List API keys #
POST /accounts/{slug}/api-keys Create an API key #
DELETE /accounts/{slug}/api-keys/{keyId} Revoke an API key #

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/templated-email:templated-email-api-keys-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

templated-email-api-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Templated API Keys API
  version: 1.0.0
  description: 'The Templated API gives you programmatic access to the AI-powered email template platform.

    Create, manage, and generate email templates, manage brand assets, and integrate with

    third-party design tools.


    ## Authentication

    Authenticate with an API key (`Authorization: Bearer tmpl_sk_...`) created under

    Integrations → API Keys in the app, or with a session cookie when calling from the

    signed-in web app. Keys are scoped to a single account and act with editor permissions.


    ## Base URL

    All requests are made to `https://app.templated.email/api`.'
  contact:
    name: Templated Support
    email: support@templated.email
  license:
    name: Proprietary
servers:
- url: https://app.templated.email/api
  description: Production
security:
- bearerAuth: []
- sessionCookie: []
tags:
- name: API Keys
  description: Bearer credentials for server-to-server API access
paths:
  /accounts/{slug}/api-keys:
    parameters:
    - $ref: '#/components/parameters/AccountSlug'
    get:
      operationId: listApiKeys
      tags:
      - API Keys
      summary: List API keys
      description: 'Active keys plus keys revoked in the last 30 days. Secrets are never returned.

        Session auth only; requires account:integrations permission.'
      security:
      - sessionCookie: []
      responses:
        '200':
          description: API keys
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ApiKeySummary'
        '403':
          $ref: '#/components/responses/Forbidden'
    post:
      operationId: createApiKey
      tags:
      - API Keys
      summary: Create an API key
      description: 'Returns the plaintext key exactly once — only its SHA-256 hash is stored.

        Limited to 5 active keys per account. Session auth only.'
      security:
      - sessionCookie: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - name
              properties:
                name:
                  type: string
                  maxLength: 100
                  example: CI deploys
      responses:
        '201':
          description: Key created — the `key` field is shown only in this response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    allOf:
                    - $ref: '#/components/schemas/ApiKeySummary'
                    - type: object
                      properties:
                        key:
                          type: string
                          description: Full plaintext key. Never shown again.
        '403':
          description: Key limit reached (KEY_LIMIT_REACHED), plan gate, or called with an API key
        '429':
          $ref: '#/components/responses/RateLimited'
  /accounts/{slug}/api-keys/{keyId}:
    parameters:
    - $ref: '#/components/parameters/AccountSlug'
    - name: keyId
      in: path
      required: true
      schema:
        type: string
    delete:
      operationId: revokeApiKey
      tags:
      - API Keys
      summary: Revoke an API key
      description: Soft-revokes the key; it stops working on the next request. Session auth only.
      security:
      - sessionCookie: []
      responses:
        '200':
          description: Key revoked
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message
        details:
          type: object
          additionalProperties:
            type: string
          description: Field-level validation errors
    ApiKeySummary:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        keyPrefix:
          type: string
          example: tmpl_sk_a1b2
        role:
          type: string
          example: editor
        creatorEmail:
          type: string
        createdAt:
          type: string
          format: date-time
        lastUsedAt:
          type: string
          format: date-time
          nullable: true
        revokedAt:
          type: string
          format: date-time
          nullable: true
  parameters:
    AccountSlug:
      name: slug
      in: path
      required: true
      schema:
        type: string
      description: Account slug identifier
      example: my-company
  responses:
    RateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds until rate limit resets
    Forbidden:
      description: Insufficient permissions
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: tmpl_sk_...
      description: API key created under Integrations → API Keys. Account-scoped, editor permissions.
    sessionCookie:
      type: apiKey
      in: cookie
      name: next-auth.session-token
      description: Session cookie obtained after signing in