Get user custom data

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
GET /api/users/{userId}/custom-data

Get custom data for the given user ID.

Path parameters

  • userId string Required

    The unique identifier of the user.

Responses

  • 200 application/json

    Custom data in JSON for the given user ID.

    arbitrary

    Additional properties are allowed.

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

GET /api/users/{userId}/custom-data
curl \
 --request GET 'https://[tenant_id].logto.app/api/users/{userId}/custom-data' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{}