Skip to content

Quickstart

This guide takes you from a new account to a delivered message. You’ll use a test key, so nothing is charged and no real phone receives anything.

  1. Create a test key. In the dashboard, open Developers, then API keys, and choose Create test key. Test keys start with tw_test_.

  2. Save it as an environment variable. Never paste keys into your code.

    export TIDEWIRE_API_KEY="tw_test_..."
  3. Install a library (or skip this and use cURL).

    npm install @tidewire/node
  4. Send a message.

    curl https://api.tidewire.example/v1/messages \
    -H "Authorization: Bearer $TIDEWIRE_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"to": "+15550100", "body": "Hello from Tidewire"}'
  5. Check the result. You’ll get 202 Accepted with the new message. In test mode, the number +15550100 always delivers within a second.