post
/auth/resetReset password
Complete the password reset flow using the token from the reset email. Returns authentication token after successful password reset.
reset_password
Request body
application/json
json
{
"type": "object",
"properties": {
"token": {
"type": "string",
"description": "Password reset token from email"
},
"password": {
"$ref": "#/components/schemas/PasswordType"
}
},
"required": [
"token",
"password"
]
}Responses
200
Success
json
{
"oneOf": [
{
"$ref": "#/components/schemas/AuthTokenWithUserIdResponse"
},
{
"type": "object",
"properties": {
"mfa": {
"type": "boolean",
"enum": [
true
],
"description": "Indicates MFA is required to complete authentication"
},
"ticket": {
"type": "string",
"description": "MFA ticket to use when completing MFA verification"
},
"allowed_methods": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 10,
"description": "List of allowed MFA methods"
},
"totp": {
"type": "boolean",
"description": "Whether TOTP authenticator MFA is available"
},
"webauthn": {
"type": "boolean",
"description": "Whether WebAuthn security key MFA is available"
}
},
"required": [
"mfa",
"ticket",
"allowed_methods",
"totp",
"webauthn"
]
}
]
}400
Bad Request - The request was malformed or contained invalid data
json
{
"type": "object",
"properties": {
"code": {
"$ref": "#/components/schemas/APIErrorCode"
},
"message": {
"type": "string",
"description": "Human-readable error message"
},
"errors": {
"type": "array",
"description": "Field-specific validation errors",
"items": {
"$ref": "#/components/schemas/ValidationErrorItem"
}
}
},
"required": [
"code",
"message"
]
}429
Too Many Requests - You are being rate limited
json
{
"type": "object",
"properties": {
"code": {
"type": "string",
"enum": [
"RATE_LIMITED"
]
},
"message": {
"type": "string"
},
"retry_after": {
"type": "number",
"description": "Seconds to wait before retrying"
},
"global": {
"type": "boolean",
"description": "Whether this is a global rate limit"
}
},
"required": [
"code",
"message",
"retry_after"
]
}500
Internal Server Error - An unexpected error occurred
json
{
"type": "object",
"properties": {
"code": {
"$ref": "#/components/schemas/APIErrorCode"
},
"message": {
"type": "string",
"description": "Human-readable error message"
},
"errors": {
"type": "array",
"description": "Field-specific validation errors",
"items": {
"$ref": "#/components/schemas/ValidationErrorItem"
}
}
},
"required": [
"code",
"message"
]
}