Connect iMessage
Get an iMessage number for your AI agent. Ask for a US number that texts over iMessage, in the console or from the API, and Mapier sets it up for you
You need a project in the console at convo.mapier.ai/app. No project yet? Book a call with Mapier.
Request your line
In the console, open iMessage and click Request line. Then:
- Under How many, choose 1 to 5 lines. Each new line holds 200 contacts.
- Under Why, choose your reason. For your first line, choose My first line for this agent.
- Click Request line at the bottom. It reads Request 2 lines and so on when you ask for more.
Your request shows Waiting on us. You can have one open request at a time.
Wait for your number
A person at Mapier reviews every first request and sets up your number. You can leave the page; it updates itself. Meanwhile, read the Quickstart.
Open your line
The request reads Line added, and your number is on the iMessage page. The line reads No traffic yet, then Live after its first message. Text it from your phone to see the first message arrive.
From the API
Your code can request a line with POST /v1/line-setups,
using a key with the lines:write scope. Send {"key": "imessage/operator"}, which asks Mapier to set up an iMessage line.
Three fields are optional:
quantity: how many lines, 1 to 5.reason: why, as the console asks it:first_line(my first line for this agent),capacity(our lines are full),dedicated(a dedicated number),region(a number in another region) orother.note: up to 500 characters, for anything Mapier should know.
While a person at Mapier sets up the number, state is verifying and
nextStep is wait. Follow it with
GET /v1/line-setups/{setupId}. When state is
verified, lineId is the new line and nextStep is null. The line is also
in GET /v1/whoami under lines[], where address is its
number and status is active.
Good to know
- Texting the line adds a contact. Whoever texts a line becomes one of its contacts, your own phone included. Test from a phone you don't mind using one of those contacts.
- The number belongs to Mapier. You cannot move it to another provider. To stop using it, disconnect the line on its page.