Versions

The API version header, your project's default, and what each version changes

The major version is in the path: /v1. A /v2 would sit beside it rather than replace it. Within /v1, behavior that a deployed integration could trip over changes only behind a dated version, which you choose with one header:

x-mapier-version: 2026-12-01

Every /v1 route that takes a key or a personal access token reads it. A version is a date. A project defaults to the newest version dated on or before the day its first API key was created, and nothing changes under an integration that keeps sending the same version.

The versions

VersionWhat it changes
2026-09-01The oldest. The default of a project whose first key came before 2026-10-01.
2026-10-01A command target that names no channel is resolved from your project's lines rather than meaning iMessage.
2026-10-15Refusals use channel-neutral words: one code and three line_unavailable reasons are renamed.
2026-12-01A command a line reports it cannot do is refused at once, and an Idempotency-Key never sends a command twice. The newest version.

Fields and events are added without a new version, and a new refusal can join a status an operation already documents, so parse defensively, as the API reference says. A new version is added only where an integration already deployed would otherwise get a different word for the same answer, or have the same request handled differently.

The reference pages describe the newest version, 2026-12-01. What an older version does differently is under Older versions.

When you send no header

You get your project's default: the newest version dated on or before the day the project's first API key was created, revoked or not. So:

  • Rotating a key changes nothing: every key belongs to the same project, and the project's first key is where the default comes from.
  • A project whose first key came after a change has that change without asking. A new project defaults to whatever is newest on the day of its first key.
  • Moving an integration to a new project can change its behavior. An integration started on a project that already had keys gets that project's older default, and the same integration pointed at a new project gets the new one's.

Pin a version when you start, and before you point an existing integration at a new project. Pinned, nothing under you moves until you change the header yourself.

The channel of a target

On POST /v1/commands/{type} a target may name the channel it is on, target.channel. A target that names none is resolved from your project's lines, in this order:

  • Active lines decide first. When every active line is on one channel, the target means that channel. A paused line on another channel beside active iMessage lines does not make an iMessage send ambiguous.
  • With no active line, the lines the project still holds decide: every status but released, so a paused or provisioning line counts and a released one never does. Held lines on one channel mean that channel, and the send is then answered by that line's state: 503 line_unavailable with details.reason: "line_paused" for a person whose line is paused, and 503 no_line for a person not yet on any line.
  • A project that holds no line at all answers 503 no_line, before the recipient's address is read.
  • Lines on more than one channel (active ones, or held ones when none is active) answer 422 validation_failed at target.channel, listing those channels in the entry's channels. Name one of them.
POST /v1/commands/message.send — 422
{
  "error": {
    "code": "validation_failed",
    "message": "This project has lines on more than one channel.",
    "details": [
      {
        "path": "target.channel",
        "message": "Name the channel to send on: imessage or whatsapp.",
        "channels": ["imessage", "whatsapp"]
      }
    ]
  }
}

Name the channel whenever a target names an address ("target": { "channel": "imessage", … }) and this refusal can never reach you, whatever lines the project comes to hold. A conversation target is on its conversation's channel and is never refused this way. No other operation reads a target.

The operations where nothing differs

GET /v1/response_stream and GET /v1/whoami behave the same at every version listed. They read the header all the same, so a value they do not know is refused there too. GET /v1/public/channel-availability takes no key and reads no version.

A version Mapier does not know

Any other value is 422 validation_failed, whose entry lists every version Mapier answers to in supported:

x-mapier-version: 2026-13-01 — 422
{
  "error": {
    "code": "validation_failed",
    "message": "That is not an API version Mapier answers to.",
    "details": [
      {
        "path": "x-mapier-version",
        "message": "Send one of: 2026-09-01, 2026-10-01, 2026-10-15, 2026-12-01. Omit the header to keep the behavior your integration was written against.",
        "supported": ["2026-09-01", "2026-10-01", "2026-10-15", "2026-12-01"]
      }
    ]
  }
}

The OpenAPI document lists the same versions as the header's enum on every operation, with a sentence per operation on what differs.

Older versions

Everything else in this reference describes 2026-12-01. An integration pinned to an older version, or a project whose default is older, gets the behavior below instead. Move to the newest version by changing what you handle here, then sending x-mapier-version: 2026-12-01.

Below 2026-12-01

These differ on POST /v1/commands/{type} and its /check:

RequestBelow 2026-12-01At 2026-12-01
A command the line reports it cannot do202, then the result failed with unsupported_capability404 unsupported_command with reason: not_on_line, at once
typing.start or conversation.mark_read the line cannot doThe same 202 that ends failed404, or 200 with skipped: true when you send options.ifUnsupported: "skip"
A repeated Idempotency-Key on group.create, typing.start or conversation.mark_readOn an iMessage line Idempotency-Key is ignored: the command is sent again, and a retried group.create makes a second groupAdopted, as on every other type: the first command is returned and nothing is sent again
A retry of an attempt that got no answerOn a line that adopts a repeated key, sent again under the same key409 conflict with reason: idempotency_key_in_flight while it may still be running, then idempotency_key_unresolved; never sent again

The first two rows are the same at every version on an iMessage line. See Idempotency.

Below 2026-10-15

The same refusals, the same statuses and the same remedies; only the word differs. You receive one word of each pair, never both:

Below 2026-10-15At 2026-10-15 or laterWhere
no_line_capacitycapacity_exhaustedthe 503 code, on POST /v1/commands/{type}
relay_downtransport_downa 503 line_unavailable reason
relay_unconfiguredtransport_unconfigureda 503 line_unavailable reason
line_releasedline_retireda 503 line_unavailable reason

The code pair is answered by POST /v1/commands/{type} alone. The reason pairs are answered wherever line_unavailable is: sending a command, handle check, attachments and receipts. A client that switches on both words of each pair works at every version.

Below 2026-10-01

A command target that names no channel means iMessage, whatever lines the project holds. From 2026-10-01 it is resolved as The channel of a target says.

Guide