POST /v1/users/me/mfa/totp/confirm
Service: identity · operationId: (none)
Required scopes
(no scope declared — review service config)
Request body
{
"type": "object",
"properties": {
"method_id": {
"type": "string"
},
"code": {
"type": "string",
"minLength": 4,
"maxLength": 12
}
},
"required": [
"method_id",
"code"
]
}Responses
200 Confirmed
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"totp",
"passkey",
"sms"
]
},
"label": {
"type": "string"
},
"confirmed": {
"type": "boolean"
},
"last_used_at": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": "string"
}
},
"required": [
"id",
"type",
"label",
"confirmed",
"last_used_at",
"created_at"
]
}404 Not found
{
"type": "object",
"properties": {
"error": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"error",
"message"
]
}Example
curl -X POST https://identity.platform.loop.health/v1/users/me/mfa/totp/confirm \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'Related
services/identity— service overview- All endpoints — directory across services
- Auth model — how scopes are enforced