Get user trusted devices

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}/trusted-devices

Retrieve a paginated list of active trusted devices for the user.

Path parameters

  • userId string Required

    The unique identifier of the user.

Query parameters

  • page integer

    Page number (starts from 1).

    Minimum value is 1. Default value is 1.

  • page_size integer

    Entries per page.

    Minimum value is 1. Default value is 20.

Responses

  • 200 application/json

    A paginated list of the user's active trusted devices.

    Hide response attributes Show response attributes object
    • id string Required

      Minimum length is 1, maximum length is 21.

    • userAgent string | null Required
    • country string | null Required

      Maximum length is 16.

    • city string | null Required
    • createdAt number Required
    • lastUsedAt number Required
    • expiresAt number Required
  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    The user was not found.

GET /api/users/{userId}/trusted-devices
curl \
 --request GET 'https://[tenant_id].logto.app/api/users/{userId}/trusted-devices' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "id": "string",
    "userAgent": "string",
    "country": "string",
    "city": "string",
    "createdAt": 42.0,
    "lastUsedAt": 42.0,
    "expiresAt": 42.0
  }
]