Stytch · Schema

api_totp_v1_CreateResponse

AuthenticationIdentityPasswordlessSecurityB2BConnected AppsMCPAI AgentsDeveloper Tools

Properties

Name Type Description
request_id string Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we may ask for this value to help identify a specific API call when helping you debug
totp_id string The unique ID for a TOTP instance.
secret string The TOTP secret key shared between the authenticator app and the server used to generate TOTP codes.
qr_code string The QR code image encoded in base64.
recovery_codes array The recovery codes used to authenticate the user without an authenticator app.
user object The `user` object affected by this API call. See the [Get user endpoint](https://stytch.com/docs/api/get-user) for complete response field details.
user_id string The unique ID of the affected User.
status_code integer The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server
View JSON Schema on GitHub

JSON Schema

stytch-api-totp-v1-createresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/api_totp_v1_CreateResponse",
  "title": "api_totp_v1_CreateResponse",
  "type": "object",
  "properties": {
    "request_id": {
      "type": "string",
      "description": "Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we may ask for this value to help identify a specific API call when helping you debug an issue."
    },
    "totp_id": {
      "type": "string",
      "description": "The unique ID for a TOTP instance."
    },
    "secret": {
      "type": "string",
      "description": "The TOTP secret key shared between the authenticator app and the server used to generate TOTP codes."
    },
    "qr_code": {
      "type": "string",
      "description": "The QR code image encoded in base64."
    },
    "recovery_codes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The recovery codes used to authenticate the user without an authenticator app."
    },
    "user": {
      "$ref": "#/components/schemas/api_user_v1_User",
      "description": "The `user` object affected by this API call. See the [Get user endpoint](https://stytch.com/docs/api/get-user) for complete response field details."
    },
    "user_id": {
      "type": "string",
      "description": "The unique ID of the affected User."
    },
    "status_code": {
      "type": "integer",
      "format": "int32",
      "description": "The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors."
    }
  },
  "required": [
    "request_id",
    "totp_id",
    "secret",
    "qr_code",
    "recovery_codes",
    "user",
    "user_id",
    "status_code"
  ]
}