Verify a verification code

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/verification-codes/verify

Verify a verification code for a specified identifier. if you're using email as the identifier, you need to setup your email connector first. if you're using phone as the identifier, you need to setup your SMS connector first.

application/json

Body object Required

One of:

Responses

  • 204

    Verification code verified successfully.

  • 400

    Bad request. The payload may be invalid.

  • 401

    Unauthorized

  • 403

    Forbidden

POST /api/verification-codes/verify
curl \
 --request POST 'https://[tenant_id].logto.app/api/verification-codes/verify' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"email":"string","verificationCode":"string"}'
Request examples
{
  "email": "string",
  "verificationCode": "string"
}
{
  "phone": "string",
  "verificationCode": "string"
}