GPT Auth

GPT Auth · GPT-Aktionen

User Authentication and tracking

User Authentication and tracking

  • POST /gptauth/get_codeGetCode

    Generate Code

  • POST /gptauth/verify_codeVerifyCode

    Verify Auth Code

Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "User Authentication and tracking",
    "version": "1.0.0",
    "description": "User Authentication and tracking"
  },
  "servers": [
    {
      "url": "https://app.gpt-auth.com"
    }
  ],
  "paths": {
    "/gptauth/get_code": {
      "post": {
        "description": "Generate Code",
        "operationId": "GetCode",
        "parameters": [],
        "requestBody": {
          "description": "User Email",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string"
                  }
                },
                "required": [
                  "email"
                ]
              }
            }
          }
        },
        "deprecated": false,
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/gptauth/verify_code": {
      "post": {
        "description": "Verify Auth Code",
        "operationId": "VerifyCode",
        "parameters": [],
        "requestBody": {
          "description": "User Email and Code",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string"
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "email",
                  "code"
                ]
              }
            }
          }
        },
        "deprecated": false,
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "basicAuth": []
    }
  ]
}