Creating a New API Key
This document will go over how to generate/create a new API key.
POST /auth/createkey
POST /auth/createkeycurl -X POST \
"https://api.mobivatebulksms.com/auth/createkey" \
-H 'Content-Type: application/json' \
-d '{ "username": "[email protected]", "password": "your-pass"}'import requests
headers = {
'Content-Type': 'application/json',
}
json_data = {
'username': '[email protected]',
'password': 'your-pass',
}
response = requests.post('https://api.mobivatebulksms.com/auth/createkey', headers=headers, json=json_data)
# Note: json_data will not be serialized by requests
# exactly as it was in the original request.
#data = '{ "username": "[email protected]", "password": "your-pass"}'
#response = requests.post('https://api.mobivatebulksms.com/auth/createkey', headers=headers, data=data)Name
Value
Name
Type
Required?
Description
{
"apiKey":"abcd1234-9922-abcd-1234-abcd1234abcd"
}{
"code":401,
"message":"Invalid Credentials"
}Last updated