Val Town emails API

Emails

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/val-town-emails-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 email required.

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

OpenAPI Specification

val-town-emails-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Val Town alias emails API
  description: 'Val Town’s public API


    OpenAPI JSON endpoint:


    https://api.val.town/openapi.json'
  termsOfService: https://www.val.town/termsofuse
  version: '1'
servers:
- url: https://api.val.town
  description: Production
tags:
- name: emails
  description: Emails
paths:
  /v1/email:
    post:
      operationId: emailsSend
      tags:
      - emails
      description: Send emails
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                subject:
                  type: string
                  description: The subject line of the email
                from:
                  anyOf:
                  - type: string
                    maxLength: 320
                  - type: object
                    required:
                    - email
                    properties:
                      name:
                        type: string
                        maxLength: 256
                      email:
                        type: string
                        maxLength: 320
                    title: EmailNameAndAddress
                    description: An email address and name
                  title: EmailData
                headers:
                  type: object
                  description: A set of headers to include the email that you send
                  maxProperties: 50
                  additionalProperties:
                    type: string
                to:
                  anyOf:
                  - anyOf:
                    - type: string
                      maxLength: 320
                    - type: object
                      required:
                      - email
                      properties:
                        name:
                          type: string
                          maxLength: 256
                        email:
                          type: string
                          maxLength: 320
                      title: EmailNameAndAddress
                      description: An email address and name
                    title: EmailData
                  - type: array
                    items:
                      anyOf:
                      - type: string
                        maxLength: 320
                      - type: object
                        required:
                        - email
                        properties:
                          name:
                            type: string
                            maxLength: 256
                          email:
                            type: string
                            maxLength: 320
                        title: EmailNameAndAddress
                        description: An email address and name
                      title: EmailData
                    title: EmailDataList
                    maxItems: 50
                  title: EmailDataInput
                  description: A single email or list of emails for one of the address fields
                cc:
                  anyOf:
                  - anyOf:
                    - type: string
                      maxLength: 320
                    - type: object
                      required:
                      - email
                      properties:
                        name:
                          type: string
                          maxLength: 256
                        email:
                          type: string
                          maxLength: 320
                      title: EmailNameAndAddress
                      description: An email address and name
                    title: EmailData
                  - type: array
                    items:
                      anyOf:
                      - type: string
                        maxLength: 320
                      - type: object
                        required:
                        - email
                        properties:
                          name:
                            type: string
                            maxLength: 256
                          email:
                            type: string
                            maxLength: 320
                        title: EmailNameAndAddress
                        description: An email address and name
                      title: EmailData
                    title: EmailDataList
                    maxItems: 50
                  title: EmailDataInput
                  description: A single email or list of emails for one of the address fields
                bcc:
                  anyOf:
                  - anyOf:
                    - type: string
                      maxLength: 320
                    - type: object
                      required:
                      - email
                      properties:
                        name:
                          type: string
                          maxLength: 256
                        email:
                          type: string
                          maxLength: 320
                      title: EmailNameAndAddress
                      description: An email address and name
                    title: EmailData
                  - type: array
                    items:
                      anyOf:
                      - type: string
                        maxLength: 320
                      - type: object
                        required:
                        - email
                        properties:
                          name:
                            type: string
                            maxLength: 256
                          email:
                            type: string
                            maxLength: 320
                        title: EmailNameAndAddress
                        description: An email address and name
                      title: EmailData
                    title: EmailDataList
                    maxItems: 50
                  title: EmailDataInput
                  description: A single email or list of emails for one of the address fields
                text:
                  type: string
                  description: Text content of the email, for email clients that may not support HTML
                html:
                  type: string
                  description: HTML content of the email. Can be specified alongside text
                  minLength: 1
                attachments:
                  type: array
                  items:
                    type: object
                    required:
                    - content
                    - filename
                    properties:
                      content:
                        type: string
                      filename:
                        type: string
                      type:
                        type: string
                      disposition:
                        type: string
                      contentId:
                        type: string
                    title: AttachmentObject
                  description: A list of attachments to add to the email
                  maxItems: 5
                replyToList:
                  anyOf:
                  - type: object
                    required:
                    - email
                    properties:
                      name:
                        type: string
                        maxLength: 256
                      email:
                        type: string
                        maxLength: 320
                    title: EmailNameAndAddress
                    description: An email address and name
                  - type: array
                    items:
                      type: object
                      required:
                      - email
                      properties:
                        name:
                          type: string
                          maxLength: 256
                        email:
                          type: string
                          maxLength: 320
                      title: EmailNameAndAddress
                      description: An email address and name
                    title: EmailList
                    maxItems: 10
                  title: ReplyToList
                  description: A reply-to list of email addresses
              description: Fields for an email to be sent
            example:
              subject: An important message
              text: Hello world
              html: Hello <strong>world</strong>
        description: Fields for an email to be sent
      security:
      - bearerAuth: []
      responses:
        '202':
          description: Email accepted to be sent
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  message:
                    type: string
                description: Email accepted to be sent
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Endpoints that support authorization expect Bearer authentication, using an API token provided from Val Town.
externalDocs:
  url: https://api.val.town/documentation
  description: Find more info here