본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)48k · #6293

sendblue-api

하는 일

이 도구는 컴퓨터 프로그램이 전화번호를 이용해 문자 메시지(SMS, iMessage, RCS)를 보내고 받을 수 있게 합니다. 개별 메시지나 그룹 메시지를 보내고, 특수 효과와 반응을 추가하며, 상대가 입력 중인지도 알 수 있습니다.

사용하는 경우

  • ✓애플리케이션이 SMS 알림을 보내야 할 때.
  • ✓문자 메시지에 응답하는 챗봇을 만들고 싶을 때.
  • ✓메시지 발송을 더 큰 시스템에 통합하는 경우.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/sendblue/sendblue-api/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/sendblue/sendblue-api/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“친구에게 특수 효과가 있는 문자 메시지를 보내 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

프로그램은 메시지 내용(받는 사람, 보낼 내용 등)을 담아 Sendblue API에 요청을 보냅니다. Sendblue는 설정된 전화번호를 통해 메시지를 보냅니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Sendblue API

Overview

Sendblue is a REST API that sends iMessage (blue bubbles), SMS, and RCS from a provisioned phone number. Everything is plain JSON over HTTPS — no SDK is required. The API covers outbound 1:1 and group sends, iMessage effects, reactions, typing indicators, status callbacks, and inbound webhooks.

When to Use This Skill

  • Use when writing application code (server, worker, function) that sends Sendblue messages as part of a long-running service.
  • Use when receiving inbound messages via webhooks.
  • Use when you need features the CLI does not expose: send styles, reactions, group messages, typing indicators, status callbacks, media uploads, or the contacts API beyond basic CRUD.
  • Reach for [[sendblue-cli]] instead for shell-context outbound: one-shot scripts, cron jobs, agent hooks, "ping me when X" workflows.

How It Works

Step 1: Authenticate

https://api.sendblue.com

Every request needs two headers:

sb-api-key-id: <YOUR_API_KEY_ID>
sb-api-secret-key: <YOUR_API_SECRET>
Content-Type: application/json

Keep both values server-side — never ship them to a browser or mobile client.

Step 2: Send a message

curl -X POST https://api.sendblue.com/api/send-message \
  -H "sb-api-key-id: $KEY_ID" \
  -H "sb-api-secret-key: $SECRET" \
  -H 'Content-Type: application/json' \
  -d '{
    "number": "+15551234567",
    "from_number": "+1YOUR_SENDBLUE_NUMBER",
    "content": "Hello from the API!"
  }'

Phone numbers must be E.164. from_number must be a line you own — list yours with GET /api/lines.

Step 3: Track delivery

The synchronous response includes a message_handle (Apple GUID — persist this; you need it for reactions and replies) and a status from REGISTERED, PENDING, QUEUED, ACCEPTED, SENT, DELIVERED, DECLINED, ERROR. Only DELIVERED means it landed. Use status_callback instead of polling /api/status.

Step 4: Receive inbound

Configure webhook URLs in the dashboard or via POST /api/account/webhooks. Sendblue POSTs JSON to your endpoint. Respond with 2xx promptly — non-2xx triggers retries and duplicate deliveries. Event types: receive, outbound, typing_indicator, call_log, line_blocked, line_assigned, contact_created.

Core Endpoints

Method Path Purpose
POST /api/send-message Send a 1:1 message (text and/or media)
POST /api/send-group-message Send to multiple recipients
POST /api/create-group Create a named group thread
POST /api/send-reaction Send a tapback (love/like/dislike/laugh/emphasize/question)
POST /api/send-typing-indicator Show "typing…" in the recipient's thread
POST /api/mark-read Send a read receipt
POST /api/upload-file / /api/upload-media-object Upload media (direct or from URL)
GET /api/status Poll a message's delivery status
GET /api/evaluate-service Check whether a number is on iMessage
GET /api/v2/messages / /api/v2/messages/:id Read message history
GET / POST / PUT / DELETE /api/v2/contacts[...] Manage contacts
GET /api/lines List your Sendblue phone numbers
POST /api/account/webhooks CRUD webhook subscriptions

Examples

Example 1: Send with media, effects, and a status callback

POST /api/send-message
{
  "number": "+15551234567",
  "from_number": "+1YOUR_SENDBLUE_NUMBER",
  "content": "Optional text",
  "media_url": "https://example.com/img.jpg",
  "send_style": "celebration",
  "status_callback": "https://yourapp.com/sendblue/status"
}

content and/or media_url is required. send_style is iMessage-only — valid values: celebration, shooting_star, fireworks, lasers, love, confetti, balloons, spotlight, echo, invisible, gentle, loud, slam. Ignored on SMS. Text up to 18,996 chars; media up to 100 MB on iMessage, 5 MB on SMS.

Example 2: Group message

POST /api/send-group-message
{
  "numbers": ["+15551234567", "+15557654321"],
  "from_number": "+1YOUR_SENDBLUE_NUMBER",
  "content": "Hey team"
}

The response returns a group_id — persist it to send follow-ups into the same thread instead of creating a new one each time.

Example 3: React to a message

POST /api/send-reaction
{
  "from_number": "+1YOUR_SENDBLUE_NUMBER",
  "message_handle": "<message_handle from prior send>",
  "reaction": "love"
}

…

자주 묻는 질문

iMessage, SMS, RCS는 무엇인가요?

메시지를 보내는 서로 다른 방식입니다. iMessage는 Apple의 서비스(파란 말풍선), SMS는 전통적인 문자, RCS는 더 현대적인 SMS입니다.

‘웹훅’이란 무엇인가요?

새 메시지가 도착하거나 보낸 메시지가 전달되었을 때 Sendblue가 프로그램에 보내는 ‘알림’과 같습니다.

사진과 동영상도 보낼 수 있나요?

예, 사진과 동영상 같은 미디어를 보낼 수 있지만, iMessage인지 SMS인지에 따라 크기 제한이 있습니다.

상세 정보

작성자의 원본 설명

Send and receive iMessage, SMS, and RCS from application code via the Sendblue HTTP API — text, media, group messages, send styles, reactions, typing indicators, status callbacks, and inbound webhooks.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#6293
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