Import Content

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://api-reference.lassomoderation.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Lasso Moderation API MCP server": {
    "url": "https://api-reference.lassomoderation.com/mcp"
  }
}

Close
POST /import/content

Import up to a 1000 pieces of content into Lasso per request. Rate limit: 60 per minute

Headers

application/json

Body

  • contents array[object]
    Hide contents attributes Show contents attributes object
    • content_id string Required
    • user object Required

      Model for a user that you can send to Lasso. If the id of the user does not yet exist a new user will be made.

      Hide user attributes Show user attributes object
      • id string Required
      • name string
      • created_at string(date-time)

        ISO Date e.g. 2022-07-21T18:12:39.000Z https://en.wikipedia.org/wiki/ISO_8601

      • email_domain string

        The email domain of your user. So "user@example.com" would be "example.com"

      • email string
      • phone_number string
      • country_code string

        Two letter code according to the https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 standard

      • ip_address string

        The IP address of the user

      • profile_image_url string
      • signup_method string

        The method the user has used to sign up on your platform. This can be apple, facebook, google, email, password, or unknown.

      • metadata object
      • category_id string

        Set this if the user is only part of a specific category

      • type

        Specify what kind of user this is in your platform. By default this is a "normal" user

        Values are normal, moderator, admin, trusted, or testing. Default value is normal.

      • status string

        The status of an object

        Values are allowed, flagged, or hidden.

      • tags array[string]

        The identifiers of the tags. When tags is set, it will override all currently set tags on the user.

      • published_at string

        (optional) ISO Date e.g. 2022-07-21T18:12:39.000Z https://en.wikipedia.org/wiki/ISO_8601

        This field can be used to let Lasso know this user has not yet been published.

        • If the field is set to null the user is marked as not yet published.
        • If the field is set to a date, we use that date as the published date.
        • If the field is not specified, we assume the created at date as the published date. Note: this field can only be set when creating the user, use the publish endpoint to publish the user.
      • photo_id_urls array[string]

        Photo IDs can be used to recognize this user's face in the content.

    • category object Required

      Model for a category that a message can be part of. If the category does not yet exist in Lasso it will be created.

      Hide category attributes Show category attributes object
      • id string Required
      • name string Required

        Maximum length is 100.

    • subcategory object Required

      Model for a subcategory that a message can be part of. If the subcategory does not yet exist in Lasso it will be created.

      Hide subcategory attributes Show subcategory attributes object
      • id string Required
      • name string Required

        Maximum length is 300.

      • created_by_user_id string

        The ID of the user that created this subcategory

      • metadata object

        Extra information about the subcategory

      • image_url string
    • created_at string(date-time)

      ISO Date e.g. 2022-07-21T18:12:39.000Z https://en.wikipedia.org/wiki/ISO_8601

    • status string

      Optional status to set the initial status of the content. This status will only be set when creating the content, not when it is updated. Use the update status API for this.

      Values are allowed, flagged, or hidden.

    • text string

      Maximum length is 4000.

    • image_urls array[string]

      Maximum length of each is 1400.

    • video_urls array[string]

      Maximum length of each is 1400.

    • audio_urls array[string]

      Maximum length of each is 1400.

    • metadata object
    • parent_content_id string

      The ID of the parent content. This could for instance be the content this is a reply to.

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • success boolean
POST /import/content
curl \
 --request POST 'https://api.lassomoderation.com/api/v1/import/content' \
 --header "Content-Type: application/json" \
 --header "Authorization: Bearer lasso.a35afd...a6ea" \
 --data '"{\n  \"contents\": [\n    {\n      \"content_id\": \"clpmqe04600g7sarrxxg0mbjo\",\n      \"created_at\": \"2022-07-21T18:12:39.000Z\",\n      \"text\": \"This is the content of the message 🎉\",\n      \"image_urls\": [\n        \"https://example.com/image.png\"\n      ],\n      \"video_urls\": [\n        \"https://example.com/video.mov\"\n      ],\n      \"audio_urls\": [\n        \"https://example.com/audio.mp3\"\n      ],\n      \"metadata\": {\n        \"likes\": 8\n      },\n      \"parent_content_id\": \"clpwuqoxi0001saas891t1jn7\",\n      \"user\": {\n        \"id\": \"clpmqe04e00gjsarrtctnyr7d\",\n        \"created_at\": \"2022-07-21T18:12:39.000Z\",\n        \"name\": \"John Doe\",\n        \"email_domain\": \"gmail.com\",\n        \"signup_method\": \"google\",\n        \"country_code\": \"US\",\n        \"profile_image_url\": \"https://www.example.com/profile/image.png\",\n        \"metadata\": {\n          \"tag_line\": \"I am a person of mystery...\",\n          \"connections\": 8\n        }\n      },\n      \"category\": {\n        \"id\": \"clpmqe03y00ftsarr9hwvsf1x\",\n        \"name\": \"Mobile Chat\"\n      },\n      \"subcategory\": {\n        \"id\": \"clpmqe03y00fvsarrqv084d4x\",\n        \"name\": \"General Channel\",\n        \"createdByUserId\": \"clg3k5ypi000gsad0v1znilap\",\n        \"metadata\": {\n          \"description\": \"This channel is used for general communication\"\n        }\n      }\n    }\n  ]\n}"'
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",
        "createdByUserId": "clg3k5ypi000gsad0v1znilap",
        "metadata": {
          "description": "This channel is used for general communication"
        }
      }
    }
  ]
}
Response examples (200)
{
  "success": true
}