D7SMS

FREE
Verified
By Direct7 Networks | Updated 19 days ago | SMS
Popularity

9.5 / 10

Latency

166ms

Service Level

100%

Health Check

N/A

Followers: 121
Resources:
Product Website Terms of use
API Creator:
Rapid account: Direct 7 Networks
Direct7 Networks
direct7-networks
Log In to Rate API
Rating: 3.4 - Votes: 22

README


Check out the following resources for all your API needs:

  1. Your ultimate guide to API success: https://d7networks.com/docs
  2. Streamline your API testing process with Postman: https://documenter.getpostman.com/view/9076938/UzXM1Jcc
  3. Get a hands-on look at the functionality of our API using OpenAPI Spec: https://www.apimatic.io/api-docs/d7api

Requirements:

  1. Join the D7 Community and create your account today!
  2. Ensure seamless service by keeping your D7 account credit at a sufficient level.

Create app and get auth Token

The d7 user dashboard includes a developer section where you can create applications. Each application has its own authentication token.
For creating your first application, click here.
Make sure you copy the authentication token generated during app creation
Also the token can be regenerated at any time by clicking here.

The token will look like this:

eyJhbGadfadfciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWsdsgQiOiJhdXRoLWJhY2adatlbmQ6YXBadsfwIiwic3ad

Balance & Credits

Check here to see how many test credits and main balance you have left on your D7Networks account

Response:
    {
    "balance": 99.9999999
    }

Messages

1. Send Message
_ Request parameters
- Parameters Value / Pattern Example(s)
originator* The Sender/Header of a message. We can use your brand name with a maximum character limit of 11 or your mobile number with your country code. If you would like to register a new Sender ID, you can submit your details here SMSInfo
recipients* Mobile Numbers to send SMS seperated by comma in an array. The recipient’s phone number should have a country code prefix. You can also set the Default Country here, and all your messages will be prefixed with the selected country code. +971509752555
content* The message content is being sent. A long message over 160 characters will be split into multiple messages with 153 characters each and forwarded to telecom. When Unicode messages exceed 70 characters, they are split into multiple messages of 63 characters each. Also, billing will be based on the number of message parts sent Greetings from D7 API
data_coding Set as text for normal GSM 03.38 characters(English, normal characters). Set as unicode for non GSM 03.38 characters (Arabic, Chinese, Hebrew, Greek like regional languages and Unicode characters). Set as auto so we will find the data_coding based on your content. text

* indicates Mandatory Parameter

_ Sample request body
{
   "messages": [
       {
           "channel": "sms",
           "originator": "D7-RapidAPI",
           "recipients": [
               "+9715097526xx",
               "+9715097526xx"
           ],
           "content": "Greetings from D7 API ",
           "data_coding": "text"
       }
   ]
}
_ Success Response
{
    "request_id": "e06b8ccb-eb07-4786-b188-25ebabcdc17",
    "status": "accepted",
    "created_at": "2023-02-01T08:46:26.390251"
}

Verify (OTP / 2FA)

1. Generate OTP
_ Request parameters

When calling D7Verify API from an application, the below parameters must be passed (at least mandatory ones) and the api will return the request id id on success.

- Parameter Value / Pattern Example(s)
*originator The Sender/Header of a message. We can use your brand name with a maximum character limit of 11 or your mobile number with your country code. If you would like to register a new Sender ID, you can submit your details here SMSInfo
*recipients Mobile Numbers to send OTP code. +971509752555
*content OTP Message Content with {} placeholder Greetings from D7 API, your mobile verification code is: {}
*expiry OTP Expiry time in seconds 600
*data_coding Set as text for normal GSM 03.38 characters(English, normal characters). Set as unicode for non GSM 03.38 characters (Arabic, Chinese, Hebrew, Greek like regional languages and Unicode characters). Set as auto so we will find the data_coding based on your content. text

* indicates Mandatory Parameter

_ Sample request body
{
   "originator": "SignOTP",
   "recipient": "+971509752555",
   "content": "Greetings from D7 API, your mobile verification code is: {}",
   "expiry": "600",
   "data_coding": "text"
}
_ Response

When the request is validated, otp_id, status and expiry will be returned. Users can use this otp_id to regenerate otp and verify otp

_ Success
{
    "otp_id": "dfd31c0e-2cd2-494e-88d2-6cac05263a7f",
    "status": "OPEN",
    "expiry": 600
} 
2. Resend / Regenerate OTP

OTP can be regenerated using the otp_id which was returned from Generate OTP.

_ Sample request body
{
   "otp_id":"8d963dbf-d655-4fe6-9157-48885a036050"
}
_ Response

When the request is validated, otp_id, status and expiry will be returned. Users can use this otp_id to regenerate otp and verify otp

_ Success
{
    "otp_id": "84864e9c-81f5-41af-9483-c90dffd97e4a",
    "status": "OPEN",
    "expiry": 600,
    "resend_count": 1
} 
3. Verify OTP

Once the user recieve the OTP, it can be verified at this endpoint

_Sample request body
{
   "otp_id":"8d963dbf-d655-4fe6-9157-48885a036050",
   "otp_code":435986
}
_Response

When the request is validated the status will be returned.

_Success
{
    "status": "APPROVED"
}
4. Get OTP Status

You can always check the OTP status at this endpoint
** replace “OTPID” with one you got at the previous step

_Success Response
{
    "status": "OPEN"
}