Send Template

Send Template

Send Template Only

Endpoint : https://medan.velita.id/api/create-message

Parameter
Description
Data Type
Required

appkey

Please create an application then copy the available appkey.

string

yes

authkey

Please create an application then copy the available authkey.

string

yes

to

Receiver Number

string

Yes

file

Url of file

string

No

variables

the first value you list replaces the {1} variable in the template message and the second value you list replaces the {2} variable

Array

No

message

Text

string

No

template_id

string

No

curl --location --request POST 'https://console.fastwa.com/api/create-message' \
--form 'appkey="d4b6203d-d3a8-40e9-92c0-1fb9276c1329"' \
--form 'authkey="HA57wrkH9dfXWuCUYuqLQqwmkOuIegmyydm1kgMc4fz6fNOhJx"' \
--form 'to="RECEIVER_NUMBER"' \
--form 'template_id="TEMPLATE_ID"' \
--form 'variables[{variableKey1}]="jhone"' \
--form 'variables[{variableKey2}]="replaceable value"'

Response

200

{
    "message_status": "Success",
    "data": {
        "from": "6281376214---",
        "to": "628218530----",
        "status_code": 200
    }
}
```

PreviousSend Message With FileNextNode.Js - Request

Last updated 3 months ago

Last updated