Stytch · Schema

api_totp_v1_CreateRequest

Request type

AuthenticationIdentityPasswordlessSecurityB2BConnected AppsMCPAI AgentsDeveloper Tools

Properties

Name Type Description
user_id string The `user_id` of an active user the TOTP registration should be tied to. You may use an `external_id` here if one is set for the user.
expiration_minutes integer The expiration for the TOTP instance. If the newly created TOTP is not authenticated within this time frame the TOTP will be unusable. Defaults to 1440 (1 day) with a minimum of 5 and a maximum of 144
View JSON Schema on GitHub

JSON Schema

stytch-api-totp-v1-createrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/api_totp_v1_CreateRequest",
  "title": "api_totp_v1_CreateRequest",
  "type": "object",
  "properties": {
    "user_id": {
      "type": "string",
      "description": "The `user_id` of an active user the TOTP registration should be tied to. You may use an `external_id` here if one is set for the user."
    },
    "expiration_minutes": {
      "type": "integer",
      "format": "int32",
      "description": "The expiration for the TOTP instance. If the newly created TOTP is not authenticated within this time frame the TOTP will be unusable. Defaults to 1440 (1 day) with a minimum of 5 and a maximum of 1440."
    }
  },
  "description": "Request type",
  "required": [
    "user_id"
  ]
}