Send Message With File

Send Message With File

Send message with File

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

yes

message

Text

string

yes

var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://console.fastwa.com/api/create-message',
  'headers': {
  },
  formData: {
    'appkey': 'd4b6203d-d3a8-40e9-92c0-1fb9276c1329',
    'authkey': 'HA57wrkH9dfXWuCUYuqLQqwmkOuIegmyydm1kgMc4fz6fNOhJx',
    'to': 'RECEIVER_NUMBER',
    'message': 'Example message',
    'file': 'https://www.africau.edu/images/default/sample.pdf'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Response

200

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

PreviousSend MessageNextSend Template

Last updated 3 months ago

Last updated