Send iMessages and SMS directly from your application. Integrate messaging into your CRM, workflows, or custom tools with a single API call.
https://api.tryprojectblue.com
All API requests require a Bearer token in the Authorization header. You can generate API keys from within your Project Blue dashboard under Settings → API Keys.

Authorization: Bearer YOUR_API_KEYKeep your API keys secure
Never expose your API key in client-side code or public repositories. Always make API calls from your server.
Send a message to a phone number via iMessage or SMS. If the recipient has iMessage, the message is delivered as an iMessage (blue bubble). Otherwise, it falls back to SMS automatically.
| Parameter | Type | Required | Description |
|---|---|---|---|
message | string | Required | The text content of the message to send. |
phone | string | Required | Recipient phone number. Accepts many formats — we normalize to E.164 (e.g. +15551234567). |
lineId | string (UUID v4) | Optional | Optional sender line override. Use the lineId value returned from GET /get-lines. When omitted, messages are load balanced across available lines. |
mediaAttachmentUrl | string | Optional | URL to an image, video, or contact card attachment. |
audioAttachmentUrl | string | Optional | URL to an audio file sent as a voice memo. |
enableAiVoiceMemo | boolean | Optional | When true, generates an AI voice memo from the message text using text-to-speech. |
shouldAutoCreateContact | boolean | Optional | Defaults to true. When enabled and a supported CRM is connected (HighLevel or HubSpot), automatically creates the contact in your CRM if they don't already exist. |
The phone parameter is flexible — we accept formats like (555) 123-4567, 555.123.4567, +15551234567, and more. All numbers are normalized to E.164 format before sending.
When lineId is provided, we route through that line. If it is omitted, message sends continue to use default load balancing across your available lines.
curl -X POST https://api.tryprojectblue.com/send-api-message \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "Hey! Just following up on our conversation.",
"phone": "+15551234567"
}'curl -X POST https://api.tryprojectblue.com/send-api-message \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "Check out this property!",
"phone": "+15551234567",
"mediaAttachmentUrl": "https://example.com/property-photo.jpg"
}'curl -X POST https://api.tryprojectblue.com/send-api-message \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "Hey, wanted to quickly touch base about your appointment tomorrow.",
"phone": "+15551234567",
"enableAiVoiceMemo": true
}'curl -X POST https://api.tryprojectblue.com/send-api-message \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "Hi from a specific line.",
"phone": "+15551234567",
"lineId": "a3f8c2d1-b4e9-4f2a-c8d3-e1f0a2b3c4d5"
}'{
"success": true,
"message": "Message added to queue",
"messageType": "iMessage",
"phone": "+15551234567",
"devicePhoneNumber": "+15559876543",
"mediaAttachmentUrl": null,
"audioAttachmentUrl": null
}{
"error": "Invalid lineId. Expected a UUID v4 token returned from GET /get-lines."
}The Send Message endpoint works hand-in-hand with your CRM. If you have HighLevel or HubSpot connected, outbound messages sent through the API will automatically appear inside your CRM — just like messages sent from the Project Blue app.
By default, shouldAutoCreateContact is true. This means if you send an outbound message and the recipient does not already exist as a contact in your CRM, we will automatically create the contact for you along with the message.
Set shouldAutoCreateContact to false if you only want messages logged for contacts that already exist in your CRM.
This field is only relevant if you have a supported CRM connected
If no CRM is connected, shouldAutoCreateContact has no effect. Messages are still sent normally regardless of this setting.
Outbound messages are synced directly into Conversations. If the contact doesn't exist and auto-create is enabled, we create the contact and the message appears in their conversation thread.
Outbound messages are logged as an activity on the contact record. If you have a HubSpot Inbox enabled, the message is also delivered there for your team to see and reply from.
If the contact doesn't exist and auto-create is enabled, we create the contact in HubSpot first, then log the activity.
curl -X POST https://api.tryprojectblue.com/send-api-message \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "Hey! Following up on our call earlier.",
"phone": "+15551234567",
"shouldAutoCreateContact": false
}'In the example above, the message will only be logged in your CRM if the contact already exists. No new contact will be created.
Check whether a phone number is reachable via iMessage before sending. Useful for routing logic or pre-qualifying contacts.
| Parameter | Type | Required | Description |
|---|---|---|---|
phone | string | Required | The phone number to check. Accepts many formats — we normalize to E.164. |
curl -X POST https://api.tryprojectblue.com/api-check-imessage-availability \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phone": "+15551234567"
}'{
"normalizedPhone": "+15551234567",
"isIMessageAvailable": true
}{
"error": "Invalid phone number format (Not a valid phone number). Please use format +12345678901"
}Phone checked successfully
Invalid phone number format
Missing or invalid API key
Rate limit exceeded
Internal server error
Fetch all sending lines available to your account. Pass the returned lineId value to /send-api-message when you want to force a specific line.
curl -X GET https://api.tryprojectblue.com/get-lines \
-H "Authorization: Bearer YOUR_API_KEY"[
{
"lineId": "a3f8c2d1-b4e9-4f2a-c8d3-e1f0a2b3c4d5",
"devicePhoneNumber": "+15559876543",
"customName": "Main Line"
},
{
"lineId": "9c2e4a1b-d3f8-4e1c-a2b4-c5d6e7f8a9b0",
"devicePhoneNumber": "+15557654321",
"customName": "Secondary Line"
}
]{
"error": "Missing or invalid Authorization header"
}Use the mediaAttachmentUrl field to send rich media with your messages. The following formats are supported:
Use audioAttachmentUrl to send audio files as voice memos. The following formats are supported:
AI Voice Memos
Set enableAiVoiceMemo to true and include a message to generate a natural-sounding voice memo via text-to-speech. No audio file needed — we generate it for you.
Voice calling is not provided by the Project Blue API. Outbound and inbound calls are handled by Twilio. We give you a Twilio API key in the webapp so you can build calling yourself.
Your Twilio API key is already created for you. You don't add phone numbers or caller ID — our team provides those.
You must be on an API or Zapier based account.
In the Project Blue portal, go to Settings → API Keys. Your Twilio API key is exposed there.

