Skip to content

빠른 시작 ​

이 문서는 SMS 한 통을 보냅니다. API-Key, X-TenantID, 그리고 승인된 발신자 이름이 필요합니다.

1. 인증 정보 설정 ​

bash
export ME_API_KEY="your-api-key"
export ME_TENANT="your-organization-id"
export ME_BASE="https://api.messageeagle.com/api/v1/app1/platform"

2. 메시지 보내기 ​

bash
curl -X POST "$ME_BASE/sms/send_messages/message" \
  -H "API-Key: $ME_API_KEY" \
  -H "X-TenantID: $ME_TENANT" \
  -H "Content-Type: application/json" \
  -d '{
    "check_spam_msg_mode": "not_check",
    "data": [
      {
        "sender_name": "MyBrand",
        "operator": "ais",
        "message": "Hello",
        "phone_number": "+66886578553"
      }
    ]
  }'

3. 결과 읽기 ​

응답은 data로 감싸여 돌아옵니다. operator·발신자 이름·본문이 같은 행은 하나의 batch로 묶입니다.

json
{
  "data": {
    "accepted": 1,
    "rejected": 0,
    "batches": [
      {
        "batch_id": "018f7b2a-7c3e-7a1b-9c2d-1a2b3c4d5e6f",
        "accepted": 1,
        "rejected": 0
      }
    ]
  }
}

발신자 이름은 승인이 필요합니다

대상 통신사에서 sender_name이 승인되지 않았다면 해당 수신자는 요청 전체를 실패시키지 않고 rejected에 집계됩니다.

다음 단계 ​