Passer au contenu principal
POST
/
whatsapp
/
status
/
post
Publier un statut
curl --request POST \
  --url https://api.wachap.com/v1/whatsapp/status/post \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "accountId": "<string>",
  "type": "text",
  "content": "<string>",
  "imageUrl": "<string>",
  "videoUrl": "<string>",
  "backgroundColor": "<string>",
  "font": 123,
  "privacyType": "<string>"
}
'

Statut Texte Simple

Envoyez un message texte simple dans votre statut.

Exemple de requête

curl -X POST https://api.wachap.com/v1/whatsapp/status/post \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer VOTRE_CLE_SECRETE" \
  -d '{
    "accountId": "account_xxx",
    "type": "text",
    "content": "Bonne journée à tous ! 😊"
  }'

Statut Texte avec Style

Personnalisez la couleur de fond et la police.

Exemple de requête

curl -X POST https://api.wachap.com/v1/whatsapp/status/post \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer VOTRE_CLE_SECRETE" \
  -d '{
    "accountId": "account_xxx",
    "type": "text",
    "content": "Nouveau produit disponible !",
    "backgroundColor": "#25D366",
    "font": 4,
    "privacyType": "contacts"
  }'

Statut Image avec Légende

Publiez une image avec une légende optionnelle.

Exemple de requête

curl -X POST https://api.wachap.com/v1/whatsapp/status/post \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer VOTRE_CLE_SECRETE" \
  -d '{
    "accountId": "account_xxx",
    "type": "image",
    "imageUrl": "https://example.com/promo.jpg",
    "caption": "Découvrez notre nouvelle collection ! 🎉"
  }'

Statut Vidéo

Publiez une vidéo avec une légende optionnelle.

Exemple de requête

curl -X POST https://api.wachap.com/v1/whatsapp/status/post \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer VOTRE_CLE_SECRETE" \
  -d '{
    "accountId": "account_xxx",
    "type": "video",
    "videoUrl": "https://example.com/video.mp4",
    "caption": "Regardez notre démo produit"
  }'

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Corps

application/json
accountId
string
type
enum<string>
Options disponibles:
text,
image,
video
content
string
imageUrl
string
videoUrl
string
backgroundColor
string
font
integer
privacyType
string

Réponse

200

OK