Stytch Email Template API

The Email Template API from Stytch — 3 operation(s) for email template.

Operations 8

POST /pwa/v3/projects/:project_slug/email_templates Create #
GET /pwa/v3/projects/:project_slug/email_templates Getall #
GET /pwa/v3/projects/:project_slug/email_templates/:template_id Get #
PUT /pwa/v3/projects/:project_slug/email_templates/:template_id Update #
DELETE /pwa/v3/projects/:project_slug/email_templates/:template_id Delete #
POST /pwa/v3/projects/:project_slug/default_email_templates/:email_template_type Setdefault #
GET /pwa/v3/projects/:project_slug/default_email_templates/:email_template_type Getdefault #
DELETE /pwa/v3/projects/:project_slug/default_email_templates/:email_template_type Unsetdefault #

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/stytch-email-template-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

stytch-email-template-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stytch Management Email Template API
  description: Stytch's Management API for programmatic workspace actions — projects, environments, secrets, redirect URLs, RBAC policies, JWT templates, email templates, event log streaming, trusted token profiles, public tokens, and SDK configuration.
  version: 1.0.0
  contact:
    name: Stytch Support
    url: https://stytch.com/docs
    email: support@stytch.com
servers:
- url: https://management.stytch.com
  description: Production server
security:
- basicAuth: []
tags:
- name: Email Template
paths:
  /pwa/v3/projects/:project_slug/email_templates:
    post:
      summary: Create
      operationId: pwa_email_template_v3_Create
      tags:
      - Email Template
      description: Create creates an email template for a project.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pwa_email_template_v3_CreateRequest'
      parameters:
      - name: project_slug
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pwa_email_template_v3_CreateResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                status_code: 401
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: unauthorized_credentials
                error_message: Unauthorized credentials.
                error_url: https://stytch.com/docs/api/errors/401
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                status_code: 429
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: too_many_requests
                error_message: Too many requests have been made.
                error_url: https://stytch.com/docs/api/errors/429
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                status_code: 500
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: internal_server_error
                error_message: Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.
                error_url: https://stytch.com/docs/api/errors/500
    get:
      summary: Getall
      operationId: pwa_email_template_v3_GetAll
      tags:
      - Email Template
      description: GetAll retrieves all email templates for a project.
      parameters:
      - name: project_slug
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pwa_email_template_v3_GetAllResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                status_code: 401
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: unauthorized_credentials
                error_message: Unauthorized credentials.
                error_url: https://stytch.com/docs/api/errors/401
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                status_code: 429
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: too_many_requests
                error_message: Too many requests have been made.
                error_url: https://stytch.com/docs/api/errors/429
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                status_code: 500
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: internal_server_error
                error_message: Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.
                error_url: https://stytch.com/docs/api/errors/500
  /pwa/v3/projects/:project_slug/email_templates/:template_id:
    get:
      summary: Get
      operationId: pwa_email_template_v3_Get
      tags:
      - Email Template
      description: Get retrieves an email template for a project.
      parameters:
      - name: project_slug
        in: path
        required: true
        schema:
          type: string
      - name: template_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pwa_email_template_v3_GetResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                status_code: 401
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: unauthorized_credentials
                error_message: Unauthorized credentials.
                error_url: https://stytch.com/docs/api/errors/401
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                status_code: 429
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: too_many_requests
                error_message: Too many requests have been made.
                error_url: https://stytch.com/docs/api/errors/429
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                status_code: 500
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: internal_server_error
                error_message: Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.
                error_url: https://stytch.com/docs/api/errors/500
    put:
      summary: Update
      operationId: pwa_email_template_v3_Update
      tags:
      - Email Template
      description: Update updates an email template for a project.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pwa_email_template_v3_UpdateRequest'
      parameters:
      - name: project_slug
        in: path
        required: true
        schema:
          type: string
      - name: template_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pwa_email_template_v3_UpdateResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                status_code: 401
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: unauthorized_credentials
                error_message: Unauthorized credentials.
                error_url: https://stytch.com/docs/api/errors/401
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                status_code: 429
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: too_many_requests
                error_message: Too many requests have been made.
                error_url: https://stytch.com/docs/api/errors/429
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                status_code: 500
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: internal_server_error
                error_message: Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.
                error_url: https://stytch.com/docs/api/errors/500
    delete:
      summary: Delete
      operationId: pwa_email_template_v3_Delete
      tags:
      - Email Template
      description: Delete deletes an email template for a project.
      parameters:
      - name: project_slug
        in: path
        required: true
        schema:
          type: string
      - name: template_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pwa_email_template_v3_DeleteResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                status_code: 401
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: unauthorized_credentials
                error_message: Unauthorized credentials.
                error_url: https://stytch.com/docs/api/errors/401
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                status_code: 429
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: too_many_requests
                error_message: Too many requests have been made.
                error_url: https://stytch.com/docs/api/errors/429
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                status_code: 500
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: internal_server_error
                error_message: Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.
                error_url: https://stytch.com/docs/api/errors/500
  /pwa/v3/projects/:project_slug/default_email_templates/:email_template_type:
    post:
      summary: Setdefault
      operationId: pwa_email_template_v3_SetDefault
      tags:
      - Email Template
      description: SetDefault sets the default email template for a specific template type in a project.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pwa_email_template_v3_SetDefaultRequest'
      parameters:
      - name: project_slug
        in: path
        required: true
        schema:
          type: string
      - name: email_template_type
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/pwa_email_template_v3_TemplateType'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pwa_email_template_v3_SetDefaultResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                status_code: 401
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: unauthorized_credentials
                error_message: Unauthorized credentials.
                error_url: https://stytch.com/docs/api/errors/401
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                status_code: 429
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: too_many_requests
                error_message: Too many requests have been made.
                error_url: https://stytch.com/docs/api/errors/429
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                status_code: 500
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: internal_server_error
                error_message: Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.
                error_url: https://stytch.com/docs/api/errors/500
    get:
      summary: Getdefault
      operationId: pwa_email_template_v3_GetDefault
      tags:
      - Email Template
      description: GetDefault retrieves the default email template for a specific template type in a project.
      parameters:
      - name: project_slug
        in: path
        required: true
        schema:
          type: string
      - name: email_template_type
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/pwa_email_template_v3_TemplateType'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pwa_email_template_v3_GetDefaultResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                status_code: 401
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: unauthorized_credentials
                error_message: Unauthorized credentials.
                error_url: https://stytch.com/docs/api/errors/401
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                status_code: 429
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: too_many_requests
                error_message: Too many requests have been made.
                error_url: https://stytch.com/docs/api/errors/429
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                status_code: 500
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: internal_server_error
                error_message: Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.
                error_url: https://stytch.com/docs/api/errors/500
    delete:
      summary: Unsetdefault
      operationId: pwa_email_template_v3_UnsetDefault
      tags:
      - Email Template
      description: UnsetDefault removes the default email template for a specific template type in a project.
      parameters:
      - name: project_slug
        in: path
        required: true
        schema:
          type: string
      - name: email_template_type
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/pwa_email_template_v3_TemplateType'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pwa_email_template_v3_UnsetDefaultResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                status_code: 401
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: unauthorized_credentials
                error_message: Unauthorized credentials.
                error_url: https://stytch.com/docs/api/errors/401
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                status_code: 429
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: too_many_requests
                error_message: Too many requests have been made.
                error_url: https://stytch.com/docs/api/errors/429
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                status_code: 500
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: internal_server_error
                error_message: Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.
                error_url: https://stytch.com/docs/api/errors/500
