Get API Key
This document will detail how to obtain an existing API key.
POST /auth/getkey
POST /auth/getkeycurl -X POST \
"https://api.mobivatebulksms.com/auth/getkey" \
-H 'Content-Type: application/json' \
-d '{ "username": "[USERNAME]", "password": "[PASSWORD]"}'import requests
headers = {
'Content-Type': 'application/json',
}
json_data = {
'username': '[USERNAME]',
'password': '[PASSWORD]',
}
response = requests.post('https://api.mobivatebulksms.com/auth/getkey', headers=headers, json=json_data)
# Note: json_data will not be serialized by requests
# exactly as it was in the original request.
#data = '{ "username": "[USERNAME]", "password": "[PASSWORD]"}'
#response = requests.post('https://api.mobivatebulksms.com/auth/getkey', headers=headers, data=data)Name
Value
Name
Type
Required?
Description
{
"apiKey":"abcd1234-9922-abcd-1234-abcd1234abcd"
}{
"code":401,
"message":"Invalid Credentials"
}Last updated