Version de travail · contenus et exemples à affiner Voir les 95 pages ↗
Parlons de votre projet ↗
Référence API / P059

Envoyer une notification SMS

Adaptation éditoriale
Référence de travail. Les routes, schémas, limites et procédures hérités du référentiel sont à aligner avec l’API d’Éric. Ils ne prouvent pas une fonctionnalité livrée. Les hôtes .invalid sont des exemples inertes.

Opération

POST /partner_api/messages

Authentification

ApiKey``ApiKeyId

X-API-KEY

Emplacement : header

X-API-KEY-ID

Emplacement : header

Corps de la requête

application/json

Définitions TypeScript

Utilisez le type du corps de requête dans TypeScript.

channel*"sms"

Value in

  • "sms"

to*string

body*string

reference*string

Réponses

200 application/json

401 application/json

403 application/json

422 application/json

500 application/json

cURL

JavaScript

Go

Python

Java

C#

Rust

curl -X POST "https://api.kelyko.invalid/partner_api/messages" \
  -H "X-API-KEY: " \
  -H "X-API-KEY-ID: " \
  -H "Content-Type: application/json" \
  -d '{
    "channel": "sms",
    "to": "string",
    "body": "string",
    "reference": "string"
  }'

200401403422500

{
  "id": "string",
  "businessId": "string",
  "channel": "sms",
  "to": "string",
  "body": "string",
  "reference": "string",
  "status": "pending",
  "failedReason": "string",
  "createdAt": "2019-08-24T14:15:22Z"
}

List Kelyko Texto messages (Partner API)GET\ \ Previous Page Get Kelyko Texto message balances (Partner API)GET\ \ Next Page

Demander à l'IA ⌘I