components:
  schemas:
    pwa_email_template_v3_TextAlignment:
      type: string
      enum:
      - LEFT
      - CENTER
    pwa_email_template_v3_CustomHTMLCustomization:
      type: object
      properties:
        template_type:
          $ref: '#/components/schemas/pwa_email_template_v3_TemplateType'
        html_content:
          type: string
        plaintext_content:
          type: string
        subject:
          type: string
    pwa_email_template_v3_CreateResponse:
      type: object
      properties:
        request_id:
          type: string
        email_template:
          $ref: '#/components/schemas/pwa_email_template_v3_EmailTemplate'
        status_code:
          type: integer
          format: int32
      description: Response type
      required:
      - request_id
      - email_template
      - status_code
    pwa_email_template_v3_FontFamily:
      type: string
      enum:
      - ARIAL
      - BRUSH_SCRIPT_MT
      - COURIER_NEW
      - GEORGIA
      - HELVETICA
      - TAHOMA
      - TIMES_NEW_ROMAN
      - TREBUCHET_MS
      - VERDANA
    pwa_email_template_v3_SetDefaultResponse:
      type: object
      properties:
        request_id:
          type: string
        status_code:
          type: integer
          format: int32
      description: Response type
      required:
      - request_id
      - status_code
    pwa_email_template_v3_SetDefaultRequest:
      type: object
      properties:
        template_id:
          type: string
      description: Request type
      required:
      - template_id
    pwa_email_template_v3_CreateRequest:
      type: object
      properties:
        template_id:
          type: string
        name:
          type: string
        sender_information:
          $ref: '#/components/schemas/pwa_email_template_v3_SenderInformation'
        prebuilt_customization:
          $ref: '#/components/schemas/pwa_email_template_v3_PrebuiltCustomization'
        custom_html_customization:
          $ref: '#/components/schemas/pwa_email_template_v3_CustomHTMLCustomization'
      description: Request type
      required:
      - template_id
    pwa_email_template_v3_PrebuiltCustomization:
      type: object
      properties:
        button_border_radius:
          type: number
          format: float
        button_color:
          type: string
        button_text_color:
          type: string
        font_family:
          $ref: '#/components/schemas/pwa_email_template_v3_FontFamily'
        text_alignment:
          $ref: '#/components/schemas/pwa_email_template_v3_TextAlignment'
    pwa_email_template_v3_UnsetDefaultResponse:
      type: object
      properties:
        request_id:
          type: string
        status_code:
          type: integer
          format: int32
      description: Response type
      required:
      - request_id
      - status_code
    pwa_email_template_v3_UpdateRequest:
      type: object
      properties:
        name:
          type: string
        sender_information:
          $ref: '#/components/schemas/pwa_email_template_v3_SenderInformation'
        prebuilt_customization:
          $ref: '#/components/schemas/pwa_email_template_v3_PrebuiltCustomization'
        custom_html_customization:
          $ref: '#/components/schemas/pwa_email_template_v3_CustomHTMLCustomization'
      description: Request type
    pwa_email_template_v3_GetAllResponse:
      type: object
      properties:
        request_id:
          type: string
        email_templates:
          type: array
          items:
            $ref: '#/components/schemas/pwa_email_template_v3_EmailTemplate'
        status_code:
          type: integer
          format: int32
      description: Response type
      required:
      - request_id
      - email_templates
      - status_code
    pwa_email_template_v3_GetDefaultResponse:
      type: object
      properties:
        request_id:
          type: string
        template_id:
          type: string
        status_code:
          type: integer
          format: int32
      description: Response type
      required:
      - request_id
      - template_id
      - status_code
    pwa_email_template_v3_DeleteResponse:
      type: object
      properties:
        request_id:
          type: string
        status_code:
          type: integer
          format: int32
      description: Response type
      required:
      - request_id
      - status_code
    pwa_email_template_v3_GetResponse:
      type: object
      properties:
        request_id:
          type: string
        email_template:
          $ref: '#/components/schemas/pwa_email_template_v3_EmailTemplate'
        status_code:
          type: integer
          format: int32
      description: Response type
      required:
      - request_id
      - email_template
      - status_code
    pwa_email_template_v3_TemplateType:
      type: string
      enum:
      - LOGIN
      - SIGNUP
      - INVITE
      - RESET_PASSWORD
      - ONE_TIME_PASSCODE
      - ONE_TIME_PASSCODE_SIGNUP
      - VERIFY_EMAIL_PASSWORD_RESET
      - UNLOCK
      - PREBUILT
    pwa_email_template_v3_SenderInformation:
      type: object
      properties:
        from_local_part:
          type: string
        from_domain:
          type: string
        from_name:
          type: string
        reply_to_local_part:
          type: string
        reply_to_name:
          type: string
    pwa_email_template_v3_UpdateResponse:
      type: object
      properties:
        request_id:
          type: string
        email_template:
          $ref: '#/components/schemas/pwa_email_template_v3_EmailTemplate'
        status_code:
          type: integer
          format: int32
      description: Response type
      required:
      - request_id
      - email_template
      - status_code
    pwa_email_template_v3_EmailTemplate:
      type: object
      properties:
        template_id:
          type: string
        name:
          type: string
        sender_information:
          $ref: '#/components/schemas/pwa_email_template_v3_SenderInformation'
        prebuilt_customization:
          $ref: '#/components/schemas/pwa_email_template_v3_PrebuiltCustomization'
        custom_html_customization:
          $ref: '#/components/schemas/pwa_email_template_v3_CustomHTMLCustomization'
      required:
      - template_id
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic