Mailtea Contact properties API

The Contact properties API from Mailtea — 2 operation(s) for contact properties.

GitHub OpenAPI

Operations 4

GET /v1/contact-properties List Contact Properties #
POST /v1/contact-properties Create Contact Property #
DELETE /v1/contact-properties/{id} Delete Contact Property #
PATCH /v1/contact-properties/{id} Update Contact Property #

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/mailtea-app:mailtea-app-contact-properties-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

mailtea-app-contact-properties-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mailtea Contact properties API
  version: 0.24.0
  summary: Send transactional and marketing email, manage contacts and audiences, verify sending domains, render templates, and subscribe to webhook events.
  description: Every endpoint lives under `/v1` and takes a Bearer token (`mt_pat_…` personal access token, `mt_svc_…` service key, or `mt_test_…` test key) in the `Authorization` header. The required scopes are listed per operation. This document is generated from the API reference at https://docs.mailtea.app/docs/api-reference.
  termsOfService: https://mailtea.app/terms
  contact:
    name: Mailtea
    url: https://mailtea.app
    email: support@mailtea.app
  license:
    name: AGPL-3.0-only
    identifier: AGPL-3.0-only
servers:
- url: https://api.mailtea.app
  description: Mailtea cloud
tags:
- name: Contact properties
paths:
  /v1/contact-properties:
    get:
      operationId: listContactProperties
      summary: List Contact Properties
      description: 'List custom contact properties with cursor-based pagination


        List all custom contact properties defined for your organization. Results are paginated using cursor-based pagination.'
      tags:
      - Contact properties
      externalDocs:
        url: https://docs.mailtea.app/docs/api-reference/contact-properties/list-contact-properties
      parameters:
      - name: limit
        in: query
        required: false
        description: Number of results per page. 1–100, default `20`.
        schema:
          type: number
      - name: after
        in: query
        required: false
        description: Pagination cursor from a previous response's `next_cursor`.
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    description: Always `"list"`.
                  data:
                    type: array
                    description: Array of contact property objects.
                    items:
                      type: object
                      properties:
                        object:
                          type: string
                          description: Always `"contact_property"`.
                        id:
                          type: string
                          description: Unique property identifier.
                        key:
                          type: string
                          description: The property key.
                        type:
                          type: string
                          description: 'Data type: `string` or `number`.'
                        fallback_value:
                          type:
                          - string
                          - 'null'
                          description: Default value, or `null` if not set.
                        description:
                          type: string
                          description: Property description.
                        created_at:
                          type: string
                          description: ISO 8601 creation timestamp.
                  has_more:
                    type: boolean
                    description: Whether additional pages exist.
                  next_cursor:
                    type: string
                    description: Cursor to pass as the `after` query parameter for the next page. Only present when `has_more` is `true`.
              example:
                object: list
                data:
                - object: contact_property
                  id: cprop_abc123
                  key: company_name
                  type: string
                  fallback_value: Valued Customer
                  description: The contact's company name
                  created_at: '2026-03-29T10:00:00.000Z'
                - object: contact_property
                  id: cprop_def456
                  key: engagement_score
                  type: number
                  fallback_value: '0'
                  description: Contact engagement score
                  created_at: '2026-03-29T09:00:00.000Z'
                has_more: false
        '401':
          description: Unauthorized — missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden — insufficient permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearerAuth:
        - contacts:read
      x-mailtea-scopes:
      - contacts:read
    post:
      operationId: createContactProperty
      summary: Create Contact Property
      description: 'Define a new custom property for contacts


        Create a new custom property that can be attached to contacts in your organization. Properties are organization-wide and can be used for personalization in emails.'
      tags:
      - Contact properties
      externalDocs:
        url: https://docs.mailtea.app/docs/api-reference/contact-properties/create-contact-property
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                key:
                  type: string
                  description: Unique property key. Must start with a letter, contain only alphanumeric characters and underscores, and be 1–50 characters.
                type:
                  type: string
                  description: 'Property data type: `string` or `number`.'
                fallback_value:
                  type:
                  - string
                  - number
                  description: Default value used when a contact has no value set. Must match the property `type`.
                description:
                  type: string
                  description: Human-readable description of this property. Max 500 characters.
              required:
              - key
              - type
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    description: Always `"contact_property"`.
                  id:
                    type: string
                    description: Unique property identifier.
                  key:
                    type: string
                    description: The property key.
                  type:
                    type: string
                    description: 'Data type: `string` or `number`.'
                  fallback_value:
                    type:
                    - string
                    - 'null'
                    description: Default value, or `null` if not set.
                  description:
                    type: string
                    description: Property description.
                  created_at:
                    type: string
                    description: ISO 8601 creation timestamp.
              example:
                object: contact_property
                id: cprop_abc123
                key: company_name
                type: string
                fallback_value: Valued Customer
                description: The contact's company name
                created_at: '2026-03-29T10:00:00.000Z'
        '400':
          description: Validation failed — invalid key format, unsupported type, or fallback value doesn't match type.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized — missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden — insufficient permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Conflict — a property with this key already exists.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearerAuth:
        - contacts:write
      x-mailtea-scopes:
      - contacts:write
  /v1/contact-properties/{id}:
    delete:
      operationId: deleteContactProperty
      summary: Delete Contact Property
      description: 'Permanently delete a contact property


        Permanently delete a contact property. This removes the property definition and any values stored on contacts. This action cannot be undone.'
      tags:
      - Contact properties
      externalDocs:
        url: https://docs.mailtea.app/docs/api-reference/contact-properties/delete-contact-property
      parameters:
      - name: id
        in: path
        required: true
        description: The contact property ID.
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    description: Always `"contact_property"`.
                  id:
                    type: string
                    description: The deleted property's identifier.
                  deleted:
                    type: boolean
                    description: Always `true`.
              example:
                object: contact_property
                id: cprop_abc123
                deleted: true
        '401':
          description: Unauthorized — missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden — insufficient permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Contact property not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearerAuth:
        - contacts:write
      x-mailtea-scopes:
      - contacts:write
    patch:
      operationId: updateContactProperty
      summary: Update Contact Property
      description: 'Update a contact property''s fallback value or description


        Update a contact property''s fallback value or description. The property''s `key` and `type` cannot be changed after creation.'
      tags:
      - Contact properties
      externalDocs:
        url: https://docs.mailtea.app/docs/api-reference/contact-properties/update-contact-property
      parameters:
      - name: id
        in: path
        required: true
        description: The contact property ID.
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                fallback_value:
                  type:
                  - string
                  - number
                  - 'null'
                  description: New default value. Must match the property's `type`. Pass `null` to clear it.
                description:
                  type: string
                  description: Updated description. Max 500 characters.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    description: Always `"contact_property"`.
                  id:
                    type: string
                    description: Unique property identifier.
                  key:
                    type: string
                    description: The property key.
                  type:
                    type: string
                    description: 'Data type: `string` or `number`.'
                  fallback_value:
                    type:
                    - string
                    - 'null'
                    description: Default value, or `null` if cleared.
                  description:
                    type: string
                    description: Property description.
                  created_at:
                    type: string
                    description: ISO 8601 creation timestamp.
              example:
                object: contact_property
                id: cprop_abc123
                key: company_name
                type: string
                fallback_value: Friend
                description: Updated company name property
                created_at: '2026-03-29T10:00:00.000Z'
        '400':
          description: Validation failed — fallback value doesn't match the property type, or description exceeds 500 characters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized — missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden — insufficient permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Contact property not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearerAuth:
        - contacts:write
      x-mailtea-scopes:
      - contacts:write
components:
  schemas:
    Error:
      type: object
      description: Every error body carries `error`; validation failures add `details` and some refusals add a machine-readable `code`.
      properties:
        error:
          type: string
        code:
          type: string
        details:
          type: array
          items:
            type: object
      required:
      - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A Mailtea API key. Scopes such as `contacts:write` are properties of the key, chosen when it is created; each operation lists the scope it needs under `x-mailtea-scopes`. See https://docs.mailtea.app/docs/api-reference/authentication.
externalDocs:
  description: API reference
  url: https://docs.mailtea.app/docs/api-reference