agentisend-com · Schema

PostContactsBody

EmailTransactional EmailAI AgentsSoftware-as-a-Service

Properties

Name Type Description
audience_id string A segment on this account. The contact is added to it. A value that is not an audience id is accepted and adds nothing.
consent object Optional consent provenance for this address. Stored, shown and exported; never a reason to refuse.
email string The contact address. An existing address is updated.
first_name object Given name. Null clears it.
last_name object Family name. Null clears it.
properties object Named values stored on the contact. A new name is created.
segments array Segments to add the contact to. Each must be a segment on this account.
status string active, or unsubscribed to stop marketing mail.
topics array Topic subscriptions to record for the contact. Each must be a topic on this account.
unsubscribed boolean true stops marketing mail to this address.
View JSON Schema on GitHub

JSON Schema

agentisend-com-post-contacts-body-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentisend-com/json-schema/agentisend-com-post-contacts-body-schema.json",
  "title": "PostContactsBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentisend-com-contacts-api-openapi.yml#/components/schemas/PostContactsBody",
  "properties": {
    "audience_id": {
      "description": "A segment on this account. The contact is added to it. A value that is not an audience id is accepted and adds nothing.",
      "maxLength": 200,
      "minLength": 1,
      "type": "string"
    },
    "consent": {
      "description": "Optional consent provenance for this address. Stored, shown and exported; never a reason to refuse.",
      "properties": {
        "at": {
          "description": "When they agreed, as UTC. Defaults to now.",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
          "type": "string"
        },
        "double_opt_in_confirmed_at": {
          "description": "When a confirmation email or click completed double opt-in.",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
          "type": "string"
        },
        "ip": {
          "description": "The IP address the agreement was captured from, if known.",
          "maxLength": 64,
          "type": "string"
        },
        "source": {
          "description": "Where and how the person agreed — for example \"signup form\" or \"imported list, existing customer\".",
          "maxLength": 200,
          "minLength": 1,
          "type": "string"
        },
        "text": {
          "description": "The exact wording they agreed to, if it is on file.",
          "maxLength": 2000,
          "type": "string"
        }
      },
      "required": [
        "source"
      ],
      "type": "object"
    },
    "email": {
      "description": "The contact address. An existing address is updated.",
      "format": "email",
      "maxLength": 320,
      "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
      "type": "string"
    },
    "first_name": {
      "anyOf": [
        {
          "maxLength": 1000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Given name. Null clears it."
    },
    "last_name": {
      "anyOf": [
        {
          "maxLength": 1000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Family name. Null clears it."
    },
    "properties": {
      "additionalProperties": {},
      "description": "Named values stored on the contact. A new name is created.",
      "propertyNames": {
        "type": "string"
      },
      "type": "object"
    },
    "segments": {
      "description": "Segments to add the contact to. Each must be a segment on this account.",
      "items": {
        "properties": {
          "id": {
            "description": "The segment id.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "maxItems": 100,
      "type": "array"
    },
    "status": {
      "description": "active, or unsubscribed to stop marketing mail.",
      "enum": [
        "active",
        "unsubscribed"
      ],
      "type": "string"
    },
    "topics": {
      "description": "Topic subscriptions to record for the contact. Each must be a topic on this account.",
      "items": {
        "properties": {
          "id": {
            "description": "The topic id.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "subscription": {
            "description": "opt_in subscribes the contact. opt_out unsubscribes them.",
            "enum": [
              "opt_in",
              "opt_out"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "subscription"
        ],
        "type": "object"
      },
      "maxItems": 100,
      "type": "array"
    },
    "unsubscribed": {
      "description": "true stops marketing mail to this address.",
      "type": "boolean"
    }
  },
  "required": [
    "email"
  ],
  "type": "object"
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/agentisend-com-post-contacts-body"
All schemas
curl "https://apis.io/api/v1/json-schemas?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. See our Privacy Policy and Terms.

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