This guide walks you through the minimum set of API calls needed to send a WhatsApp message with RelayOS. You will create a project, attach your Meta credentials, send a message, and verify its status — all in under five minutes. You only needDocumentation Index
Fetch the complete documentation index at: https://docs.relayos.com.br/llms.txt
Use this file to discover all available pages before exploring further.
curl and a Meta-approved WhatsApp Business account to follow along.
Create a project and get your API key
Every RelayOS integration starts with a project. A project holds your Meta credentials, your webhook configuration, and the API keys your services use to authenticate. Create one by sending your project name and owner email to The response includes your API key in the Set it as an environment variable so the remaining commands can reference it:
POST /v1/projects.apiKey field:Configure your Meta credentials
Before you can send messages, RelayOS needs to know which WhatsApp Business phone number to use and how to authenticate with Meta on your behalf. You will also set a A
callbackUrl here if you want real-time status webhooks.You need two values from the Meta for Developers dashboard:- Phone Number ID — found in your WhatsApp Business app settings under the phone number you have registered
- Access Token — a permanent or long-lived system user token with
whatsapp_business_messagingpermission
The
callbackUrl field is optional. If you omit it, RelayOS still sends messages and tracks delivery status — you just will not receive webhook notifications. You can add or update it at any time by calling this endpoint again.200 OK response with the updated project object confirms your credentials were saved.Send a message
With your credentials in place, you can send a WhatsApp message. RelayOS only sends messages using Meta-approved templates, which ensures compliance with WhatsApp’s messaging policies. The Replace Save the
hello_world template is pre-approved on every new WhatsApp Business account and works for testing.+5511999998888 with the phone number you want to reach, in E.164 format (country code prefix, no spaces or dashes).The API responds immediately with a queued message object:id field — you will use it in the next step to check delivery status.Check message status
Message delivery through WhatsApp is asynchronous. The status moves through a lifecycle:
QUEUED → SENT → DELIVERED → READ, or FAILED if all retry attempts are exhausted. You can poll for the current status at any time using the message ID from the previous step.Rather than polling, configure a
callbackUrl in step 2 to receive a webhook POST each time the status changes. See the Webhooks guide for the full event payload reference.You have created a project, connected your Meta credentials, sent a WhatsApp message, and confirmed delivery — your RelayOS integration is working. From here, explore the send message guide to learn about template variables and idempotency, or browse the API reference for the full parameter list.