curl --location 'https://api.conexteo.com/models/rcs' \
--header 'X-APP-ID: <api-key>' \
--header 'X-API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"checkCapability": false,
"data": {
"choices": [
{
"postback_data": "rdv_confirm",
"text": "Oui, je confirme",
"type": "text"
},
{
"title": "Voir le RDV",
"type": "url",
"url": "https://example.com/rdv/123"
}
],
"description": "string",
"media_message_url": "https://example.com/image.png",
"title": "string"
},
"fallback": {
"content": "Hello World",
"sender": "SENDER"
},
"name": "Nom de votre campagne RCS",
"shorturl": {
"mode": "unique",
"url": "https://example.com/promo"
},
"type": "card",
"webviewMode": "FULL"
}'{
"card": {
"choices": [
{
"id": 31,
"label": "string",
"latitude": "48.8566",
"longitude": "2.3522",
"open_mode": "BROWSER",
"phoneNumber": "+33639980000",
"position": 0,
"postback_data": "string",
"text": "Oui",
"title": "Voir",
"type": "call",
"url": "https://example.com"
}
],
"description": "Découvrez nos nouveautés.",
"height": "SHORT",
"id": 41,
"media_message_url": "https://example.com/image.png",
"position": 0,
"title": "Nouvelle collection"
},
"carousel": {
"cards": [
{}
],
"choices": [
{
"id": 31,
"label": "string",
"latitude": "48.8566",
"longitude": "2.3522",
"open_mode": "BROWSER",
"phoneNumber": "+33639980000",
"position": 0,
"postback_data": "string",
"text": "Oui",
"title": "Voir",
"type": "call",
"url": "https://example.com"
}
],
"id": 51
},
"choices": [
{
"id": 31,
"label": "string",
"latitude": "48.8566",
"longitude": "2.3522",
"open_mode": "BROWSER",
"phoneNumber": "+33639980000",
"position": 0,
"postback_data": "string",
"text": "Oui",
"title": "Voir",
"type": "call",
"url": "https://example.com"
}
],
"fallback_content": "string",
"fallback_sender": "EXEMPLE",
"id": 4321,
"isModel": true,
"name": "Rendez-vous",
"rcs_type": "card",
"shorturl": {
"id": 61,
"shorturl_mode": "unique",
"shorturl_url": "https://example.com/promo"
},
"text": "Votre rendez-vous est confirmé.",
"webview_mode": "FULL"
}