- Built for AI agents
- Real-time inbound webhooks
- Receive unlimited messages⁴
- Reply to anyone who messages you first
- Full API access
- Dedicated phone number
- Cannot initiate new conversations
iMessage Go SDK
Send and receive iMessages from Go with Blooio's official iMessage Go SDK. Idiomatic Go all the way down — context-aware requests, typed structs for every endpoint and webhook, zero third-party dependencies beyond the standard library, and a webhook verifier you can mount on any net/http handler.
Install
One command to add the iMessage Go SDK to your project.
go get github.com/Blooio/blooio-go-sdk@latestSend your first iMessage
This is the smallest working example — authenticate with your Blooio API key, then call the send-message method on the client.
package main
import (
"context"
"log"
"os"
"github.com/Blooio/blooio-go-sdk/blooio"
)
func main() {
client := blooio.NewClient(os.Getenv("BLOOIO_API_KEY"))
_, err := client.Chats.SendMessage(context.Background(), &blooio.SendMessageRequest{
Phone: "+15551234567",
Body: "Hey Alex — thanks for booking a demo. Reply with any questions.",
})
if err != nil {
log.Fatalf("send failed: %v", err)
}
}Handle inbound iMessages and webhooks
Every inbound iMessage, delivery, read, and reaction event is POSTed to your webhook URL. Use the SDK's signature verifier to reject forged requests and deserialize the payload into typed objects.
package main
import (
"encoding/json"
"io"
"log"
"net/http"
"github.com/Blooio/blooio-go-sdk/webhook"
)
func blooioHandler(w http.ResponseWriter, r *http.Request) {
body, _ := io.ReadAll(r.Body)
sig := r.Header.Get("X-Blooio-Signature")
event, err := webhook.Verify(body, sig, "whsec_...")
if err != nil {
http.Error(w, "bad signature", http.StatusUnauthorized)
return
}
if event.Type == "message.received" {
var data struct {
Body string `json:"body"`
}
_ = json.Unmarshal(event.Data, &data)
log.Printf("inbound: %s", data.Body)
}
w.WriteHeader(http.StatusOK)
}What the SDK gives you on top of raw REST
- Context-aware — every request takes context.Context for cancellation and deadlines
- Typed request/response structs for every endpoint and webhook event
- Zero runtime dependencies beyond the Go standard library
- Idiomatic error types — check with errors.Is / errors.As
- Built-in retries with jitter for 429 and 5xx
- Go 1.21+ supported — builds cleanly on Linux, macOS, Windows, and ARM
Go iMessage SDK FAQ
How do I install the Blooio iMessage Go SDK?+
Does the Go iMessage SDK support context cancellation?+
How do I verify Blooio webhook signatures in Go?+
Does the Go SDK have any runtime dependencies?+
Is the Go SDK open source?+
6 lines → $195/line
Simple, transparent pricing
Choose the plan that fits your volume and scale as you grow.
Dedicated
Maximum scale with tiered pricing
$19550% off/ month each line
Number of lines
6+ Lines 50% off
Save more as you scale. Best value: 6+ lines → $195/line
- Inquire about FaceTime audio & video calling
- Number pools
- Auto-scaling (inquire to activate)
- Auto-unbanning (inquire to activate)
- Volume pricing discounts
- Dedicated account manager
- Priority incident response
- Migration onboarding support
- Multi-organization number discounts
- Built for AI agents
- Real-time inbound webhooks
- Receive unlimited messages⁴
- Reply to anyone who messages you first
- Full API access
- Dedicated phone number
- Cannot initiate new conversations
Dedicated
Maximum scale with tiered pricing
$19550% off/ month each line
Number of lines
6+ Lines 50% off
Save more as you scale. Best value: 6+ lines → $195/line
- Inquire about FaceTime audio & video calling
- Number pools
- Auto-scaling (inquire to activate)
- Auto-unbanning (inquire to activate)
- Volume pricing discounts
- Dedicated account manager
- Priority incident response
- Migration onboarding support
- Multi-organization number discounts
Concierge
Need a hands-on implementation? Let our team build it for you.
Related Guides
Send iMessage Programmatically
Step-by-step guide to sending iMessages via API from your application.
Read guideiMessage for Business
How businesses use iMessage to engage customers with higher open rates than SMS or email.
Read guideBuild an iMessage Bot
Create automated iMessage bots for customer support, sales, and notifications.
Read guide