Create a new list. The number of lists a workspace can have depends on its plan; a 400 error is returned when the plan limit is reached.
Default rate limit: 60 requests per minute.
POST
/lists
curl \
--request POST 'https://api.lassomoderation.com/api/v1/lists' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '"{\n \"name\": \"Bad word list\",\n \"type\": \"strings\"\n}"'
Request example
{
"name": "Bad word list",
"type": "strings"
}
Response examples (200)
{
"success": true,
"listId": "clp765qpz06r0saam8dv1p6uh"
}
Response examples (400)
{
"success": false,
"error": {
"content_id": "Value can be at most 100 characters"
}
}
Response examples (401)
{
"success": false,
"error": "Invalid API key"
}
Response examples (429)
{
"error": "Too many requests, check headers for limits"
}