WorkOS · Schema

EmailVerification

AuthenticationIdentity ProviderSSOSAMLOIDCSCIMDirectory SyncAuthorizationFGAAudit LogsMFAB2B SaaSAgentsMCP

Properties

Name Type Description
object string Distinguishes the email verification object.
id string The unique ID of the email verification code.
user_id string The unique ID of the user.
email string The email address of the user.
expires_at string The timestamp when the email verification code expires.
created_at string An ISO 8601 timestamp.
updated_at string An ISO 8601 timestamp.
code string The code used to verify the email.
View JSON Schema on GitHub

JSON Schema

workos-emailverification-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/EmailVerification",
  "title": "EmailVerification",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "description": "Distinguishes the email verification object.",
      "const": "email_verification"
    },
    "id": {
      "type": "string",
      "description": "The unique ID of the email verification code.",
      "example": "email_verification_01E4ZCR3C56J083X43JQXF3JK5"
    },
    "user_id": {
      "type": "string",
      "description": "The unique ID of the user.",
      "example": "user_01E4ZCR3C56J083X43JQXF3JK5"
    },
    "email": {
      "type": "string",
      "description": "The email address of the user.",
      "example": "[email protected]"
    },
    "expires_at": {
      "format": "date-time",
      "type": "string",
      "description": "The timestamp when the email verification code expires.",
      "example": "2026-01-15T12:00:00.000Z"
    },
    "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"
    },
    "code": {
      "type": "string",
      "description": "The code used to verify the email.",
      "example": "123456"
    }
  },
  "required": [
    "object",
    "id",
    "user_id",
    "email",
    "expires_at",
    "created_at",
    "updated_at",
    "code"
  ]
}