Publish user

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
PUT /user/publish

Mark the user as published. Use this for users that were created with published_at: null.

Default rate limit: 300 requests per minute.

application/json

Body

Mark a user as published.

  • user_id string Required

    Maximum length is 100.

  • published_at string(date-time) Required

    The date the user was published

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • success boolean Required
  • 400 application/json

    Returned when the user is already published, or when the request is invalid

    Hide response attributes Show response attributes object
    • success boolean Required
    • error string | object Required

      A message describing the error. For validation errors this is an object with an error message per field.

  • 401 application/json

    The API token is missing or invalid

    Hide response attributes Show response attributes object
    • success boolean Required
    • error string | object Required

      A message describing the error. For validation errors this is an object with an error message per field.

  • 429 application/json

    The rate limit has been exceeded, check the X-RateLimit headers for limits

    Hide headers attributes Show headers attributes
    • X-RateLimit-Limit

      The rate limit interval in milliseconds

    • X-RateLimit-Remaining

      The number of requests remaining in the current interval

    • X-RateLimit-Reset

      The number of milliseconds until requests are allowed again

    Hide response attribute Show response attribute object
    • error string Required
PUT /user/publish
curl \
 --request PUT 'https://api.lassomoderation.com/api/v1/user/publish' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '"{\n  \"user_id\": \"clemwm8ix0007sa8stctcndvj\",\n  \"published_at\": \"2022-07-21T18:12:39.000Z\"\n}"'
Request example
{
  "user_id": "clemwm8ix0007sa8stctcndvj",
  "published_at": "2022-07-21T18:12:39.000Z"
}
Response examples (200)
{
  "success": true
}
Response examples (400)
{
  "success": false,
  "error": "User already published"
}
Response examples (401)
{
  "success": false,
  "error": "Invalid API key"
}
Response examples (429)
{
  "error": "Too many requests, check headers for limits"
}