Get all items in a list.
Default rate limit: 60 requests per minute.
GET
/lists/{listId}
curl \
--request GET 'https://api.lassomoderation.com/api/v1/lists/{listId}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"success": true,
"list": {
"id": "clf3twurb0005sas3keq74fqp",
"createdAt": "2023-03-11T10:33:41.304Z",
"name": "Bad words",
"type": "strings",
"items": [
"shut up",
"f*ck"
]
}
}
Response examples (401)
{
"success": false,
"error": "Invalid API key"
}
Response examples (404)
{
"success": false,
"error": "List not found"
}
Response examples (429)
{
"error": "Too many requests, check headers for limits"
}