Add A List

Add a new subscription list object.

https://app.mojotxt.com/api/v1/{phone_number}/lists/add

The ListName and Keyword parameters are required, but any List Object field can be included as well. You can send parameters as part of the GET querystring, or as POST data. Fields not included with your request will be ignored. To set a field to NULL, send an empty value.

Upon success, the server will return the newly created object's ListID in the response "created_id" response field.

Example Request:

GET https://app.mojotxt.com/api/v1/+16146827117/lists/add?ListName=My+New+List&Keyword=new

-or-

POST https://app.mojotxt.com/api/v1/+16146827117/lists/add
DATA ListName=My New List
     Keyword=new

Example Result:

{
"result": "success",
"timestamp": 1459373903,
"request": {
"phone": "+16146827117",
"object": "lists",
"verb": "add",
"ListName": "My New List",
"Keyword": "new"
},
"message": "The list object was added successfully.",
"created_id": 170
}