Import Content
Import up to a 1000 pieces of content into Lasso per request. Rate limit: 60 per minute
POST
/import/content
curl \
-X POST https://api.lassomoderation.com/api/v1/import/content \
-H "Content-Type: application/json" \
-H "Authorization: Bearer lasso.a35afd...a6ea" \
-d '{"contents":[{"text":"This is the content of the message 🎉","user":{"id":"clpmqe04e00gjsarrtctnyr7d","name":"John Doe","metadata":{"tag_line":"I am a person of mystery...","connections":8},"created_at":"2022-07-21T18:12:39.000Z","country_code":"US","email_domain":"gmail.com","signup_method":"google","profile_image_url":"https://www.example.com/profile/image.png"},"category":{"id":"clpmqe03y00ftsarr9hwvsf1x","name":"Mobile Chat"},"metadata":{"likes":8},"content_id":"clpmqe04600g7sarrxxg0mbjo","created_at":"2022-07-21T18:12:39.000Z","image_urls":["https://example.com/image.png"],"video_urls":["https://example.com/video.mov"],"subcategory":{"id":"clpmqe03y00fvsarrqv084d4x","name":"General Channel","metadata":{"description":"This channel is used for general communication"},"createdByUserId":"clg3k5ypi000gsad0v1znilap"},"parent_content_id":"clpwuqoxi0001saas891t1jn7"}]}'
Request example
{
"contents": [
{
"text": "This is the content of the message 🎉",
"user": {
"id": "clpmqe04e00gjsarrtctnyr7d",
"name": "John Doe",
"metadata": {
"tag_line": "I am a person of mystery...",
"connections": 8
},
"created_at": "2022-07-21T18:12:39.000Z",
"country_code": "US",
"email_domain": "gmail.com",
"signup_method": "google",
"profile_image_url": "https://www.example.com/profile/image.png"
},
"category": {
"id": "clpmqe03y00ftsarr9hwvsf1x",
"name": "Mobile Chat"
},
"metadata": {
"likes": 8
},
"content_id": "clpmqe04600g7sarrxxg0mbjo",
"created_at": "2022-07-21T18:12:39.000Z",
"image_urls": [
"https://example.com/image.png"
],
"video_urls": [
"https://example.com/video.mov"
],
"subcategory": {
"id": "clpmqe03y00fvsarrqv084d4x",
"name": "General Channel",
"metadata": {
"description": "This channel is used for general communication"
},
"createdByUserId": "clg3k5ypi000gsad0v1znilap"
},
"parent_content_id": "clpwuqoxi0001saas891t1jn7"
}
]
}
Response examples (200)
{
"success": true
}