Q:

Not able to send sms from smsgateway.me after its update

I was sending sms programmatically using php from localhost. But today after update of smsgateway.me to v4, I am not able to send any message. I actually don't know how to pass API key to given example. I tried a lot but no success.
Request Endpoint
Endpoint:   https://smsgateway.me/api/v4/message/send
Method: POST
Request Parameters
Name    Location    Required    Description
Content body    true    JSON payload with the information of SMS messages the API should send

Request Example
[
  {
    "phone_number": "07791064781",
    "message": "Hello World",
    "device_id": 1
  },
  {
    "phone_number": "07791064782",
    "message": "Hello World",
    "device_id": 2
  }
]

I also check with postman but it is returning "500 Internal Server Error"
Can you please check and help me. Thanks.

A:

I read the docs on their site, and it appears that you might have forgotten to send the API key with the request. If you have the API key, you need to send it in an Authorization header.
Authorization: <the api key here>

Using Postman, you can set this header and retry.

