Skip to content
Documentation

Build with Mittis.

A REST API with JSON in and JSON out. Base URL https://api.mittis.ai/v1.

Quickstart

Send your first text in three steps. You'll need an account and a number with an approved campaign, or a test key.

1. Create an API key

Create a key in the console under Settings → API keys. Test keys start with mk_test_ and never reach a carrier.

shell
export MITTIS_KEY=mk_test_4f2a9c…

2. Send a message

Node
// Send a text
const res = await fetch('https://api.mittis.ai/v1/messages', {
  method: 'POST',
  headers: { Authorization: `Bearer ${process.env.MITTIS_KEY}` },
  body: JSON.stringify({
    from: '+18045550142',
    to: '+18045550199',
    body: 'Your technician is 10 minutes away.',
  }),
});

const message = await res.json();

3. Handle the reply

Set a webhook URL in the console. When your customer answers, Mittis sends a message.received event. See Webhooks.

Send your first message
in five minutes.

Create a key, verify a number, and make one request.