Replace domain verification files

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
PUT /api/domains/{id}/verification-files

Replace the verification files served from the custom domain.

Path parameters

  • id string Required

    The unique identifier of the domain.

application/json

Body Required

  • verificationFiles object Required

    Up to 10 text or JSON verification files served as filenames with extensions at the domain root, or at paths under /.well-known/.

    Additional properties are allowed.

Responses

  • 200 application/json

    The domain verification files were replaced successfully.

    Validator function

    Additional properties are allowed.

  • 400

    Validation error. Please check the request body.

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    The domain with the specified ID was not found.

PUT /api/domains/{id}/verification-files
curl \
 --request PUT 'https://[tenant_id].logto.app/api/domains/{id}/verification-files' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"verificationFiles":{}}'
Request examples
{
  "verificationFiles": {}
}
Response examples (200)
{}