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