#Create contact list

Create a new contact list.

#Method

POST

#Path

/lists

#Body parameters

NameValueData typeRequired?
nameContact list nameStringYes

#Response

#HTTP status codes

CodeRemarks
200Request was successful.
400Validation error or request body was incorrectly formatted.
401Authentication failed. Check apikey header.
404Requested API endpoint not found.
429The rate limit has been reached.
500-511There was a problem processing the request on our server. Try again later.

#Response object

NameValueRemarks
statussuccess or error-
errorsArray of object { msg: [error detail] }Only present when status is error.
dataObject { id: [new contact list id]}Only present when status is success

#Code sample

curl --location --request POST 'https://api.sociocs.com/lists' \ --header 'apikey: your_api_key' \ --header 'Content-Type: application/json' \ --data-raw '{ "name": "My Contact List" }'