Templated Subaccounts API

Child accounts under a parent account

GitHub OpenAPI

Operations 3

GET /accounts/{slug}/sub-accounts List sub-accounts #
POST /accounts/{slug}/sub-accounts Create a sub-account #
DELETE /accounts/{slug}/sub-accounts/{subSlug} Detach a sub-account #

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-subaccounts-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-subaccounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Templated Sub Accounts 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: Subaccounts
  description: Child accounts under a parent account
paths:
  /accounts/{slug}/sub-accounts:
    parameters:
    - $ref: '#/components/parameters/AccountSlug'
    get:
      operationId: listSubAccounts
      tags:
      - Subaccounts
      summary: List sub-accounts
      responses:
        '200':
          description: Sub-accounts of this parent
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/SubAccount'
        '403':
          $ref: '#/components/responses/Forbidden'
    post:
      operationId: createSubAccount
      tags:
      - Subaccounts
      summary: Create a sub-account
      description: 'Creates a child workspace inheriting the parent''s plan; the requesting user becomes its owner.

        Requires subaccount:create permission. Business plan only.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - name
              properties:
                name:
                  type: string
                  maxLength: 255
      responses:
        '201':
          description: Sub-account created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/SubAccount'
        '400':
          description: Validation error or sub-account limit reached (SUB_ACCOUNT_LIMIT)
        '403':
          $ref: '#/components/responses/Forbidden'
  /accounts/{slug}/sub-accounts/{subSlug}:
    parameters:
    - $ref: '#/components/parameters/AccountSlug'
    - name: subSlug
      in: path
      required: true
      schema:
        type: string
    delete:
      operationId: detachSubAccount
      tags:
      - Subaccounts
      summary: Detach a sub-account
      description: 'Detaches (does not delete) the sub-account — it becomes a standalone account on the Free plan.

        Requires subaccount:manage permission on the parent.'
      responses:
        '200':
          description: Sub-account detached
        '400':
          description: Account is not a sub-account of this parent
        '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
    SubAccount:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        slug:
          type: string
        plan:
          type: string
        parentAccountId:
          type: string
          nullable: true
        templateCount:
          type: integer
          description: List responses only
        memberCount:
          type: integer
          description: List responses only
        createdAt:
          type: string
          format: date-time
  parameters:
    AccountSlug:
      name: slug
      in: path
      required: true
      schema:
        type: string
      description: Account slug identifier
      example: my-company
  responses:
    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