WorkOS · Schema
AuthenticationFactor
AuthenticationIdentity ProviderSSOSAMLOIDCSCIMDirectory SyncAuthorizationFGAAudit LogsMFAB2B SaaSAgentsMCP
Properties
| Name | Type | Description |
|---|---|---|
| object | string | Distinguishes the authentication factor object. |
| id | string | The unique ID of the factor. |
| type | string | The type of the factor to enroll. |
| user_id | string | The ID of the [user](/reference/authkit/user). |
| sms | object | SMS-based authentication factor details. |
| totp | object | TOTP-based authentication factor details. |
| created_at | string | An ISO 8601 timestamp. |
| updated_at | string | An ISO 8601 timestamp. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/AuthenticationFactor",
"title": "AuthenticationFactor",
"type": "object",
"properties": {
"object": {
"type": "string",
"description": "Distinguishes the authentication factor object.",
"const": "authentication_factor"
},
"id": {
"type": "string",
"description": "The unique ID of the factor.",
"example": "auth_factor_01FVYZ5QM8N98T9ME5BCB2BBMJ"
},
"type": {
"type": "string",
"enum": [
"generic_otp",
"sms",
"totp",
"webauthn"
],
"description": "The type of the factor to enroll.",
"example": "totp"
},
"user_id": {
"type": "string",
"description": "The ID of the [user](/reference/authkit/user).",
"example": "user_01E4ZCR3C56J083X43JQXF3JK5"
},
"sms": {
"type": "object",
"properties": {
"phone_number": {
"type": "string",
"description": "The user's phone number for SMS-based authentication.",
"example": "+15005550006"
}
},
"required": [
"phone_number"
],
"description": "SMS-based authentication factor details."
},
"totp": {
"type": "object",
"properties": {
"issuer": {
"type": "string",
"description": "Your application or company name displayed in the user's authenticator app. Defaults to your WorkOS team name.",
"example": "WorkOS"
},
"user": {
"type": "string",
"description": "The user's account name displayed in their authenticator app. Defaults to the user's email.",
"example": "[email protected]"
}
},
"required": [
"issuer",
"user"
],
"description": "TOTP-based authentication factor details."
},
"created_at": {
"format": "date-time",
"type": "string",
"description": "An ISO 8601 timestamp.",
"example": "2026-01-15T12:00:00.000Z"
},
"updated_at": {
"format": "date-time",
"type": "string",
"description": "An ISO 8601 timestamp.",
"example": "2026-01-15T12:00:00.000Z"
}
},
"required": [
"object",
"id",
"type",
"created_at",
"updated_at"
]
}