Create list

POST /lists

Create a new list

Headers

application/json

Body

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
POST /lists
curl \
 -X POST https://api.lassomoderation.com/api/v1/lists \
 -H "Content-Type: application/json" \
 -H "Authorization: Bearer lasso.a35afd...a6ea" \
 -d '{"name":"Bad word list","type":"strings"}'
Request example
# Headers
Authorization: Bearer lasso.a35afd...a6ea

# Payload
{
  "name": "Bad word list",
  "type": "strings"
}
Response examples (200)
{
  "success": true,
  "listId": "clp765qpz06r0saam8dv1p6uh"
}