Upload asset

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://openapi.logto.io/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"Logto API references MCP server": {
  "url": "https://openapi.logto.io/mcp"
}
Close
POST /api/user-assets

Upload a user asset.

multipart/form-data

Body

  • file

    The file asset to upload.

Responses

  • 200 application/json

    An object containing the uploaded asset metadata.

    Hide response attribute Show response attribute object
    • url string Required
  • 401

    Unauthorized

  • 403

    Forbidden

POST /api/user-assets
curl \
 --request POST 'https://[tenant_id].logto.app/api/user-assets' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: multipart/form-data"
Response examples (200)
{
  "url": "string"
}