Familienrecht 2025 - Update Juni

Familienrecht 2025 - Update Juni · GPT Actions

Authflow Gateway API

API endpoint for verifying access to a specific paywall using a customer email and paywall key.

  • POST /v1/gateway/paywall/verifyVerifies customer access to a specified paywall.

    This endpoint checks if a user identified by their email address has access to a given paywall. Requires the `X-AUTHFLOW-KEY` header for authentication.

原始 API 定义
{
  "openapi": "3.1.0",
  "info": {
    "title": "Authflow Gateway API",
    "description": "API endpoint for verifying access to a specific paywall using a customer email and paywall key.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://gateway.authflow.ai"
    }
  ],
  "paths": {
    "/v1/gateway/paywall/verify": {
      "post": {
        "operationId": "checkActivePaywall",
        "summary": "Verifies customer access to a specified paywall.",
        "description": "This endpoint checks if a user identified by their email address has access to a given paywall. Requires the `X-AUTHFLOW-KEY` header for authentication.\n",
        "tags": [
          "GatewayAuth"
        ],
        "security": [
          {
            "authflowApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GatewayAuthRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "User has access to the requested paywall.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request due to missing/invalid parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request (e.g. missing or invalid API key).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error occurred during the verification process.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "authflowApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-AUTHFLOW-KEY"
      }
    },
    "schemas": {
      "GatewayAuthRequest": {
        "type": "object",
        "required": [
          "email",
          "paywallKey"
        ],
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "description": "Customer's email address for lookup or creation."
          },
          "paywallKey": {
            "type": "string",
            "enum": [
              "WqWt/SVl2dISNlB4IKyuXFEvIPctnwXwHzd9N1bqFUr18cDanMQG+aFyGPGNAkmb7O9X76DZy9KwlTu/HMnUzw=="
            ],
            "description": "Unique key identifying the paywall configuration."
          }
        }
      }
    }
  }
}