Network Double Opt-in (NDOI)
Learn how to handle an NDOI request using our API.
Last updated
Learn how to handle an NDOI request using our API.
Last updated
GET
/api/doi/<account_id>/<api_key>/
Initiate a network DOI subscription.
Headers
Name | Value |
---|---|
Required Body
Parameter | Type | Example | Description |
---|---|---|---|
Optional Body
Parameter | Type | Example | Description |
---|---|---|---|
Response
Asynchronous final notification will be delivered to your standard DR Path with codes:
For a full list of response codes, please click here.
Code | Description | Your action |
---|---|---|
Content-Type
application/json
Authorization
No Auth
account_id
string
43e36f50aaf111e272639171000000a9
Your unique Mobivate account id.
api_key
string
3b41d767316541bacef19d1382ac1e12
Your unique associated Mobivate account api-key.
source
integer
12345
The associated shortcode for your service.
destination
integer
XX7432104492
The recipient you want to send this message to.
keyword
string
mv-100620006
Your unique Mobivate keyword for your service.
amount
integer
10
The amount your message will be billed for receiving.
reference
string
ABC1234
Your internal unique reference.
provider
string
safaricom
The network provider this message will be sent via.
campaign
string
87e36f50aaf113e272629971000000a3
Your unique Mobivate campaign id.
frequency
integer
7
Billing frequency, in this case 7 is weekly.
stop
string
stop
To indicate a user is being unsubscribed from your service.
540
DOI Confirmed by user
Continue with the subscription (ie. send welcome messages and content)
541
Message delayed while waiting for DOI
Existing NDOI exists. Please hold before retrying
542
Message rejected due to DOI
The user has not confirmed the NDOI yet. Please wait before retrying.
543
DOI Unconfirmed / Awaiting user action
The user has not confirmed the NDOI yet. Please wait before retrying.
544
DOI Declined by user
The user declined NDOI. You should wait for the user to initiate a request again.
545
DOI Failed
Network DOI failed. Try again or contact Mobivate support to investigate further.