[{"data":1,"prerenderedAt":418},["ShallowReactive",2],{"doc-article-messaging-send-text":3,"doc-siblings-messaging":407},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"category":5,"order":10,"difficulty":11,"time_to_complete":12,"related":13,"code_curl":16,"code_node":17,"code_python":18,"code_go":19,"body":20,"_type":401,"_id":402,"_source":403,"_file":404,"_stem":405,"_extension":406},"\u002Fdeveloper\u002Fmessaging\u002Fsend-text","messaging",false,"","Send Text Messages","Send direct, high-speed custom text messages to customers using the REST API.",1,"beginner","4 minutes",[14,15],"\u002Fdocs\u002Fmessaging\u002Fsend-media","\u002Fdocs\u002Fmessaging\u002Fsend-template","# Send custom text message\ncurl -X POST \"https:\u002F\u002Fapi.aisoule.com\u002Fv1\u002Fmessages\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"to\": \"918856879188\",\n    \"type\": \"text\",\n    \"text\": {\n      \"body\": \"Hello, thank you for choosing AISoule! 🚀\"\n    }\n  }'\n","\u002F\u002F Dispatch custom text message via Node.js\nconst axios = require('axios');\n\naxios.post('https:\u002F\u002Fapi.aisoule.com\u002Fv1\u002Fmessages', {\n  to: '918856879188',\n  type: 'text',\n  text: {\n    body: 'Hello, thank you for choosing AISoule! 🚀'\n  }\n}, {\n  headers: { 'Authorization': 'Bearer YOUR_API_KEY' }\n})\n.then(res => console.log('Message sent:', res.data.message_id))\n.catch(err => console.error('Sending Error:', err.message));\n","# Send text message in Python\nimport requests\n\npayload = {\n    \"to\": \"918856879188\",\n    \"type\": \"text\",\n    \"text\": {\n        \"body\": \"Hello, thank you for choosing AISoule! 🚀\"\n    }\n}\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_KEY\",\n    \"Content-Type\": \"application\u002Fjson\"\n}\nres = requests.post(\"https:\u002F\u002Fapi.aisoule.com\u002Fv1\u002Fmessages\", json=payload, headers=headers)\nprint(\"Response:\", res.json())\n","\u002F\u002F Send text message in Go\npackage main\n\nimport (\n    \"bytes\"\n    \"fmt\"\n    \"net\u002Fhttp\"\n    \"io\"\n)\n\nfunc main() {\n    jsonStr := []byte(`{\"to\":\"918856879188\",\"type\":\"text\",\"text\":{\"body\":\"Hello from Go! 🚀\"}}`)\n    req, _ := http.NewRequest(\"POST\", \"https:\u002F\u002Fapi.aisoule.com\u002Fv1\u002Fmessages\", bytes.NewBuffer(jsonStr))\n    req.Header.Set(\"Authorization\", \"Bearer YOUR_API_KEY\")\n    req.Header.Set(\"Content-Type\", \"application\u002Fjson\")\n    \n    client := &http.Client{}\n    resp, _ := client.Do(req)\n    defer resp.Body.Close()\n    \n    body, _ := io.ReadAll(resp.Body)\n    fmt.Println(\"Sent:\", string(body))\n}\n",{"type":21,"children":22,"toc":393},"root",[23,31,37,44,57,63,155,161,359,363,377,382],{"type":24,"tag":25,"props":26,"children":28},"element","h1",{"id":27},"send-text-messages",[29],{"type":30,"value":8},"text",{"type":24,"tag":32,"props":33,"children":34},"p",{},[35],{"type":30,"value":36},"Deploy standard outbound WhatsApp text messages to any valid phone number utilizing a simple JSON schema.",{"type":24,"tag":38,"props":39,"children":41},"h2",{"id":40},"endpoint",[42],{"type":30,"value":43},"Endpoint",{"type":24,"tag":45,"props":46,"children":51},"pre",{"className":47,"code":49,"language":50,"meta":7},[48],"language-http","POST \u002Fv1\u002Fmessages\n","http",[52],{"type":24,"tag":53,"props":54,"children":55},"code",{"__ignoreMap":7},[56],{"type":30,"value":49},{"type":24,"tag":38,"props":58,"children":60},{"id":59},"request-headers",[61],{"type":30,"value":62},"Request Headers",{"type":24,"tag":64,"props":65,"children":66},"table",{},[67,92],{"type":24,"tag":68,"props":69,"children":70},"thead",{},[71],{"type":24,"tag":72,"props":73,"children":74},"tr",{},[75,82,87],{"type":24,"tag":76,"props":77,"children":79},"th",{"align":78},"left",[80],{"type":30,"value":81},"Header",{"type":24,"tag":76,"props":83,"children":84},{"align":78},[85],{"type":30,"value":86},"Value",{"type":24,"tag":76,"props":88,"children":89},{"align":78},[90],{"type":30,"value":91},"Required",{"type":24,"tag":93,"props":94,"children":95},"tbody",{},[96,127],{"type":24,"tag":72,"props":97,"children":98},{},[99,109,118],{"type":24,"tag":100,"props":101,"children":102},"td",{"align":78},[103],{"type":24,"tag":53,"props":104,"children":106},{"className":105},[],[107],{"type":30,"value":108},"Authorization",{"type":24,"tag":100,"props":110,"children":111},{"align":78},[112],{"type":24,"tag":53,"props":113,"children":115},{"className":114},[],[116],{"type":30,"value":117},"Bearer YOUR_API_KEY",{"type":24,"tag":100,"props":119,"children":120},{"align":78},[121],{"type":24,"tag":122,"props":123,"children":124},"strong",{},[125],{"type":30,"value":126},"Yes",{"type":24,"tag":72,"props":128,"children":129},{},[130,139,148],{"type":24,"tag":100,"props":131,"children":132},{"align":78},[133],{"type":24,"tag":53,"props":134,"children":136},{"className":135},[],[137],{"type":30,"value":138},"Content-Type",{"type":24,"tag":100,"props":140,"children":141},{"align":78},[142],{"type":24,"tag":53,"props":143,"children":145},{"className":144},[],[146],{"type":30,"value":147},"application\u002Fjson",{"type":24,"tag":100,"props":149,"children":150},{"align":78},[151],{"type":24,"tag":122,"props":152,"children":153},{},[154],{"type":30,"value":126},{"type":24,"tag":38,"props":156,"children":158},{"id":157},"payload-parameters",[159],{"type":30,"value":160},"Payload Parameters",{"type":24,"tag":64,"props":162,"children":163},{},[164,189],{"type":24,"tag":68,"props":165,"children":166},{},[167],{"type":24,"tag":72,"props":168,"children":169},{},[170,175,180,184],{"type":24,"tag":76,"props":171,"children":172},{"align":78},[173],{"type":30,"value":174},"Parameter",{"type":24,"tag":76,"props":176,"children":177},{"align":78},[178],{"type":30,"value":179},"Type",{"type":24,"tag":76,"props":181,"children":182},{"align":78},[183],{"type":30,"value":91},{"type":24,"tag":76,"props":185,"children":186},{"align":78},[187],{"type":30,"value":188},"Description",{"type":24,"tag":93,"props":190,"children":191},{},[192,241,280,312],{"type":24,"tag":72,"props":193,"children":194},{},[195,204,213,220],{"type":24,"tag":100,"props":196,"children":197},{"align":78},[198],{"type":24,"tag":53,"props":199,"children":201},{"className":200},[],[202],{"type":30,"value":203},"to",{"type":24,"tag":100,"props":205,"children":206},{"align":78},[207],{"type":24,"tag":53,"props":208,"children":210},{"className":209},[],[211],{"type":30,"value":212},"string",{"type":24,"tag":100,"props":214,"children":215},{"align":78},[216],{"type":24,"tag":122,"props":217,"children":218},{},[219],{"type":30,"value":126},{"type":24,"tag":100,"props":221,"children":222},{"align":78},[223,225,231,233,239],{"type":30,"value":224},"Destination mobile number, formatted with active country code (e.g. ",{"type":24,"tag":53,"props":226,"children":228},{"className":227},[],[229],{"type":30,"value":230},"918856879188",{"type":30,"value":232},", no spaces or ",{"type":24,"tag":53,"props":234,"children":236},{"className":235},[],[237],{"type":30,"value":238},"+",{"type":30,"value":240},").",{"type":24,"tag":72,"props":242,"children":243},{},[244,253,261,268],{"type":24,"tag":100,"props":245,"children":246},{"align":78},[247],{"type":24,"tag":53,"props":248,"children":250},{"className":249},[],[251],{"type":30,"value":252},"type",{"type":24,"tag":100,"props":254,"children":255},{"align":78},[256],{"type":24,"tag":53,"props":257,"children":259},{"className":258},[],[260],{"type":30,"value":212},{"type":24,"tag":100,"props":262,"children":263},{"align":78},[264],{"type":24,"tag":122,"props":265,"children":266},{},[267],{"type":30,"value":126},{"type":24,"tag":100,"props":269,"children":270},{"align":78},[271,273,278],{"type":30,"value":272},"Must be set to ",{"type":24,"tag":53,"props":274,"children":276},{"className":275},[],[277],{"type":30,"value":30},{"type":30,"value":279},".",{"type":24,"tag":72,"props":281,"children":282},{},[283,291,300,307],{"type":24,"tag":100,"props":284,"children":285},{"align":78},[286],{"type":24,"tag":53,"props":287,"children":289},{"className":288},[],[290],{"type":30,"value":30},{"type":24,"tag":100,"props":292,"children":293},{"align":78},[294],{"type":24,"tag":53,"props":295,"children":297},{"className":296},[],[298],{"type":30,"value":299},"object",{"type":24,"tag":100,"props":301,"children":302},{"align":78},[303],{"type":24,"tag":122,"props":304,"children":305},{},[306],{"type":30,"value":126},{"type":24,"tag":100,"props":308,"children":309},{"align":78},[310],{"type":30,"value":311},"Text details block.",{"type":24,"tag":72,"props":313,"children":314},{},[315,324,332,339],{"type":24,"tag":100,"props":316,"children":317},{"align":78},[318],{"type":24,"tag":53,"props":319,"children":321},{"className":320},[],[322],{"type":30,"value":323},"text.body",{"type":24,"tag":100,"props":325,"children":326},{"align":78},[327],{"type":24,"tag":53,"props":328,"children":330},{"className":329},[],[331],{"type":30,"value":212},{"type":24,"tag":100,"props":333,"children":334},{"align":78},[335],{"type":24,"tag":122,"props":336,"children":337},{},[338],{"type":30,"value":126},{"type":24,"tag":100,"props":340,"children":341},{"align":78},[342,344,350,352,358],{"type":30,"value":343},"The actual message content. Can include emoji and formatting parameters (e.g., ",{"type":24,"tag":53,"props":345,"children":347},{"className":346},[],[348],{"type":30,"value":349},"*bold*",{"type":30,"value":351},", ",{"type":24,"tag":53,"props":353,"children":355},{"className":354},[],[356],{"type":30,"value":357},"_italics_",{"type":30,"value":240},{"type":24,"tag":360,"props":361,"children":362},"hr",{},[],{"type":24,"tag":38,"props":364,"children":366},{"id":365},"response-structure-200-ok",[367,369,375],{"type":30,"value":368},"Response Structure (",{"type":24,"tag":53,"props":370,"children":372},{"className":371},[],[373],{"type":30,"value":374},"200 OK",{"type":30,"value":376},")",{"type":24,"tag":32,"props":378,"children":379},{},[380],{"type":30,"value":381},"Upon successful message dispatch to Meta's engines, a unique, system-tracked identifier is returned:",{"type":24,"tag":45,"props":383,"children":388},{"className":384,"code":386,"language":387,"meta":7},[385],"language-json","{\n  \"success\": true,\n  \"message_id\": \"msg_90a82b7194689c1\",\n  \"status\": \"queued\",\n  \"recipient\": \"918856879188\"\n}\n","json",[389],{"type":24,"tag":53,"props":390,"children":391},{"__ignoreMap":7},[392],{"type":30,"value":386},{"title":7,"searchDepth":394,"depth":394,"links":395},2,[396,397,398,399],{"id":40,"depth":394,"text":43},{"id":59,"depth":394,"text":62},{"id":157,"depth":394,"text":160},{"id":365,"depth":394,"text":400},"Response Structure (200 OK)","markdown","content:developer:messaging:send-text.md","content","developer\u002Fmessaging\u002Fsend-text.md","developer\u002Fmessaging\u002Fsend-text","md",[408,411,414,417],{"_path":409,"title":410},"\u002Fdeveloper\u002Fmessaging\u002Fsend-interactive","Send Interactive Messages",{"_path":412,"title":413},"\u002Fdeveloper\u002Fmessaging\u002Fsend-media","Send Media Messages",{"_path":415,"title":416},"\u002Fdeveloper\u002Fmessaging\u002Fsend-template","Send Template Messages",{"_path":4,"title":8},1780423178046]