---
updatedAt: 2025-09-02T07:17:19.000Z
agentTools:
  projectIndex: https://jamaibase.readme.io/llms.txt
---

# List email verification codes of the current logged-in user.

Permissions: None.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "JamAI Base API",
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": "0.1.0",
    "x-logo": {
      "url": "https://www.jamaibase.com/favicon.svg"
    }
  },
  "servers": [
    {
      "url": "https://api.jamaibase.com"
    }
  ],
  "paths": {
    "/api/v2/users/verify/email/code/list": {
      "get": {
        "tags": [
          "Users (Internal API)"
        ],
        "summary": "List email verification codes of the current logged-in user.",
        "description": "Permissions: None.",
        "operationId": "list_email_verification_codes_api_v2_users_verify_email_code_list_get",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "description": "Items offset.",
              "default": 0,
              "title": "Offset"
            },
            "description": "Items offset."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "exclusiveMinimum": 0,
              "description": "Number of items.",
              "default": 1000,
              "title": "Limit"
            },
            "description": "Number of items."
          },
          {
            "name": "order_by",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "id",
                "name",
                "created_at",
                "updated_at"
              ],
              "type": "string",
              "description": "Sort by this attribute.",
              "default": "updated_at",
              "title": "Order By"
            },
            "description": "Sort by this attribute."
          },
          {
            "name": "order_ascending",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Whether to sort in ascending order.",
              "default": true,
              "title": "Order Ascending"
            },
            "description": "Whether to sort in ascending order."
          },
          {
            "name": "search_query",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 10000,
              "description": "A string to search for as a filter. The string is interpreted as both POSIX regular expression and literal string. Defaults to \"\" (no filter). It will be combined other filters using `AND`.",
              "default": "",
              "title": "Search Query"
            },
            "description": "A string to search for as a filter. The string is interpreted as both POSIX regular expression and literal string. Defaults to \"\" (no filter). It will be combined other filters using `AND`."
          },
          {
            "name": "search_columns",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "minItems": 1,
              "description": "A list of attribute names to search for `search_query`. Defaults to `[\"name\"]`.",
              "default": [
                "name"
              ],
              "title": "Search Columns"
            },
            "description": "A list of attribute names to search for `search_query`. Defaults to `[\"name\"]`."
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor token to paginate results. If provided, the query will return items after this cursor and `offset` will be ignored. Defaults to `None` (no cursor).",
              "title": "After"
            },
            "description": "Opaque cursor token to paginate results. If provided, the query will return items after this cursor and `offset` will be ignored. Defaults to `None` (no cursor)."
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Service key.",
              "title": "Authorization"
            },
            "description": "Service key."
          },
          {
            "name": "X-USER-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "description": "User ID.",
              "default": "",
              "title": "X-User-Id"
            },
            "description": "User ID."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page_VerificationCodeRead_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "Page_VerificationCodeRead_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/VerificationCodeRead"
            },
            "type": "array",
            "title": "Items",
            "description": "List of items paginated items.",
            "default": [],
            "examples": [
              []
            ]
          },
          "offset": {
            "type": "integer",
            "title": "Offset",
            "description": "Number of skipped items.",
            "default": 0,
            "examples": [
              0
            ]
          },
          "limit": {
            "type": "integer",
            "title": "Limit",
            "description": "Number of items per page.",
            "default": 0,
            "examples": [
              0
            ]
          },
          "total": {
            "type": "integer",
            "title": "Total",
            "description": "Total number of items.",
            "default": 0,
            "examples": [
              0
            ]
          },
          "end_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "End Cursor",
            "description": "Opaque cursor token for the last item in this page. Pass it as `after=<end_cursor>` to request the page that follows the current window."
          }
        },
        "type": "object",
        "title": "Page[VerificationCodeRead]"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "VerificationCodeRead": {
        "properties": {
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At",
            "description": "Creation datetime (UTC)."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At",
            "description": "Update datetime (UTC)."
          },
          "meta": {
            "additionalProperties": true,
            "type": "object",
            "title": "Meta",
            "description": "Metadata.",
            "default": {}
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "title": "Name",
            "description": "Code name.",
            "default": ""
          },
          "role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role",
            "description": "Organization or project role."
          },
          "user_email": {
            "type": "string",
            "format": "email",
            "title": "User Email",
            "description": "User email."
          },
          "expiry": {
            "type": "string",
            "format": "date-time",
            "title": "Expiry",
            "description": "Code expiry datetime (UTC). Defaults to expiry in 7 days."
          },
          "organization_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Organization Id",
            "description": "Organization ID."
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id",
            "description": "Project ID."
          },
          "id": {
            "type": "string",
            "title": "Id",
            "description": "The code."
          }
        },
        "type": "object",
        "required": [
          "created_at",
          "updated_at",
          "user_email",
          "expiry",
          "id"
        ],
        "title": "VerificationCodeRead"
      }
    },
    "securitySchemes": {
      "Authentication": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "Authentication": []
    }
  ]
}
```