Use Twilio's Voice API documentation to implement outbound and inbound calls.
SMS, iMessage, and MMS stay on the Project Blue API. Only voice calling uses your Twilio key and Twilio's API.
Webhooks let you receive real-time notifications when messages are sent or received. Configure webhooks from within the Project Blue dashboard alongside your API keys.
In the Project Blue app, you can:
Paste the webhook URL you want to receive events at
Toggle whether the webhook fires for outbound messages, inbound messages, or both
Send test payloads to verify your endpoint is working

Every webhook event delivers the same payload structure. The direction field indicates whether the message was inbound or outbound.
| Parameter | Type | Required | Description |
|---|---|---|---|
message | string | Required | The text content of the message. |
destination | string | Required | The phone number the message was sent to, in E.164 format. |
receivedAt | string | Required | ISO 8601 timestamp of when the message was received. |
direction | string | Required | Either "inbound" or "outbound", based on message direction. |
messageId | number | Required | Unique numeric identifier for the message. |
guid | string | Required | Globally unique message identifier. |
linePhoneNumber | string | Required | The Project Blue line phone number associated with this message. |
{
"message": "Yes, I'm interested! When can we schedule?",
"destination": "+15551234567",
"receivedAt": "2026-03-04T18:30:00.000Z",
"direction": "inbound",
"messageId": 456,
"guid": "sample-guid-1234",
"linePhoneNumber": "+15559876543"
}{
"message": "Great! Let's book you in for Thursday at 2pm.",
"destination": "+15551234567",
"receivedAt": "2026-03-04T18:31:00.000Z",
"direction": "outbound",
"messageId": 789,
"guid": "sample-guid-5678",
"linePhoneNumber": "+15559876543"
}The API uses standard HTTP status codes. All error responses include a JSON body with an error field describing what went wrong.
{
"error": "Missing or invalid Authorization header"
}Message sent successfully
Invalid request body or missing required fields
Missing or invalid API key
Rate limit exceeded
Internal server error