{
 "openapi": "3.1.0",
 "info": {
  "title": "ExportComments API",
  "description": "# ExportComments API\n\nExport comments, reviews, followers, and other data from 20+ social media platforms.\n\n## Quick Start\n\n1. Get your API Key from [app.exportcomments.com/user/api](https://app.exportcomments.com/user/api)\n2. Create an export: `POST /api/v3/job`\n3. Monitor with webhooks or poll for status\n4. Download results when `status: done`\n\n## Authentication\n\nInclude your API Key in requests:\n\n```\nX-AUTH-TOKEN: your-api-key\n```\n\n## Sandbox Mode\n\nTest the API without consuming your quota by adding the sandbox header:\n\n```\nX-Sandbox: true\n```\n\n**Features:**\n- Returns instant sample data (no actual scraping)\n- Not counted against daily limits\n- Not rate limited\n- Platform-specific data structure based on URL\n- Max 100 results per request\n\nSandbox responses include `\"sandbox\": true` and each comment has `\"_sandbox\": true`.\n\n## API Tiers\n\nAPI access is available with Premium and Business plans.\n\n### Premium Tier\n\n| Limit | Value |\n|-------|-------|\n| Daily Requests | 100 |\n| Rate Limit | 60/minute |\n| Concurrent Exports | 1 |\n| Max Comments/Export | 5,000 |\n| Webhooks | 1 |\n| Platforms | YouTube, Instagram, Facebook, TikTok, Twitter, Reddit, LinkedIn |\n\n### Business Tier\n\n| Limit | Value |\n|-------|-------|\n| Daily Requests | Unlimited |\n| Rate Limit | 200/minute |\n| Concurrent Exports | 5 |\n| Max Comments/Export | 250,000 |\n| Webhooks | 10 |\n| Platforms | All platforms |\n\n## Resources\n\n- [GitHub Examples](https://github.com/exportcomments)\n- [Support](mailto:support@exportcomments.com)\n\n---\n\n# Webhook Security\n\nWebhooks use HMAC-SHA256 signatures for verification.\n\n## Headers\n\n| Header | Description |\n|--------|-------------|\n| `X-Signature` | HMAC-SHA256 hash |\n| `Content-Type` | application/json |\n\n## Signature Verification\n\n```php\n$signature = hash_hmac('sha256', $body, $secret);\n$valid = hash_equals($signature, $received);\n```\n\n## Event Payloads\n\n### export.created\n\n```json\n{\n  \"event\": \"export.created\",\n  \"status\": \"processing\",\n  \"platform\": \"youtube\",\n  \"message_id\": \"abc123\"\n}\n```\n\n### export.done\n\n```json\n{\n  \"event\": \"export.done\",\n  \"status\": \"done\",\n  \"comments_count\": 150,\n  \"download_url\": \"https://...\"\n}\n```\n\n### export.failed\n\n```json\n{\n  \"event\": \"export.failed\",\n  \"status\": \"failed\",\n  \"error_message\": \"Video not found\"\n}\n```\n\n## Delivery\n\n| Behavior | Description |\n|----------|-------------|\n| Auto-retry | No automatic retries |\n| Manual retry | `POST /webhooks/events/{uuid}/resend` |\n| Auto-disable | After 30 consecutive failures |\n\n## Best Practices\n\n1. Verify `X-Signature` with `hash_equals()`\n2. Use `message_id` for idempotency\n3. Return 200 immediately\n4. Process asynchronously",
  "termsOfService": "https://exportcomments.com/terms-of-use",
  "version": "3.0.0",
  "contact": {
   "name": "ExportComments support",
   "url": "https://exportcomments.com/contact",
   "email": "support@exportcomments.com"
  }
 },
 "servers": [
  {
   "url": "https://exportcomments.com",
   "description": "Production"
  }
 ],
 "paths": {
  "/api/v1/api_tokens": {
   "get": {
    "operationId": "api_v1api_tokens_get_collection",
    "tags": [
     "API Tokens"
    ],
    "responses": {
     "200": {
      "description": "API Tokens collection",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/API.Tokens-api_tokens.read"
         }
        }
       },
       "multipart/form-data": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/API.Tokens.multipart-api_tokens.read"
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "List all API tokens",
    "description": "Retrieve all API tokens for the authenticated user. Ordered by expiration date (newest first).",
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "description": "The collection page number",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 1
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "limit",
      "in": "query",
      "description": "The number of items per page",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 10,
       "minimum": 0,
       "maximum": 30
      },
      "style": "form",
      "explode": true
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   }
  },
  "/api/v1/api_tokens/generate": {
   "post": {
    "operationId": "api_v1api_tokensgenerate_post",
    "tags": [
     "API Tokens"
    ],
    "responses": {
     "201": {
      "description": "API token successfully generated",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "token": {
           "type": "string",
           "description": "The generated API token (120 characters). Store this securely - it will not be shown again."
          },
          "expiresAt": {
           "type": "string",
           "format": "date-time",
           "description": "Token expiration date (1 year from generation)"
          },
          "uuid": {
           "type": "string",
           "format": "uuid",
           "description": "Token identifier for management operations"
          }
         }
        }
       }
      }
     },
     "400": {
      "description": "Token limit reached or generation failed",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded"
     }
    },
    "summary": "Generate a new API token",
    "description": "Generate a new API token for programmatic API access.\n\n**Important:**\n- The full token is only shown **once** in the response\n- Store the token securely - it cannot be retrieved later\n- Token expires after 1 year\n- Previous tokens remain valid until deleted\n\n**Rate limits apply** to prevent token generation abuse.",
    "parameters": [],
    "requestBody": {
     "description": "The new API Tokens resource",
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/API.Tokens"
       }
      },
      "multipart/form-data": {
       "schema": {
        "$ref": "#/components/schemas/API.Tokens.multipart"
       }
      }
     },
     "required": true
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/api_tokens/{uuid}": {
   "get": {
    "operationId": "api_v1api_tokens_uuid_get",
    "tags": [
     "API Tokens"
    ],
    "responses": {
     "200": {
      "description": "API Tokens resource",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/API.Tokens-api_tokens.read"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/API.Tokens.multipart-api_tokens.read"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Get API token details",
    "description": "Retrieve details of a specific API token.\n\n**Note:** The full token value is never returned after initial generation. Only metadata is available:\n- **uuid**: Token identifier\n- **expiresAt**: Expiration date\n- **isExpired**: Whether token is expired\n- **createdAt**: Generation timestamp",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "API Tokens identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   },
   "delete": {
    "operationId": "api_v1api_tokens_uuid_delete",
    "tags": [
     "API Tokens"
    ],
    "responses": {
     "204": {
      "description": "API Tokens resource deleted"
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Revoke an API token",
    "description": "Permanently delete an API token.\n\n**Effects:**\n- Token immediately becomes invalid\n- Any requests using this token will return 401 Unauthorized\n- Associated job history remains intact\n- Cannot be undone\n\n**Use this to:**\n- Revoke compromised tokens\n- Clean up unused tokens\n- Rotate tokens for security",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "API Tokens identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/ping": {
   "get": {
    "operationId": "ping",
    "tags": [
     "Health Check"
    ],
    "responses": {
     "200": {
      "description": "Successful ping response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "message": {
           "type": "string",
           "example": "pong"
          }
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "$ref": "#/components/responses/Forbidden"
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Ping endpoint for health check",
    "description": "Simple ping endpoint that returns pong to verify API is working",
    "parameters": [],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   }
  },
  "/api/v3/job": {
   "post": {
    "operationId": "api_v3job_post",
    "tags": [
     "Job"
    ],
    "responses": {
     "201": {
      "description": "Export process job successfully created",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "id": {
           "type": "integer",
           "description": "The ID of the created job."
          },
          "guid": {
           "type": "string",
           "description": "The globally unique identifier (GUID) of the job.",
           "format": "uuid",
           "example": "b4219d47-3138-5efd-9762-2ef9f9495084"
          },
          "status": {
           "type": "string",
           "description": "The status of the job (e.g., queueing, done)."
          },
          "url": {
           "type": "string",
           "description": "The URL associated with the job."
          },
          "rawFile": {
           "type": [
            "string",
            "null"
           ],
           "description": "The raw file name associated with the comment."
          },
          "timezone": {
           "type": [
            "string",
            "null"
           ],
           "description": "The timezone associated with the comment."
          },
          "options": {
           "type": "object",
           "description": "The options applied to the job.",
           "example": {
            "limit": 10,
            "minTimestamp": 1744032005
           }
          },
          "locked": {
           "type": "boolean",
           "description": "Whether the comment is locked."
          },
          "json_url": {
           "type": "string",
           "description": "URL to the JSON export file."
          },
          "download_link": {
           "type": "string",
           "description": "Direct download link for the export file."
          }
         }
        }
       }
      }
     },
     "400": {
      "description": "Invalid request or job creation failed",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "status_code": {
           "type": "integer",
           "description": "The HTTP status code.",
           "example": 400
          },
          "error_code": {
           "type": "string",
           "description": "The error code.",
           "example": "INVALID_REQUEST"
          },
          "detail": {
           "type": "string",
           "description": "A detailed error message."
          }
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "status_code": {
           "type": "integer",
           "description": "The HTTP status code.",
           "example": 429
          },
          "error_code": {
           "type": "string",
           "description": "The error code.",
           "example": "CONCURRENCY_RATE_LIMIT"
          },
          "seconds_to_wait": {
           "type": "integer",
           "description": "The number of seconds to wait before retrying.",
           "example": 60
          },
          "detail": {
           "type": "string",
           "description": "A detailed error message."
          }
         }
        }
       }
      }
     }
    },
    "summary": "Create an export process job",
    "description": "This endpoint allows creating a new export process job for a user. It validates the input, applies rate limits, and queues the job for processing. Instagram exports are limited to ~50 results unless a sessionid is provided in the options[cookies][sessionid].",
    "parameters": [
     {
      "$ref": "#/components/parameters/Sandbox"
     }
    ],
    "requestBody": {
     "description": "Details of the export process job to be created.",
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "url": {
          "type": "string",
          "description": "The URL associated with the export process.",
          "example": "http://www.facebook.com/story.php?story_fbid=1234567890&id=1234567890"
         },
         "options": {
          "type": "object",
          "description": "Additional options for the export process.",
          "properties": {
           "vpn": {
            "type": "string",
            "description": "VPN settings for the export process. See VPN documentation for details.",
            "example": "Norway"
           },
           "pool": {
            "type": "string",
            "format": "uuid",
            "description": "Proxy pool UUID to use for the export.",
            "example": "550e8400-e29b-41d4-a716-446655440000"
           },
           "cursor": {
            "type": "string",
            "description": "Cursor for pagination.",
            "example": "abc123"
           },
           "advanced": {
            "type": "boolean",
            "description": "Enable advanced search options (applicable to Google Feature).",
            "example": true
           },
           "cookies": {
            "type": "object",
            "description": "Cookies for authentication.",
            "example": {
             "auth_token": "twitterAuthToken",
             "sessionid": "generalSessionId",
             "cookie_user": "facebookCookieUser",
             "cookie_xs": "FacebookCookieXs"
            }
           },
           "facebookAds": {
            "type": "boolean",
            "description": "Whether to export Facebook Ads data only.",
            "example": false
           },
           "followers": {
            "type": "boolean",
            "description": "Whether to export only followers in the export.",
            "example": true
           },
           "following": {
            "type": "boolean",
            "description": "Whether to export only following data in the export.",
            "example": false
           },
           "id": {
            "type": "integer",
            "description": "Variable used for speeding up the export process.",
            "example": 12345
           },
           "likes": {
            "type": "boolean",
            "description": "Whether to include likes in the export.",
            "example": true
           },
           "limit": {
            "type": "integer",
            "description": "The maximum number of items to export.",
            "example": 500
           },
           "live": {
            "type": "boolean",
            "description": "Whether to export live data only in the export.",
            "example": false
           },
           "maxTimestamp": {
            "type": "integer",
            "description": "The maximum timestamp for filtering data.",
            "example": 1625097600
           },
           "minTimestamp": {
            "type": "integer",
            "description": "The minimum timestamp for filtering data.",
            "example": 1622505600
           },
           "replies": {
            "type": "boolean",
            "description": "Whether to include replies in the export.",
            "example": true
           },
           "shares": {
            "type": "boolean",
            "description": "Whether to include shares in the export.",
            "example": false
           },
           "tweets": {
            "type": "boolean",
            "description": "The type of Twitter export (e.g., tweets, followers, following).",
            "example": true
           }
          }
         }
        },
        "required": [
         "url"
        ]
       }
      }
     },
     "required": false
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v3/job/{guid}": {
   "get": {
    "operationId": "api_v3job_guid_get",
    "tags": [
     "Job"
    ],
    "responses": {
     "200": {
      "description": "Job resource",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Job-api.read_comment.read"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Job.multipart-api.read_comment.read"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Get export job details",
    "description": "Retrieve details of a specific export job by GUID.",
    "parameters": [
     {
      "name": "guid",
      "in": "path",
      "description": "Job identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   }
  },
  "/api/v3/job/{guid}/retry": {
   "patch": {
    "operationId": "api_v3job_guidretry_patch",
    "tags": [
     "Job"
    ],
    "responses": {
     "200": {
      "description": "Job resource updated",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Job-api.read_comment.read"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Job.multipart-api.read_comment.read"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Retry an export process job",
    "description": "Retry a job by GUID. Rate limited to 100 retries per user per 30 minutes. The job must be in an error state to be retried.",
    "parameters": [
     {
      "name": "guid",
      "in": "path",
      "description": "Job identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v3/job/{guid}/stop": {
   "patch": {
    "operationId": "api_v3job_guidstop_patch",
    "tags": [
     "Job"
    ],
    "responses": {
     "200": {
      "description": "Job resource updated",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Job-api.read_comment.read"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Job.multipart-api.read_comment.read"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Stop an export process job",
    "description": "Stop a running or queued job by GUID. Cannot stop jobs that are already completed.",
    "parameters": [
     {
      "name": "guid",
      "in": "path",
      "description": "Job identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v3/jobs": {
   "get": {
    "operationId": "api_v3jobs_get_collection",
    "tags": [
     "Job"
    ],
    "responses": {
     "200": {
      "description": "Job collection",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Job-api.read"
         }
        }
       },
       "multipart/form-data": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Job.multipart-api.read"
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "List export jobs",
    "description": "Retrieve a paginated list of export jobs for the authenticated API token. Results ordered by creation date (newest first).",
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "description": "The collection page number",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 1
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "limit",
      "in": "query",
      "description": "The number of items per page",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 30,
       "minimum": 0,
       "maximum": 30
      },
      "style": "form",
      "explode": true
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   }
  },
  "/api/v1/payments": {
   "get": {
    "operationId": "api_v1payments_get_collection",
    "tags": [
     "Payment"
    ],
    "responses": {
     "200": {
      "description": "Payment collection",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Payment-payment.read"
         }
        }
       },
       "multipart/form-data": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Payment.multipart-payment.read"
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "List payment history",
    "description": "Retrieve all payments for the authenticated user, ordered by date (newest first).",
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "description": "The collection page number",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 1
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "limit",
      "in": "query",
      "description": "The number of items per page",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 10,
       "minimum": 0,
       "maximum": 30
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "user",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "form",
      "explode": false
     },
     {
      "name": "user[]",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "payment.transaction_id",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "form",
      "explode": false
     },
     {
      "name": "payment.status",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "form",
      "explode": false
     },
     {
      "name": "payment.status[]",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "exists[payment.invoice_id]",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "boolean"
      },
      "style": "form",
      "explode": false
     },
     {
      "name": "query",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "form",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   }
  },
  "/api/v1/payments/{transactionId}": {
   "get": {
    "operationId": "api_v1payments_transactionId_get",
    "tags": [
     "Payment"
    ],
    "responses": {
     "200": {
      "description": "Payment resource",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Payment-payment.read"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Payment.multipart-payment.read"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Get payment details",
    "description": "Retrieve details of a specific payment by transaction ID.",
    "parameters": [
     {
      "name": "transactionId",
      "in": "path",
      "description": "Payment identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   }
  },
  "/api/v1/proxies": {
   "get": {
    "operationId": "api_v1proxies_get_collection",
    "tags": [
     "Proxies"
    ],
    "responses": {
     "200": {
      "description": "Proxies collection",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Proxies-proxies.read"
         }
        }
       },
       "multipart/form-data": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Proxies.multipart-proxies.read"
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "List proxy pools",
    "description": "Retrieve all proxy pools for the authenticated user.",
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "description": "The collection page number",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 1
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "limit",
      "in": "query",
      "description": "The number of items per page",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 10,
       "minimum": 0,
       "maximum": 30
      },
      "style": "form",
      "explode": true
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   },
   "post": {
    "operationId": "api_v1proxies_post",
    "tags": [
     "Proxies"
    ],
    "responses": {
     "201": {
      "description": "Proxies resource created",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Proxies-proxies.read"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Proxies.multipart-proxies.read"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Create a proxy pool",
    "description": "Create a new proxy pool with custom proxies.\n\n**Request body:**\n- **name**: Display name for the pool (required)\n- **proxies**: Array of proxy objects or CSV string\n\n**Proxy format (CSV):**\n```\nprotocol://address:port;username;password\n```\n\n**Example:**\n```json\n{\n  \"name\": \"My Residential Proxies\",\n  \"proxies\": \"http://192.168.1.1:8080;user;pass\\nhttps://proxy2.com:3128;;\"\n}\n```",
    "parameters": [],
    "requestBody": {
     "description": "The new Proxies resource",
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/Proxies-proxies.write"
       }
      },
      "multipart/form-data": {
       "schema": {
        "$ref": "#/components/schemas/Proxies.multipart-proxies.write"
       }
      }
     },
     "required": true
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/proxies/{uuid}": {
   "get": {
    "operationId": "api_v1proxies_uuid_get",
    "tags": [
     "Proxies"
    ],
    "responses": {
     "200": {
      "description": "Proxies resource",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Proxies-proxies.read"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Proxies.multipart-proxies.read"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Get proxy pool details",
    "description": "Retrieve details of a specific proxy pool including proxy list and configuration.",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Proxies identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   },
   "delete": {
    "operationId": "api_v1proxies_uuid_delete",
    "tags": [
     "Proxies"
    ],
    "responses": {
     "204": {
      "description": "Proxies resource deleted"
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Delete proxy pool",
    "description": "Permanently delete a proxy pool.\n\n**Effects:**\n- All proxies in the pool are removed\n- Jobs using this pool will fall back to default proxies\n- Cannot be undone",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Proxies identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   },
   "patch": {
    "operationId": "api_v1proxies_uuid_patch",
    "tags": [
     "Proxies"
    ],
    "responses": {
     "200": {
      "description": "Proxies resource updated",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Proxies-proxies.read"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Proxies.multipart-proxies.read"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Update proxy pool",
    "description": "Update proxy pool name or replace proxies.",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Proxies identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "requestBody": {
     "description": "The updated Proxies resource",
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/Proxies-proxies.write.jsonMergePatch"
       }
      }
     },
     "required": true
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/schedules": {
   "get": {
    "operationId": "api_v1schedules_get_collection",
    "tags": [
     "Scheduled Exports"
    ],
    "responses": {
     "200": {
      "description": "Scheduled Exports collection",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Scheduled.Exports-schedule.read"
         }
        }
       },
       "multipart/form-data": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Scheduled.Exports.multipart-schedule.read"
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "List scheduled exports",
    "description": "Get all scheduled exports for the authenticated user.",
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "description": "The collection page number",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 1
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "limit",
      "in": "query",
      "description": "The number of items per page",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 10,
       "minimum": 0,
       "maximum": 30
      },
      "style": "form",
      "explode": true
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   },
   "post": {
    "operationId": "api_v1schedules_post",
    "tags": [
     "Scheduled Exports"
    ],
    "responses": {
     "201": {
      "description": "Scheduled Exports resource created",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Scheduled.Exports"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Scheduled.Exports.multipart"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Create scheduled export",
    "description": "Create a new recurring export schedule.",
    "parameters": [],
    "requestBody": {
     "description": "The new Scheduled Exports resource",
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/Scheduled.Exports"
       }
      },
      "multipart/form-data": {
       "schema": {
        "$ref": "#/components/schemas/Scheduled.Exports.multipart"
       }
      }
     },
     "required": true
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/schedules/{uuid}": {
   "get": {
    "operationId": "api_v1schedules_uuid_get",
    "tags": [
     "Scheduled Exports"
    ],
    "responses": {
     "200": {
      "description": "Scheduled Exports resource",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Scheduled.Exports-schedule.read_schedule.detail"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Scheduled.Exports.multipart-schedule.read_schedule.detail"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Get scheduled export details",
    "description": "Get scheduled export details",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Scheduled Exports identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   },
   "put": {
    "operationId": "api_v1schedules_uuid_put",
    "tags": [
     "Scheduled Exports"
    ],
    "responses": {
     "200": {
      "description": "Scheduled Exports resource updated",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Scheduled.Exports"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Scheduled.Exports.multipart"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Update scheduled export",
    "description": "Update scheduled export",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Scheduled Exports identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "requestBody": {
     "description": "The updated Scheduled Exports resource",
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/Scheduled.Exports"
       }
      },
      "multipart/form-data": {
       "schema": {
        "$ref": "#/components/schemas/Scheduled.Exports.multipart"
       }
      }
     },
     "required": true
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   },
   "delete": {
    "operationId": "api_v1schedules_uuid_delete",
    "tags": [
     "Scheduled Exports"
    ],
    "responses": {
     "204": {
      "description": "Scheduled Exports resource deleted"
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Delete scheduled export",
    "description": "Delete scheduled export",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Scheduled Exports identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/schedules/{uuid}/pause": {
   "post": {
    "operationId": "api_v1schedules_uuidpause_post",
    "tags": [
     "Scheduled Exports"
    ],
    "responses": {
     "201": {
      "description": "Scheduled Exports resource created",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Scheduled.Exports"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Scheduled.Exports.multipart"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Pause scheduled export",
    "description": "Temporarily pause a scheduled export.",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Scheduled Exports identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/schedules/{uuid}/resume": {
   "post": {
    "operationId": "api_v1schedules_uuidresume_post",
    "tags": [
     "Scheduled Exports"
    ],
    "responses": {
     "201": {
      "description": "Scheduled Exports resource created",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Scheduled.Exports"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Scheduled.Exports.multipart"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Resume scheduled export",
    "description": "Resume a paused scheduled export.",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Scheduled Exports identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/schedules/{uuid}/run-now": {
   "post": {
    "operationId": "api_v1schedules_uuidrun-now_post",
    "tags": [
     "Scheduled Exports"
    ],
    "responses": {
     "201": {
      "description": "Scheduled Exports resource created",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Scheduled.Exports"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Scheduled.Exports.multipart"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Run scheduled export now",
    "description": "Trigger an immediate run of the scheduled export.",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Scheduled Exports identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/subscriptions": {
   "get": {
    "operationId": "api_v1subscriptions_get_collection",
    "tags": [
     "Subscription"
    ],
    "responses": {
     "200": {
      "description": "Subscription collection",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Subscription-subscription.read"
         }
        }
       },
       "multipart/form-data": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Subscription.multipart-subscription.read"
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "List subscriptions",
    "description": "Retrieve all subscriptions for the authenticated user, including past and current subscriptions.",
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "description": "The collection page number",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 1
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "limit",
      "in": "query",
      "description": "The number of items per page",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 10,
       "minimum": 0,
       "maximum": 30
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "user",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "form",
      "explode": false
     },
     {
      "name": "user[]",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "subscription.status",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "form",
      "explode": false
     },
     {
      "name": "subscription.status[]",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "subscription.billing_period",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "form",
      "explode": false
     },
     {
      "name": "subscription.billing_period[]",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "query",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "form",
      "explode": false
     },
     {
      "name": "order[id]",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "string",
       "default": "asc",
       "enum": [
        "asc",
        "desc"
       ]
      },
      "style": "form",
      "explode": false
     },
     {
      "name": "order[user.created_at]",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "string",
       "default": "asc",
       "enum": [
        "asc",
        "desc"
       ]
      },
      "style": "form",
      "explode": false
     },
     {
      "name": "order[user.last_connected_at]",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "string",
       "default": "asc",
       "enum": [
        "asc",
        "desc"
       ]
      },
      "style": "form",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   }
  },
  "/api/v1/subscriptions/{uuid}": {
   "get": {
    "operationId": "api_v1subscriptions_uuid_get",
    "tags": [
     "Subscription"
    ],
    "responses": {
     "200": {
      "description": "Subscription resource",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Subscription-subscription.read"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Subscription.multipart-subscription.read"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Get subscription details",
    "description": "Retrieve details of a specific subscription including plan, billing period, and status.",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Subscription identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   }
  },
  "/api/v1/subscriptions/{uuid}/cancel": {
   "post": {
    "operationId": "api_v1subscriptions_uuidcancel_post",
    "tags": [
     "Subscription"
    ],
    "responses": {
     "200": {
      "description": "Subscription successfully canceled"
     },
     "201": {
      "description": "Subscription resource created",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Subscription"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Subscription.multipart"
        }
       }
      }
     },
     "400": {
      "description": "Subscription already canceled or cannot be canceled",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Subscription not found"
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Cancel subscription",
    "description": "Cancel an active subscription.\n\n**What happens:**\n- Subscription remains active until the current billing period ends\n- No further charges will be made\n- After expiration, account reverts to free tier limits\n- You can resubscribe anytime\n\n**Note:** Cancellation cannot be undone. To continue your subscription, you'll need to purchase a new one.",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Subscription identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "requestBody": {
     "description": "No request body required",
     "content": {},
     "required": false
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/me": {
   "get": {
    "operationId": "api_v1me_get",
    "tags": [
     "User"
    ],
    "responses": {
     "200": {
      "description": "User resource",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/User-user.read_subscription.read_payment.read_telegram.read"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/User.multipart-user.read_subscription.read_payment.read_telegram.read"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Get current user profile",
    "description": "Retrieve the authenticated user's profile information including subscription status and plan details.",
    "parameters": [],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   }
  },
  "/api/v1/users/{uuid}": {
   "get": {
    "operationId": "api_v1users_uuid_get",
    "tags": [
     "User"
    ],
    "responses": {
     "200": {
      "description": "User resource",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/User-user.read_subscription.read_payment.read"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/User.multipart-user.read_subscription.read_payment.read"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Get user by UUID",
    "description": "Retrieve user profile by UUID. Users can only access their own profile unless they have admin privileges.",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "User identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   },
   "put": {
    "operationId": "api_v1users_uuid_put",
    "tags": [
     "User"
    ],
    "responses": {
     "200": {
      "description": "User resource updated",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/User-user.write"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/User.multipart-user.write"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Update user profile",
    "description": "Update the authenticated user's profile information.",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "User identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "requestBody": {
     "description": "The updated User resource",
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/User-user.write"
       }
      },
      "multipart/form-data": {
       "schema": {
        "$ref": "#/components/schemas/User.multipart-user.write"
       }
      }
     },
     "required": true
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/vpn": {
   "get": {
    "operationId": "api_v1vpn_get_collection",
    "tags": [
     "VPN"
    ],
    "responses": {
     "200": {
      "description": "VPN collection",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/VPN-vpn.read"
         }
        }
       },
       "multipart/form-data": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/VPN.multipart-vpn.read"
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "List available VPN locations",
    "description": "Retrieve all currently available VPN locations for export routing.",
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "description": "The collection page number",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 1
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "limit",
      "in": "query",
      "description": "The number of items per page",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 10,
       "minimum": 0,
       "maximum": 30
      },
      "style": "form",
      "explode": true
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   }
  },
  "/api/v1/webhooks/events": {
   "get": {
    "operationId": "api_v1webhooksevents_get_collection",
    "tags": [
     "Webhook Events"
    ],
    "responses": {
     "200": {
      "description": "List of webhook events retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/WebhookEvent-webhook_event.read"
         }
        }
       },
       "multipart/form-data": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/WebhookEvent.multipart-webhook_event.read"
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "List webhook delivery events",
    "description": "Retrieve webhook delivery events for monitoring and debugging. Filter by `webhook.uuid`, `messageId`, or `event` type.",
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "description": "The collection page number",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 1
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "limit",
      "in": "query",
      "description": "The number of items per page",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 10,
       "minimum": 0,
       "maximum": 30
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "webhook.uuid",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "form",
      "explode": false
     },
     {
      "name": "webhook.uuid[]",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "message_id",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "form",
      "explode": false
     },
     {
      "name": "message_id[]",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "event",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "form",
      "explode": false
     },
     {
      "name": "event[]",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "query",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "form",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   }
  },
  "/api/v1/webhooks/events/{uuid}/resend": {
   "post": {
    "operationId": "api_v1webhooksevents_uuidresend_post",
    "tags": [
     "Webhook Events"
    ],
    "responses": {
     "200": {
      "description": "Webhook event resent successfully"
     },
     "201": {
      "description": "WebhookEvent resource created",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WebhookEvent-webhook_event.read"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/WebhookEvent.multipart-webhook_event.read"
        }
       }
      }
     },
     "400": {
      "description": "Cannot resend: webhook disabled or missing signing secret",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Webhook event not found or access denied"
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded - too many resend requests"
     }
    },
    "summary": "Resend a webhook event",
    "description": "Manually resend a previously delivered webhook event.\n\n**Important:** Failed webhook deliveries are NOT automatically retried. Use this endpoint to retry failed deliveries.\n\n**What happens:**\n1. Retrieves the original event payload from the database\n2. Generates a new X-Signature header using the current signing secret\n3. Sends the webhook to your endpoint via a background job\n4. Updates the event record with new response code and timestamp\n5. Sets manuallyResent: true on the event\n\n**Use cases:**\n- Retry failed deliveries (non-2xx responses, timeouts)\n- Recover from temporary endpoint failures\n- Debug webhook integration issues\n- Replay events after fixing signature verification\n- Test endpoint changes with real data\n\n**Rate limiting:**\nThis endpoint is rate-limited to prevent abuse. If you receive HTTP 429, wait before retrying.\n\n**Requirements:**\n- The associated webhook must be enabled\n- The webhook must have a valid signing secret\n- The associated comment/export must still exist\n- You must own the webhook (or be an admin)\n\n**Note:** This creates a new delivery attempt, not a new event. The numberOfCalls counter will increment.",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "WebhookEvent identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "requestBody": {
     "description": "No request body required",
     "content": {},
     "required": false
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/webhooks": {
   "get": {
    "operationId": "api_v1webhooks_get_collection",
    "tags": [
     "Webhooks"
    ],
    "responses": {
     "200": {
      "description": "List of webhooks retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Webhook-webhook.read"
         }
        }
       },
       "multipart/form-data": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Webhook.multipart-webhook.read"
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "List all webhooks",
    "description": "Retrieve all webhook configurations for the authenticated user.",
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "description": "The collection page number",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 1
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "limit",
      "in": "query",
      "description": "The number of items per page",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 10,
       "minimum": 0,
       "maximum": 30
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "query",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "form",
      "explode": false
     },
     {
      "name": "status",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer"
      },
      "style": "form",
      "explode": false
     },
     {
      "name": "status[]",
      "in": "query",
      "description": "",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "array",
       "items": {
        "type": "integer"
       }
      },
      "style": "form",
      "explode": true
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   },
   "post": {
    "operationId": "api_v1webhooks_post",
    "tags": [
     "Webhooks"
    ],
    "responses": {
     "200": {
      "description": "Webhook created successfully"
     },
     "201": {
      "description": "Webhook resource created",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Webhook-webhook.read"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Webhook.multipart-webhook.read"
        }
       }
      }
     },
     "400": {
      "description": "Invalid configuration: missing URL, invalid events, or missing signing secret",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Create a new webhook",
    "description": "Create a new webhook endpoint to receive real-time export notifications.",
    "parameters": [],
    "requestBody": {
     "description": "Webhook configuration with URL, events array, and signing secret",
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/Webhook-webhook.write"
       }
      },
      "multipart/form-data": {
       "schema": {
        "$ref": "#/components/schemas/Webhook.multipart-webhook.write"
       }
      }
     },
     "required": true
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/webhooks/summary": {
   "get": {
    "operationId": "api_v1webhookssummary_get",
    "tags": [
     "Webhooks"
    ],
    "responses": {
     "200": {
      "description": "Statistics retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Webhook-webhook.read"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Webhook.multipart-webhook.read"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Get webhook delivery statistics",
    "description": "Retrieve aggregated webhook delivery statistics for monitoring and debugging.",
    "parameters": [],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   }
  },
  "/api/v1/webhooks/{uuid}": {
   "get": {
    "operationId": "api_v1webhooks_uuid_get",
    "tags": [
     "Webhooks"
    ],
    "responses": {
     "200": {
      "description": "Webhook details retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Webhook-webhook.read"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Webhook.multipart-webhook.read"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Webhook not found or access denied"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Get webhook details",
    "description": "Retrieve details of a specific webhook configuration including URL, events, and status.",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Webhook identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   },
   "delete": {
    "operationId": "api_v1webhooks_uuid_delete",
    "tags": [
     "Webhooks"
    ],
    "responses": {
     "204": {
      "description": "Webhook deleted successfully"
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Webhook not found"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Delete webhook",
    "description": "Permanently delete a webhook configuration.\n\n**Effects:**\n- Stops all future webhook deliveries to this endpoint\n- Removes all associated webhook event history (CASCADE delete)\n- Cannot be undone\n\n**Note:** If you want to temporarily stop deliveries without losing configuration, use the toggle endpoint or update status to 0 instead.",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Webhook identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   },
   "patch": {
    "operationId": "api_v1webhooks_uuid_patch",
    "tags": [
     "Webhooks"
    ],
    "responses": {
     "200": {
      "description": "Webhook updated successfully",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Webhook-webhook.read"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Webhook.multipart-webhook.read"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Webhook not found"
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Update webhook configuration",
    "description": "Update an existing webhook configuration. All fields are optional.",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Webhook identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "requestBody": {
     "description": "Fields to update (all optional)",
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/Webhook-webhook.write.jsonMergePatch"
       }
      }
     },
     "required": true
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/webhooks/{uuid}/toggle": {
   "patch": {
    "operationId": "api_v1webhooks_uuidtoggle_patch",
    "tags": [
     "Webhooks"
    ],
    "responses": {
     "200": {
      "description": "Webhook status toggled successfully",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Webhook"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Webhook.multipart"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Webhook not found"
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Toggle webhook enabled/disabled",
    "description": "Toggle the webhook status between enabled and disabled.\n\n- If **enabled** → becomes **disabled**\n- If **disabled** → becomes **enabled**",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Webhook identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "requestBody": {
     "description": "No request body required",
     "content": {},
     "required": false
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/workflows": {
   "get": {
    "operationId": "api_v1workflows_get_collection",
    "tags": [
     "Workflows"
    ],
    "responses": {
     "200": {
      "description": "Workflows collection",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Workflows-workflow.read"
         }
        }
       },
       "multipart/form-data": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Workflows.multipart-workflow.read"
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "List workflows",
    "description": "Get all workflows for the authenticated user.",
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "description": "The collection page number",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 1
      },
      "style": "form",
      "explode": true
     },
     {
      "name": "limit",
      "in": "query",
      "description": "The number of items per page",
      "required": false,
      "deprecated": false,
      "schema": {
       "type": "integer",
       "default": 10,
       "minimum": 0,
       "maximum": 30
      },
      "style": "form",
      "explode": true
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   },
   "post": {
    "operationId": "api_v1workflows_post",
    "tags": [
     "Workflows"
    ],
    "responses": {
     "201": {
      "description": "Workflows resource created",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Workflows"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Workflows.multipart"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Create workflow",
    "description": "Create a new workflow pipeline.",
    "parameters": [],
    "requestBody": {
     "description": "The new Workflows resource",
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/Workflows"
       }
      },
      "multipart/form-data": {
       "schema": {
        "$ref": "#/components/schemas/Workflows.multipart"
       }
      }
     },
     "required": true
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/workflows/{uuid}": {
   "get": {
    "operationId": "api_v1workflows_uuid_get",
    "tags": [
     "Workflows"
    ],
    "responses": {
     "200": {
      "description": "Workflows resource",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Workflows-workflow.read_workflow.detail"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Workflows.multipart-workflow.read_workflow.detail"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Get workflow details",
    "description": "Get workflow details",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Workflows identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   },
   "put": {
    "operationId": "api_v1workflows_uuid_put",
    "tags": [
     "Workflows"
    ],
    "responses": {
     "200": {
      "description": "Workflows resource updated",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Workflows"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Workflows.multipart"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Update workflow",
    "description": "Update workflow",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Workflows identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "requestBody": {
     "description": "The updated Workflows resource",
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/Workflows"
       }
      },
      "multipart/form-data": {
       "schema": {
        "$ref": "#/components/schemas/Workflows.multipart"
       }
      }
     },
     "required": true
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   },
   "delete": {
    "operationId": "api_v1workflows_uuid_delete",
    "tags": [
     "Workflows"
    ],
    "responses": {
     "204": {
      "description": "Workflows resource deleted"
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Delete workflow",
    "description": "Delete workflow",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Workflows identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/workflows/{uuid}/pause": {
   "post": {
    "operationId": "api_v1workflows_uuidpause_post",
    "tags": [
     "Workflows"
    ],
    "responses": {
     "201": {
      "description": "Workflows resource created",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Workflows"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Workflows.multipart"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Pause workflow",
    "description": "Temporarily pause a workflow.",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Workflows identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/workflows/{uuid}/resume": {
   "post": {
    "operationId": "api_v1workflows_uuidresume_post",
    "tags": [
     "Workflows"
    ],
    "responses": {
     "201": {
      "description": "Workflows resource created",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Workflows"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Workflows.multipart"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Resume workflow",
    "description": "Resume a paused workflow.",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Workflows identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/workflows/{uuid}/run-now": {
   "post": {
    "operationId": "api_v1workflows_uuidrun-now_post",
    "tags": [
     "Workflows"
    ],
    "responses": {
     "201": {
      "description": "Workflows resource created",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Workflows"
        }
       },
       "multipart/form-data": {
        "schema": {
         "$ref": "#/components/schemas/Workflows.multipart"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "422": {
      "description": "An error occurred",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConstraintViolation"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "summary": "Run workflow now",
    "description": "Trigger an immediate run of the workflow.",
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "description": "Workflows identifier",
      "required": true,
      "deprecated": false,
      "schema": {
       "type": "string"
      },
      "style": "simple",
      "explode": false
     }
    ],
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/public/auth/socket": {
   "post": {
    "operationId": "createSocketToken",
    "summary": "Get a WebSocket token",
    "description": "Returns a JWT for connecting to wss://exportcomments.com/connection/websocket with a Centrifugo client. The token pre-authorizes your personal channels. It needs no request body.",
    "tags": [
     "Realtime"
    ],
    "responses": {
     "200": {
      "description": "WebSocket token.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SocketToken"
        },
        "example": {
         "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "$ref": "#/components/responses/Forbidden"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/public/vpn/locations": {
   "get": {
    "operationId": "listVpnLocations",
    "summary": "List VPN locations",
    "description": "Returns the VPN locations that can route an export, for geo-restricted content. Pass a location name as options.vpn when creating a job. This endpoint is public and needs no authentication.",
    "tags": [
     "VPN"
    ],
    "parameters": [
     {
      "$ref": "#/components/parameters/Page"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Items per page. Default 10, maximum 30.",
      "schema": {
       "type": "integer",
       "default": 10,
       "minimum": 1,
       "maximum": 30
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Array of VPN locations.",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/VpnLocation"
         }
        },
        "example": [
         {
          "name": "Germany",
          "code": "de",
          "servers": 240,
          "running": true
         },
         {
          "name": "Norway",
          "code": "no",
          "servers": 62,
          "running": false
         }
        ]
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "security": []
   }
  },
  "/api/v1/api-usage": {
   "get": {
    "operationId": "getApiUsage",
    "summary": "Get API usage",
    "description": "Returns your tier, configured limits, today's consumption, active exports and platform access. Responds 200 even when the account has no API access, with has_access set to false.",
    "tags": [
     "Usage"
    ],
    "responses": {
     "200": {
      "description": "Usage statistics.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Usage"
        },
        "example": {
         "has_access": true,
         "has_token": true,
         "tier": "premium",
         "api_version": "v3",
         "limits": {
          "daily_requests": 100,
          "concurrent_requests": 1,
          "rate_per_minute": 60,
          "max_comments_per_export": 50000,
          "webhooks": 1
         },
         "usage": {
          "daily": {
           "used": 18,
           "limit": 100,
           "remaining": 82,
           "resets_at": "2026-11-21T00:00:00+00:00"
          },
          "concurrent": {
           "active": 0,
           "limit": 1
          },
          "rate": {
           "used": 0,
           "limit": 60
          }
         },
         "platforms": {
          "allowed": [
           "YouTube",
           "Instagram",
           "Facebook",
           "TikTok",
           "Twitter",
           "Reddit",
           "LinkedIn"
          ],
          "restricted": [],
          "all_platforms": false
         },
         "upgrade_benefits": {
          "unlimited_daily_requests": true,
          "more_concurrent_requests": "10 vs 1",
          "higher_rate_limit": "200/min vs 60/min",
          "more_comments": "250,000 vs 50,000",
          "all_platforms": true,
          "more_webhooks": "10 vs 1"
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "$ref": "#/components/responses/Forbidden"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   }
  },
  "/api/v1/batch-export": {
   "post": {
    "operationId": "createBatchExport",
    "summary": "Create a batch export",
    "description": "Creates one export job per URL, all sharing a batch_id. Premium accepts 25 URLs per batch and 1,000 URLs per UTC day, Business 100 and 5,000. Batch creation does not count toward the per-5-minute export window.",
    "tags": [
     "Batch Export"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BatchExportRequest"
       },
       "example": {
        "urls": [
         "https://www.instagram.com/p/Cabc123/",
         "https://www.tiktok.com/@user/video/7223456789012345678"
        ],
        "options": {
         "replies": true,
         "limit": 5000
        }
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Batch created. Invalid URLs are listed in errors and do not consume a job slot.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BatchExportCreated"
        },
        "example": {
         "batch_id": "b1d49f3e-7a4c-4c2b-9d8e-1234567890ab",
         "guids": [
          "abc12345-6789-0abc-def0-123456789abc",
          "def67890-1234-5678-9abc-def012345678"
         ],
         "errors": []
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/BadRequest"
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "$ref": "#/components/responses/Forbidden"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     },
     "500": {
      "description": "Server-side failure. None of the jobs were created, so it is safe to retry."
     }
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/batch-export/{batchId}": {
   "get": {
    "operationId": "getBatchExport",
    "summary": "Get batch status",
    "description": "Returns aggregated counts and a per-job summary for a batch. The worker updates progress every few seconds, so poll every 5 to 10 seconds.",
    "tags": [
     "Batch Export"
    ],
    "parameters": [
     {
      "name": "batchId",
      "in": "path",
      "required": true,
      "description": "The batch_id returned when the batch was created.",
      "schema": {
       "type": "string",
       "format": "uuid"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Batch status.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BatchExportStatus"
        },
        "example": {
         "batch_id": "b1d49f3e-7a4c-4c2b-9d8e-1234567890ab",
         "total": 3,
         "done": 1,
         "error": 0,
         "in_progress": 2,
         "is_complete": false,
         "progress_pct": 33,
         "exports": [
          {
           "guid": "abc12345-6789-0abc-def0-123456789abc",
           "url": "https://www.instagram.com/p/Cabc123/",
           "status": "done",
           "total": 247,
           "totalExported": 247,
           "error": null
          }
         ]
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "$ref": "#/components/responses/Forbidden"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   }
  },
  "/api/v1/bulk-download": {
   "post": {
    "operationId": "createBulkDownload",
    "summary": "Create a bulk download",
    "description": "Assembles the files of several completed jobs into one ZIP, asynchronously. Only jobs in done status are included.",
    "tags": [
     "Bulk Download"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BulkDownloadRequest"
       },
       "example": {
        "guids": [
         "b4219d47-3138-5efd-9762-2ef9f9495084",
         "a3118c36-2027-4dfc-8651-1de8e8384973"
        ]
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Bulk download started.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BulkDownload"
        },
        "example": {
         "uuid": "d1e2f3a4-5678-90ab-cdef-1234567890ab",
         "status": "processing",
         "fileCount": 2
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/BadRequest"
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "$ref": "#/components/responses/Forbidden"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "write"
      ]
     }
    ]
   }
  },
  "/api/v1/bulk-download/{uuid}": {
   "get": {
    "operationId": "getBulkDownload",
    "summary": "Get bulk download status",
    "description": "Returns the state of a bulk download. Poll until status is ready, then call the download endpoint.",
    "tags": [
     "Bulk Download"
    ],
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "required": true,
      "description": "Bulk download identifier.",
      "schema": {
       "type": "string",
       "format": "uuid"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Bulk download status.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BulkDownload"
        },
        "example": {
         "uuid": "d1e2f3a4-5678-90ab-cdef-1234567890ab",
         "status": "ready",
         "fileCount": 2,
         "downloadUrl": "/api/v1/bulk-download/d1e2f3a4-5678-90ab-cdef-1234567890ab/download"
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "$ref": "#/components/responses/Forbidden"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   }
  },
  "/api/v1/bulk-download/{uuid}/download": {
   "get": {
    "operationId": "downloadBulkDownload",
    "summary": "Download the bulk ZIP",
    "description": "Downloads the finished ZIP. Call it only after the status is ready. The file is kept for a limited time.",
    "tags": [
     "Bulk Download"
    ],
    "parameters": [
     {
      "name": "uuid",
      "in": "path",
      "required": true,
      "description": "Bulk download identifier.",
      "schema": {
       "type": "string",
       "format": "uuid"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The ZIP archive.",
      "content": {
       "application/zip": {
        "schema": {
         "type": "string",
         "format": "binary"
        }
       }
      }
     },
     "302": {
      "description": "Redirect to the file location when the local copy has aged out."
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "$ref": "#/components/responses/Forbidden"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   }
  },
  "/api/v1/workflows/pipeline-info": {
   "get": {
    "operationId": "getWorkflowPipelineInfo",
    "summary": "Get pipeline info",
    "description": "Returns the actions a platform supports, valid step transitions and suggested templates. Useful for building workflow forms.",
    "tags": [
     "Workflows"
    ],
    "parameters": [
     {
      "name": "url",
      "in": "query",
      "required": false,
      "description": "URL used to detect the platform and its available actions. When omitted, all actions are returned.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Pipeline information.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PipelineInfo"
        },
        "example": {
         "platform": "facebook",
         "available_actions": [
          "export_posts",
          "export_comments",
          "export_likes",
          "export_shares",
          "export_followers",
          "export_reviews"
         ],
         "transitions": {
          "export_posts": [
           "export_comments",
           "export_likes",
           "export_shares"
          ],
          "export_comments": [],
          "export_likes": [],
          "export_shares": [
           "export_comments",
           "export_likes"
          ],
          "export_followers": [],
          "export_reviews": []
         },
         "templates": [
          {
           "id": "review_monitor",
           "name": "Review Monitor",
           "description": "Automatically export new reviews on a schedule",
           "steps": [
            {
             "position": 1,
             "action": "export_reviews",
             "inputMode": "url",
             "options": {
              "limit": 5000
             },
             "conditions": []
            }
           ]
          }
         ]
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "$ref": "#/components/responses/Forbidden"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   }
  },
  "/api/v3/job/{guid}/data": {
   "get": {
    "operationId": "getJobData",
    "summary": "Get export rows inline",
    "description": "Returns the rows of a finished job as JSON or CSV without downloading a file. Also works on sandbox jobs, where it returns the same sample rows. JSON needs a Premium or Business plan.",
    "tags": [
     "Job"
    ],
    "parameters": [
     {
      "name": "guid",
      "in": "path",
      "required": true,
      "description": "Job GUID.",
      "schema": {
       "type": "string",
       "format": "uuid"
      }
     },
     {
      "name": "format",
      "in": "query",
      "required": false,
      "description": "Response format.",
      "schema": {
       "type": "string",
       "enum": [
        "json",
        "csv"
       ],
       "default": "json"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Rows of the finished export.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobData"
        }
       },
       "text/csv": {
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "202": {
      "description": "The export is not finished yet. Poll again.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "status": {
           "type": "string"
          },
          "message": {
           "type": "string"
          },
          "polling_recommendation_seconds": {
           "type": "integer"
          }
         }
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/BadRequest"
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "$ref": "#/components/responses/Forbidden"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "413": {
      "description": "The export is too large to return inline. Use json_url or the download link of the job instead.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "error": {
           "type": "string"
          },
          "total_exported": {
           "type": "integer"
          },
          "json_url": {
           "type": [
            "string",
            "null"
           ]
          },
          "download_url": {
           "type": [
            "string",
            "null"
           ]
          }
         }
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    },
    "security": [
     {
      "ApiKeyAuth": []
     },
     {
      "OAuth2": [
       "read"
      ]
     }
    ]
   }
  }
 },
 "components": {
  "schemas": {
   "API.Tokens": {
    "type": "object",
    "description": "API tokens for programmatic access to the ExportComments API.\n\n## Authentication\n\nInclude your token in requests:\n\n```\nX-AUTH-TOKEN: <your-api-token>\n```\n\n## API Tiers\n\nYour token tier determines API limits:\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Daily Export Creations | 100 | Unlimited |\n| Rate Limit | 60/min | 200/min |\n| Concurrent Exports | 1 | 5 |\n| Max Comments | 50,000 | 250,000 |\n| Webhooks | 1 | 10 |\n| Platforms | 7 major | All |\n\n## Token Lifecycle\n\n| Event | Description |\n|-------|-------------|\n| Generation | Token shown once, store securely |\n| Expiration | 1 year from creation |\n| Revocation | Immediate via DELETE endpoint |\n\n## Security\n\n- Never expose tokens in client-side code\n- Rotate tokens periodically\n- Revoke immediately if compromised\n- Monitor usage via job history",
    "properties": {
     "token": {
      "type": "string"
     },
     "expires_at": {
      "type": "string",
      "format": "date-time"
     },
     "comments": {
      "type": "array",
      "items": {
       "type": "string",
       "format": "iri-reference",
       "example": "https://example.com/"
      }
     },
     "user": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "api_version": {
      "default": "v3",
      "type": "string"
     },
     "tier": {
      "description": "Effective tier: the owner's CURRENT paid plan wins over the stored\ncolumn. The stored tier is written at token creation and re-synced on\nSubscriptionCreatedEvent, but that sync silently missed plan changes\n(2026-10-12 audit: 18 of the active tokens disagreed with the plan — a\nBusiness customer was capped at Premium's 3-URL API queue for weeks).",
      "default": "business",
      "type": "string"
     },
     "id": {
      "readOnly": true,
      "description": "The unique auto incremented primary key.",
      "type": "integer"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "expired": {
      "readOnly": true,
      "type": "boolean"
     },
     "v2": {
      "readOnly": true,
      "type": "boolean"
     },
     "v3": {
      "readOnly": true,
      "type": "boolean"
     },
     "stored_tier": {
      "readOnly": true,
      "description": "Raw column value, for the sync job that keeps it aligned with the plan.",
      "type": "string"
     },
     "premium_tier": {
      "readOnly": true,
      "type": "boolean"
     },
     "business_tier": {
      "readOnly": true,
      "type": "boolean"
     },
     "limits": {
      "readOnly": true,
      "description": "Get API limits for this token's tier",
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "daily_limit": {
      "readOnly": true,
      "description": "Get daily request limit for this token's tier\nReturns 0 for unlimited",
      "type": "integer"
     },
     "export_limit": {
      "readOnly": true,
      "description": "Get max results per export for this token's tier\nReturns 0 for unlimited",
      "type": "integer"
     },
     "scheduled_exports_limit": {
      "readOnly": true,
      "description": "Get max scheduled exports for this token's tier",
      "type": "integer"
     },
     "unlimited_daily_requests": {
      "readOnly": true,
      "description": "Check if this token's tier has unlimited daily requests",
      "type": "boolean"
     },
     "unlimited_export_comments": {
      "readOnly": true,
      "description": "Check if this token's tier has unlimited export comments",
      "type": "boolean"
     },
     "name": {
      "readOnly": true,
      "description": "Get a display name for the token.",
      "type": "string"
     },
     "uuid_as_string": {
      "readOnly": true,
      "type": "string"
     }
    }
   },
   "API.Tokens-api_tokens.read": {
    "type": "object",
    "description": "API tokens for programmatic access to the ExportComments API.\n\n## Authentication\n\nInclude your token in requests:\n\n```\nX-AUTH-TOKEN: <your-api-token>\n```\n\n## API Tiers\n\nYour token tier determines API limits:\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Daily Export Creations | 100 | Unlimited |\n| Rate Limit | 60/min | 200/min |\n| Concurrent Exports | 1 | 5 |\n| Max Comments | 50,000 | 250,000 |\n| Webhooks | 1 | 10 |\n| Platforms | 7 major | All |\n\n## Token Lifecycle\n\n| Event | Description |\n|-------|-------------|\n| Generation | Token shown once, store securely |\n| Expiration | 1 year from creation |\n| Revocation | Immediate via DELETE endpoint |\n\n## Security\n\n- Never expose tokens in client-side code\n- Rotate tokens periodically\n- Revoke immediately if compromised\n- Monitor usage via job history",
    "properties": {
     "token": {
      "type": "string"
     },
     "expires_at": {
      "type": "string",
      "format": "date-time"
     },
     "api_version": {
      "default": "v3",
      "type": "string"
     },
     "tier": {
      "description": "Effective tier: the owner's CURRENT paid plan wins over the stored\ncolumn. The stored tier is written at token creation and re-synced on\nSubscriptionCreatedEvent, but that sync silently missed plan changes\n(2026-10-12 audit: 18 of the active tokens disagreed with the plan — a\nBusiness customer was capped at Premium's 3-URL API queue for weeks).",
      "default": "business",
      "type": "string"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "expired": {
      "readOnly": true,
      "type": "boolean"
     },
     "daily_limit": {
      "readOnly": true,
      "description": "Get daily request limit for this token's tier\nReturns 0 for unlimited",
      "type": "integer"
     },
     "export_limit": {
      "readOnly": true,
      "description": "Get max results per export for this token's tier\nReturns 0 for unlimited",
      "type": "integer"
     },
     "scheduled_exports_limit": {
      "readOnly": true,
      "description": "Get max scheduled exports for this token's tier",
      "type": "integer"
     }
    }
   },
   "API.Tokens.multipart": {
    "type": "object",
    "description": "API tokens for programmatic access to the ExportComments API.\n\n## Authentication\n\nInclude your token in requests:\n\n```\nX-AUTH-TOKEN: <your-api-token>\n```\n\n## API Tiers\n\nYour token tier determines API limits:\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Daily Export Creations | 100 | Unlimited |\n| Rate Limit | 60/min | 200/min |\n| Concurrent Exports | 1 | 5 |\n| Max Comments | 50,000 | 250,000 |\n| Webhooks | 1 | 10 |\n| Platforms | 7 major | All |\n\n## Token Lifecycle\n\n| Event | Description |\n|-------|-------------|\n| Generation | Token shown once, store securely |\n| Expiration | 1 year from creation |\n| Revocation | Immediate via DELETE endpoint |\n\n## Security\n\n- Never expose tokens in client-side code\n- Rotate tokens periodically\n- Revoke immediately if compromised\n- Monitor usage via job history",
    "properties": {
     "token": {
      "type": "string"
     },
     "expires_at": {
      "type": "string",
      "format": "date-time"
     },
     "comments": {
      "type": "array",
      "items": {
       "type": "string",
       "format": "iri-reference",
       "example": "https://example.com/"
      }
     },
     "user": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "api_version": {
      "default": "v3",
      "type": "string"
     },
     "tier": {
      "description": "Effective tier: the owner's CURRENT paid plan wins over the stored\ncolumn. The stored tier is written at token creation and re-synced on\nSubscriptionCreatedEvent, but that sync silently missed plan changes\n(2026-10-12 audit: 18 of the active tokens disagreed with the plan — a\nBusiness customer was capped at Premium's 3-URL API queue for weeks).",
      "default": "business",
      "type": "string"
     },
     "id": {
      "readOnly": true,
      "description": "The unique auto incremented primary key.",
      "type": "integer"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "expired": {
      "readOnly": true,
      "type": "boolean"
     },
     "v2": {
      "readOnly": true,
      "type": "boolean"
     },
     "v3": {
      "readOnly": true,
      "type": "boolean"
     },
     "stored_tier": {
      "readOnly": true,
      "description": "Raw column value, for the sync job that keeps it aligned with the plan.",
      "type": "string"
     },
     "premium_tier": {
      "readOnly": true,
      "type": "boolean"
     },
     "business_tier": {
      "readOnly": true,
      "type": "boolean"
     },
     "limits": {
      "readOnly": true,
      "description": "Get API limits for this token's tier",
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "daily_limit": {
      "readOnly": true,
      "description": "Get daily request limit for this token's tier\nReturns 0 for unlimited",
      "type": "integer"
     },
     "export_limit": {
      "readOnly": true,
      "description": "Get max results per export for this token's tier\nReturns 0 for unlimited",
      "type": "integer"
     },
     "scheduled_exports_limit": {
      "readOnly": true,
      "description": "Get max scheduled exports for this token's tier",
      "type": "integer"
     },
     "unlimited_daily_requests": {
      "readOnly": true,
      "description": "Check if this token's tier has unlimited daily requests",
      "type": "boolean"
     },
     "unlimited_export_comments": {
      "readOnly": true,
      "description": "Check if this token's tier has unlimited export comments",
      "type": "boolean"
     },
     "name": {
      "readOnly": true,
      "description": "Get a display name for the token.",
      "type": "string"
     },
     "uuid_as_string": {
      "readOnly": true,
      "type": "string"
     }
    }
   },
   "API.Tokens.multipart-api_tokens.read": {
    "type": "object",
    "description": "API tokens for programmatic access to the ExportComments API.\n\n## Authentication\n\nInclude your token in requests:\n\n```\nX-AUTH-TOKEN: <your-api-token>\n```\n\n## API Tiers\n\nYour token tier determines API limits:\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Daily Export Creations | 100 | Unlimited |\n| Rate Limit | 60/min | 200/min |\n| Concurrent Exports | 1 | 5 |\n| Max Comments | 50,000 | 250,000 |\n| Webhooks | 1 | 10 |\n| Platforms | 7 major | All |\n\n## Token Lifecycle\n\n| Event | Description |\n|-------|-------------|\n| Generation | Token shown once, store securely |\n| Expiration | 1 year from creation |\n| Revocation | Immediate via DELETE endpoint |\n\n## Security\n\n- Never expose tokens in client-side code\n- Rotate tokens periodically\n- Revoke immediately if compromised\n- Monitor usage via job history",
    "properties": {
     "token": {
      "type": "string"
     },
     "expires_at": {
      "type": "string",
      "format": "date-time"
     },
     "api_version": {
      "default": "v3",
      "type": "string"
     },
     "tier": {
      "description": "Effective tier: the owner's CURRENT paid plan wins over the stored\ncolumn. The stored tier is written at token creation and re-synced on\nSubscriptionCreatedEvent, but that sync silently missed plan changes\n(2026-10-12 audit: 18 of the active tokens disagreed with the plan — a\nBusiness customer was capped at Premium's 3-URL API queue for weeks).",
      "default": "business",
      "type": "string"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "expired": {
      "readOnly": true,
      "type": "boolean"
     },
     "daily_limit": {
      "readOnly": true,
      "description": "Get daily request limit for this token's tier\nReturns 0 for unlimited",
      "type": "integer"
     },
     "export_limit": {
      "readOnly": true,
      "description": "Get max results per export for this token's tier\nReturns 0 for unlimited",
      "type": "integer"
     },
     "scheduled_exports_limit": {
      "readOnly": true,
      "description": "Get max scheduled exports for this token's tier",
      "type": "integer"
     }
    }
   },
   "ConstraintViolation": {
    "type": "object",
    "description": "Unprocessable entity",
    "properties": {
     "status": {
      "default": 422,
      "type": "integer"
     },
     "violations": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "propertyPath": {
         "type": "string",
         "description": "The property path of the violation"
        },
        "message": {
         "type": "string",
         "description": "The message associated with the violation"
        },
        "code": {
         "type": "string",
         "description": "The code of the violation"
        },
        "hint": {
         "type": "string",
         "description": "An extra hint to understand the violation"
        },
        "payload": {
         "type": "object",
         "additionalProperties": true,
         "description": "The serialized payload of the violation"
        }
       },
       "required": [
        "propertyPath",
        "message"
       ]
      }
     },
     "detail": {
      "readOnly": true,
      "type": "string"
     },
     "type": {
      "readOnly": true,
      "type": "string"
     },
     "title": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "instance": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     }
    }
   },
   "Entity.Payment-payment.read": {
    "type": "object",
    "properties": {
     "transaction_id": {
      "description": "Get the value of transactionId",
      "type": [
       "string",
       "null"
      ]
     },
     "status": {
      "description": "Get the value of status",
      "type": "string"
     },
     "price": {
      "description": "Get the value of price",
      "default": 0,
      "type": "string"
     },
     "invoice_id": {
      "description": "Get the value of invoiceId",
      "type": [
       "string",
       "null"
      ]
     },
     "currency": {
      "description": "Get the value of currency",
      "default": "USD",
      "type": [
       "string",
       "null"
      ]
     },
     "refunded": {
      "description": "Get the value of refunded",
      "default": false,
      "type": "boolean"
     },
     "payment_method": {
      "type": [
       "string",
       "null"
      ],
      "enum": [
       "stripe",
       "wire",
       "bitcoin",
       "paypal",
       "internal",
       null
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     }
    }
   },
   "Entity.Payment.multipart-payment.read": {
    "type": "object",
    "properties": {
     "transaction_id": {
      "description": "Get the value of transactionId",
      "type": [
       "string",
       "null"
      ]
     },
     "status": {
      "description": "Get the value of status",
      "type": "string"
     },
     "price": {
      "description": "Get the value of price",
      "default": 0,
      "type": "string"
     },
     "invoice_id": {
      "description": "Get the value of invoiceId",
      "type": [
       "string",
       "null"
      ]
     },
     "currency": {
      "description": "Get the value of currency",
      "default": "USD",
      "type": [
       "string",
       "null"
      ]
     },
     "refunded": {
      "description": "Get the value of refunded",
      "default": false,
      "type": "boolean"
     },
     "payment_method": {
      "type": [
       "string",
       "null"
      ],
      "enum": [
       "stripe",
       "wire",
       "bitcoin",
       "paypal",
       "internal",
       null
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     }
    }
   },
   "Entity.Subscription-subscription.read": {
    "type": "object",
    "properties": {
     "name": {
      "description": "The name of the subscription.",
      "type": "string"
     },
     "status": {
      "description": "The status of the subscription (e.g., active, inactive).",
      "type": "string"
     },
     "plan": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Plan-subscription.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "payment_method": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/PaymentMethods-subscription.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "billing_period": {
      "description": "The billing period of the subscription (e.g., monthly, yearly).",
      "type": "string"
     },
     "recurring_amount": {
      "description": "The recurring amount for the subscription.",
      "default": "0.00",
      "type": "string"
     },
     "quantity": {
      "description": "Number of purchased seats (Stripe subscription item quantity). Only\nmeaningful for Business: each seat = one API key and scales the per-user\nconcurrency ceilings. Every other plan is always 1.",
      "default": 1,
      "type": "integer"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "active": {
      "readOnly": true,
      "description": "Check if the subscription is active.",
      "type": "boolean"
     }
    }
   },
   "Entity.Subscription-user.read_subscription.read_payment.read": {
    "type": "object",
    "properties": {
     "name": {
      "description": "The name of the subscription.",
      "type": "string"
     },
     "status": {
      "description": "The status of the subscription (e.g., active, inactive).",
      "type": "string"
     },
     "plan": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Plan-user.read_subscription.read_payment.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "payment_method": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/PaymentMethods-user.read_subscription.read_payment.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "billing_period": {
      "description": "The billing period of the subscription (e.g., monthly, yearly).",
      "type": "string"
     },
     "recurring_amount": {
      "description": "The recurring amount for the subscription.",
      "default": "0.00",
      "type": "string"
     },
     "quantity": {
      "description": "Number of purchased seats (Stripe subscription item quantity). Only\nmeaningful for Business: each seat = one API key and scales the per-user\nconcurrency ceilings. Every other plan is always 1.",
      "default": 1,
      "type": "integer"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "active": {
      "readOnly": true,
      "description": "Check if the subscription is active.",
      "type": "boolean"
     }
    }
   },
   "Entity.Subscription-user.read_subscription.read_payment.read_telegram.read": {
    "type": "object",
    "properties": {
     "name": {
      "description": "The name of the subscription.",
      "type": "string"
     },
     "status": {
      "description": "The status of the subscription (e.g., active, inactive).",
      "type": "string"
     },
     "plan": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Plan-user.read_subscription.read_payment.read_telegram.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "payment_method": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/PaymentMethods-user.read_subscription.read_payment.read_telegram.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "billing_period": {
      "description": "The billing period of the subscription (e.g., monthly, yearly).",
      "type": "string"
     },
     "recurring_amount": {
      "description": "The recurring amount for the subscription.",
      "default": "0.00",
      "type": "string"
     },
     "quantity": {
      "description": "Number of purchased seats (Stripe subscription item quantity). Only\nmeaningful for Business: each seat = one API key and scales the per-user\nconcurrency ceilings. Every other plan is always 1.",
      "default": 1,
      "type": "integer"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "active": {
      "readOnly": true,
      "description": "Check if the subscription is active.",
      "type": "boolean"
     }
    }
   },
   "Entity.Subscription.multipart-subscription.read": {
    "type": "object",
    "properties": {
     "name": {
      "description": "The name of the subscription.",
      "type": "string"
     },
     "status": {
      "description": "The status of the subscription (e.g., active, inactive).",
      "type": "string"
     },
     "plan": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Plan.multipart-subscription.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "payment_method": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/PaymentMethods.multipart-subscription.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "billing_period": {
      "description": "The billing period of the subscription (e.g., monthly, yearly).",
      "type": "string"
     },
     "recurring_amount": {
      "description": "The recurring amount for the subscription.",
      "default": "0.00",
      "type": "string"
     },
     "quantity": {
      "description": "Number of purchased seats (Stripe subscription item quantity). Only\nmeaningful for Business: each seat = one API key and scales the per-user\nconcurrency ceilings. Every other plan is always 1.",
      "default": 1,
      "type": "integer"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "active": {
      "readOnly": true,
      "description": "Check if the subscription is active.",
      "type": "boolean"
     }
    }
   },
   "Entity.Subscription.multipart-user.read_subscription.read_payment.read": {
    "type": "object",
    "properties": {
     "name": {
      "description": "The name of the subscription.",
      "type": "string"
     },
     "status": {
      "description": "The status of the subscription (e.g., active, inactive).",
      "type": "string"
     },
     "plan": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Plan.multipart-user.read_subscription.read_payment.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "payment_method": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/PaymentMethods.multipart-user.read_subscription.read_payment.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "billing_period": {
      "description": "The billing period of the subscription (e.g., monthly, yearly).",
      "type": "string"
     },
     "recurring_amount": {
      "description": "The recurring amount for the subscription.",
      "default": "0.00",
      "type": "string"
     },
     "quantity": {
      "description": "Number of purchased seats (Stripe subscription item quantity). Only\nmeaningful for Business: each seat = one API key and scales the per-user\nconcurrency ceilings. Every other plan is always 1.",
      "default": 1,
      "type": "integer"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "active": {
      "readOnly": true,
      "description": "Check if the subscription is active.",
      "type": "boolean"
     }
    }
   },
   "Entity.Subscription.multipart-user.read_subscription.read_payment.read_telegram.read": {
    "type": "object",
    "properties": {
     "name": {
      "description": "The name of the subscription.",
      "type": "string"
     },
     "status": {
      "description": "The status of the subscription (e.g., active, inactive).",
      "type": "string"
     },
     "plan": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Plan.multipart-user.read_subscription.read_payment.read_telegram.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "payment_method": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/PaymentMethods.multipart-user.read_subscription.read_payment.read_telegram.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "billing_period": {
      "description": "The billing period of the subscription (e.g., monthly, yearly).",
      "type": "string"
     },
     "recurring_amount": {
      "description": "The recurring amount for the subscription.",
      "default": "0.00",
      "type": "string"
     },
     "quantity": {
      "description": "Number of purchased seats (Stripe subscription item quantity). Only\nmeaningful for Business: each seat = one API key and scales the per-user\nconcurrency ceilings. Every other plan is always 1.",
      "default": 1,
      "type": "integer"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "active": {
      "readOnly": true,
      "description": "Check if the subscription is active.",
      "type": "boolean"
     }
    }
   },
   "Error": {
    "type": "object",
    "description": "Body of a failed request. Every error carries status_code, error_code and detail. Rate limit errors add seconds_to_wait. The older data and error fields repeat the message for existing clients.",
    "properties": {
     "status_code": {
      "type": "integer",
      "description": "HTTP status code of the response.",
      "example": 404
     },
     "error_code": {
      "type": "string",
      "description": "Machine readable error code, for example INVALID_REQUEST, INVALID_URL, AUTH_HEADER_TOKEN, TOKEN_EXPIRED, PLAN_EXPIRED, PLATFORM_NOT_ALLOWED, DAILY_LIMIT_EXCEEDED, RATE_LIMIT_EXCEEDED, CONCURRENCY_RATE_LIMIT, QUEUE_LIMIT_EXCEEDED, NOT_FOUND, METHOD_NOT_ALLOWED, VALIDATION_ERROR, INTERNAL_ERROR.",
      "example": "NOT_FOUND"
     },
     "detail": {
      "type": [
       "string",
       "null"
      ],
      "description": "What went wrong, in plain words."
     },
     "message": {
      "type": "string",
      "description": "Short message. Present on authentication errors."
     },
     "seconds_to_wait": {
      "type": "integer",
      "description": "Seconds until the request can be retried. Present on 429."
     },
     "docs": {
      "type": "string",
      "format": "uri",
      "description": "Where the error codes and their fixes are documented."
     },
     "data": {
      "type": "string",
      "description": "Legacy field. Repeats the message or a short error key."
     },
     "error": {
      "description": "Legacy field. Repeats the message."
     }
    }
   },
   "Filters-api.read_comment.read": {
    "type": "object"
   },
   "Filters.multipart-api.read_comment.read": {
    "type": "object"
   },
   "Job-api.read": {
    "type": "object",
    "description": "Export jobs for extracting comments, reviews, followers, and other data from social media platforms.\n\n## Supported Platforms\n\nFacebook, Instagram, Twitter/X, YouTube, TikTok, Reddit, LinkedIn, Discord, Amazon, Google Reviews, Trustpilot, Steam, Etsy, Shopee, Lazada, Tripadvisor, and more.\n\n## Authentication Cookies\n\nSome platforms require cookies for full access:\n\n- **Instagram**: `sessionid` cookie\n- **Facebook**: `cookie_user` + `cookie_xs`\n- **Twitter/X**: `auth_token`",
    "properties": {
     "guid": {
      "description": "The globally unique identifier (GUID) of the comment.",
      "type": "string",
      "format": "uuid",
      "example": "b4219d47-3138-5efd-9762-2ef9f9495084"
     },
     "status": {
      "description": "The status of the comment (e.g., queueing, done).",
      "default": "queueing",
      "type": "string"
     },
     "replies": {
      "default": false,
      "type": "boolean"
     },
     "shares": {
      "readOnly": true,
      "default": false,
      "type": "boolean"
     },
     "likes": {
      "readOnly": true,
      "default": false,
      "type": "boolean"
     },
     "raw_file": {
      "description": "The raw file name associated with the comment.",
      "type": [
       "string",
       "null"
      ]
     },
     "locked": {
      "description": "Whether the comment is locked.",
      "default": false,
      "type": "boolean"
     },
     "timezone": {
      "description": "The timezone associated with the comment.",
      "default": "UTC",
      "type": [
       "string",
       "null"
      ]
     },
     "is_scheduled": {
      "description": "Whether this export was created from a scheduled export.",
      "default": false,
      "type": "boolean"
     },
     "batch_id": {
      "description": "The batch ID for bulk exports - groups multiple exports together.",
      "type": [
       "string",
       "null"
      ]
     },
     "sandbox": {
      "description": "Whether this is a sandbox response.",
      "default": false,
      "type": "boolean"
     },
     "data": {
      "description": "In-memory sample data for sandbox responses (not persisted to DB —\nthe canonical copy is on disk at $exportsDirectory/$rawFile, written\nby CommentCreateProcessor::processSandboxRequest so DataController\ncan serve it like any real export).",
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": "array",
       "items": {
        "type": [
         "string",
         "null"
        ]
       }
      }
     },
     "options": {
      "readOnly": true,
      "description": "Serialized as 'options' for 'webhook:read'/'api:read' consumers.",
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "json_url": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "download_link": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "result_note": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "masked_metadata": {
      "readOnly": true,
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     }
    }
   },
   "Job-api.read_comment.read": {
    "type": "object",
    "description": "Export jobs for extracting comments, reviews, followers, and other data from social media platforms.\n\n## Supported Platforms\n\nFacebook, Instagram, Twitter/X, YouTube, TikTok, Reddit, LinkedIn, Discord, Amazon, Google Reviews, Trustpilot, Steam, Etsy, Shopee, Lazada, Tripadvisor, and more.\n\n## Authentication Cookies\n\nSome platforms require cookies for full access:\n\n- **Instagram**: `sessionid` cookie\n- **Facebook**: `cookie_user` + `cookie_xs`\n- **Twitter/X**: `auth_token`",
    "properties": {
     "url": {
      "description": "The URL associated with the comment.",
      "type": "string"
     },
     "guid": {
      "description": "The globally unique identifier (GUID) of the comment.",
      "type": "string",
      "format": "uuid",
      "example": "b4219d47-3138-5efd-9762-2ef9f9495084"
     },
     "status": {
      "description": "The status of the comment (e.g., queueing, done).",
      "default": "queueing",
      "type": "string"
     },
     "replies": {
      "default": false,
      "type": "boolean"
     },
     "shares": {
      "readOnly": true,
      "default": false,
      "type": "boolean"
     },
     "likes": {
      "readOnly": true,
      "default": false,
      "type": "boolean"
     },
     "file_name": {
      "description": "The file name associated with the comment.",
      "type": [
       "string",
       "null"
      ]
     },
     "raw_file": {
      "description": "The raw file name associated with the comment.",
      "type": [
       "string",
       "null"
      ]
     },
     "total": {
      "description": "The total number of comments.",
      "default": 0,
      "type": "integer"
     },
     "total_exported": {
      "description": "The total number of exported comments.",
      "default": 0,
      "type": "integer"
     },
     "retry": {
      "description": "The number of retries for the comment export.",
      "default": 1,
      "type": "integer"
     },
     "error": {
      "description": "The error message associated with the comment, if any.",
      "type": [
       "string",
       "null"
      ]
     },
     "replies_count": {
      "description": "The number of replies to the comment.",
      "default": 0,
      "type": "integer"
     },
     "twitter_type": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "locked": {
      "description": "Whether the comment is locked.",
      "default": false,
      "type": "boolean"
     },
     "timezone": {
      "description": "The timezone associated with the comment.",
      "default": "UTC",
      "type": [
       "string",
       "null"
      ]
     },
     "created_at": {
      "description": "The creation date of the comment.",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "The last update date of the comment.",
      "type": "string",
      "format": "date-time"
     },
     "exported_at": {
      "description": "The export date of the comment.",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "downloaded_at": {
      "readOnly": true,
      "description": "First time the export file was fetched from /exports/<file> (nginx access\nlog, synced by app:exports:sync-downloads) — null = never downloaded.",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "plan": {
      "description": "The unified plan field for future exports.",
      "type": [
       "string",
       "null"
      ]
     },
     "notification": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Notification-api.read_comment.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "filters": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Filters-api.read_comment.read"
      },
      "readOnly": true
     },
     "is_scheduled": {
      "description": "Whether this export was created from a scheduled export.",
      "default": false,
      "type": "boolean"
     },
     "batch_id": {
      "description": "The batch ID for bulk exports - groups multiple exports together.",
      "type": [
       "string",
       "null"
      ]
     },
     "platform": {
      "readOnly": true,
      "description": "Persisted platform slug (e.g. \"facebook\", \"instagram\") derived from the URL\nvia getPlatform() at persist time. Indexed for fast GROUP BY on admin dashboards.",
      "type": [
       "string",
       "null"
      ]
     },
     "sandbox": {
      "description": "Whether this is a sandbox response.",
      "default": false,
      "type": "boolean"
     },
     "data": {
      "description": "In-memory sample data for sandbox responses (not persisted to DB —\nthe canonical copy is on disk at $exportsDirectory/$rawFile, written\nby CommentCreateProcessor::processSandboxRequest so DataController\ncan serve it like any real export).",
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": "array",
       "items": {
        "type": [
         "string",
         "null"
        ]
       }
      }
     },
     "video_stats": {
      "readOnly": true,
      "description": "Curated, customer-visible slice of the export metadata: video-level\nengagement stats (comment / like / view counts) populated by the YouTube\nexporters. Exposed on its own so the whole (admin-only) metadata bag stays\nprivate. Null when the platform doesn't provide video stats.",
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "options": {
      "readOnly": true,
      "description": "Serialized as 'options' for 'webhook:read'/'api:read' consumers.",
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "export_type": {
      "readOnly": true
     },
     "inline_estimate": {
      "readOnly": true,
      "description": "Inline estimate embedded in every `comment:read` socket broadcast and\nREST response — ZERO extra DB queries.",
      "type": [
       "object",
       "null"
      ],
      "additionalProperties": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "download_url": {
      "readOnly": true
     },
     "preview_url": {
      "readOnly": true
     },
     "status_url": {
      "readOnly": true
     },
     "paid": {
      "readOnly": true
     },
     "analytics_supported": {
      "readOnly": true,
      "type": "boolean"
     },
     "paid_plan": {
      "readOnly": true
     },
     "delete_after": {
      "readOnly": true,
      "type": "string",
      "format": "date-time"
     },
     "paid_limit": {
      "readOnly": true,
      "type": "integer"
     },
     "json_url": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "download_link": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "result_note": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "masked_metadata": {
      "readOnly": true,
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     }
    }
   },
   "Job.multipart-api.read": {
    "type": "object",
    "description": "Export jobs for extracting comments, reviews, followers, and other data from social media platforms.\n\n## Supported Platforms\n\nFacebook, Instagram, Twitter/X, YouTube, TikTok, Reddit, LinkedIn, Discord, Amazon, Google Reviews, Trustpilot, Steam, Etsy, Shopee, Lazada, Tripadvisor, and more.\n\n## Authentication Cookies\n\nSome platforms require cookies for full access:\n\n- **Instagram**: `sessionid` cookie\n- **Facebook**: `cookie_user` + `cookie_xs`\n- **Twitter/X**: `auth_token`",
    "properties": {
     "guid": {
      "description": "The globally unique identifier (GUID) of the comment.",
      "type": "string",
      "format": "uuid",
      "example": "b4219d47-3138-5efd-9762-2ef9f9495084"
     },
     "status": {
      "description": "The status of the comment (e.g., queueing, done).",
      "default": "queueing",
      "type": "string"
     },
     "replies": {
      "default": false,
      "type": "boolean"
     },
     "shares": {
      "readOnly": true,
      "default": false,
      "type": "boolean"
     },
     "likes": {
      "readOnly": true,
      "default": false,
      "type": "boolean"
     },
     "raw_file": {
      "description": "The raw file name associated with the comment.",
      "type": [
       "string",
       "null"
      ]
     },
     "locked": {
      "description": "Whether the comment is locked.",
      "default": false,
      "type": "boolean"
     },
     "timezone": {
      "description": "The timezone associated with the comment.",
      "default": "UTC",
      "type": [
       "string",
       "null"
      ]
     },
     "is_scheduled": {
      "description": "Whether this export was created from a scheduled export.",
      "default": false,
      "type": "boolean"
     },
     "batch_id": {
      "description": "The batch ID for bulk exports - groups multiple exports together.",
      "type": [
       "string",
       "null"
      ]
     },
     "sandbox": {
      "description": "Whether this is a sandbox response.",
      "default": false,
      "type": "boolean"
     },
     "data": {
      "description": "In-memory sample data for sandbox responses (not persisted to DB —\nthe canonical copy is on disk at $exportsDirectory/$rawFile, written\nby CommentCreateProcessor::processSandboxRequest so DataController\ncan serve it like any real export).",
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": "array",
       "items": {
        "type": [
         "string",
         "null"
        ]
       }
      }
     },
     "options": {
      "readOnly": true,
      "description": "Serialized as 'options' for 'webhook:read'/'api:read' consumers.",
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "json_url": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "download_link": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "result_note": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "masked_metadata": {
      "readOnly": true,
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     }
    }
   },
   "Job.multipart-api.read_comment.read": {
    "type": "object",
    "description": "Export jobs for extracting comments, reviews, followers, and other data from social media platforms.\n\n## Supported Platforms\n\nFacebook, Instagram, Twitter/X, YouTube, TikTok, Reddit, LinkedIn, Discord, Amazon, Google Reviews, Trustpilot, Steam, Etsy, Shopee, Lazada, Tripadvisor, and more.\n\n## Authentication Cookies\n\nSome platforms require cookies for full access:\n\n- **Instagram**: `sessionid` cookie\n- **Facebook**: `cookie_user` + `cookie_xs`\n- **Twitter/X**: `auth_token`",
    "properties": {
     "url": {
      "description": "The URL associated with the comment.",
      "type": "string"
     },
     "guid": {
      "description": "The globally unique identifier (GUID) of the comment.",
      "type": "string",
      "format": "uuid",
      "example": "b4219d47-3138-5efd-9762-2ef9f9495084"
     },
     "status": {
      "description": "The status of the comment (e.g., queueing, done).",
      "default": "queueing",
      "type": "string"
     },
     "replies": {
      "default": false,
      "type": "boolean"
     },
     "shares": {
      "readOnly": true,
      "default": false,
      "type": "boolean"
     },
     "likes": {
      "readOnly": true,
      "default": false,
      "type": "boolean"
     },
     "file_name": {
      "description": "The file name associated with the comment.",
      "type": [
       "string",
       "null"
      ]
     },
     "raw_file": {
      "description": "The raw file name associated with the comment.",
      "type": [
       "string",
       "null"
      ]
     },
     "total": {
      "description": "The total number of comments.",
      "default": 0,
      "type": "integer"
     },
     "total_exported": {
      "description": "The total number of exported comments.",
      "default": 0,
      "type": "integer"
     },
     "retry": {
      "description": "The number of retries for the comment export.",
      "default": 1,
      "type": "integer"
     },
     "error": {
      "description": "The error message associated with the comment, if any.",
      "type": [
       "string",
       "null"
      ]
     },
     "replies_count": {
      "description": "The number of replies to the comment.",
      "default": 0,
      "type": "integer"
     },
     "twitter_type": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "locked": {
      "description": "Whether the comment is locked.",
      "default": false,
      "type": "boolean"
     },
     "timezone": {
      "description": "The timezone associated with the comment.",
      "default": "UTC",
      "type": [
       "string",
       "null"
      ]
     },
     "created_at": {
      "description": "The creation date of the comment.",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "The last update date of the comment.",
      "type": "string",
      "format": "date-time"
     },
     "exported_at": {
      "description": "The export date of the comment.",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "downloaded_at": {
      "readOnly": true,
      "description": "First time the export file was fetched from /exports/<file> (nginx access\nlog, synced by app:exports:sync-downloads) — null = never downloaded.",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "plan": {
      "description": "The unified plan field for future exports.",
      "type": [
       "string",
       "null"
      ]
     },
     "notification": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Notification.multipart-api.read_comment.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "filters": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Filters.multipart-api.read_comment.read"
      },
      "readOnly": true
     },
     "is_scheduled": {
      "description": "Whether this export was created from a scheduled export.",
      "default": false,
      "type": "boolean"
     },
     "batch_id": {
      "description": "The batch ID for bulk exports - groups multiple exports together.",
      "type": [
       "string",
       "null"
      ]
     },
     "platform": {
      "readOnly": true,
      "description": "Persisted platform slug (e.g. \"facebook\", \"instagram\") derived from the URL\nvia getPlatform() at persist time. Indexed for fast GROUP BY on admin dashboards.",
      "type": [
       "string",
       "null"
      ]
     },
     "sandbox": {
      "description": "Whether this is a sandbox response.",
      "default": false,
      "type": "boolean"
     },
     "data": {
      "description": "In-memory sample data for sandbox responses (not persisted to DB —\nthe canonical copy is on disk at $exportsDirectory/$rawFile, written\nby CommentCreateProcessor::processSandboxRequest so DataController\ncan serve it like any real export).",
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": "array",
       "items": {
        "type": [
         "string",
         "null"
        ]
       }
      }
     },
     "video_stats": {
      "readOnly": true,
      "description": "Curated, customer-visible slice of the export metadata: video-level\nengagement stats (comment / like / view counts) populated by the YouTube\nexporters. Exposed on its own so the whole (admin-only) metadata bag stays\nprivate. Null when the platform doesn't provide video stats.",
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "options": {
      "readOnly": true,
      "description": "Serialized as 'options' for 'webhook:read'/'api:read' consumers.",
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "export_type": {
      "readOnly": true
     },
     "inline_estimate": {
      "readOnly": true,
      "description": "Inline estimate embedded in every `comment:read` socket broadcast and\nREST response — ZERO extra DB queries.",
      "type": [
       "object",
       "null"
      ],
      "additionalProperties": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "download_url": {
      "readOnly": true
     },
     "preview_url": {
      "readOnly": true
     },
     "status_url": {
      "readOnly": true
     },
     "paid": {
      "readOnly": true
     },
     "analytics_supported": {
      "readOnly": true,
      "type": "boolean"
     },
     "paid_plan": {
      "readOnly": true
     },
     "delete_after": {
      "readOnly": true,
      "type": "string",
      "format": "date-time"
     },
     "paid_limit": {
      "readOnly": true,
      "type": "integer"
     },
     "json_url": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "download_link": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "result_note": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "masked_metadata": {
      "readOnly": true,
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     }
    }
   },
   "Notification-api.read_comment.read": {
    "type": "object",
    "properties": {
     "notified_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     }
    }
   },
   "Notification.multipart-api.read_comment.read": {
    "type": "object",
    "properties": {
     "notified_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     }
    }
   },
   "Payment-payment.read": {
    "type": "object",
    "description": "View payment history, transactions",
    "properties": {
     "payment": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Entity.Payment-payment.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "user": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/User-payment.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     }
    }
   },
   "Payment.multipart-payment.read": {
    "type": "object",
    "description": "View payment history, transactions",
    "properties": {
     "payment": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Entity.Payment.multipart-payment.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "user": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/User.multipart-payment.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     }
    }
   },
   "PaymentMethods-subscription.read": {
    "type": "object",
    "properties": {
     "name": {
      "description": "The name of the payment method (e.g., Stripe, PayPal).",
      "type": "string",
      "enum": [
       "stripe",
       "wire",
       "bitcoin",
       "paypal",
       "internal"
      ]
     },
     "brand": {
      "description": "The brand of the payment method (e.g., Visa, MasterCard).",
      "type": [
       "string",
       "null"
      ]
     },
     "last4": {
      "description": "The last 4 digits of the payment method.",
      "type": "string"
     },
     "expiration_year": {
      "description": "The expiration year of the payment method.",
      "type": "integer"
     },
     "expiration_month": {
      "description": "The expiration month of the payment method.",
      "type": "integer"
     },
     "type": {
      "description": "The type of the payment method (e.g., credit card, bank transfer).",
      "type": "string"
     }
    }
   },
   "PaymentMethods-user.read_subscription.read_payment.read": {
    "type": "object",
    "properties": {
     "name": {
      "description": "The name of the payment method (e.g., Stripe, PayPal).",
      "type": "string",
      "enum": [
       "stripe",
       "wire",
       "bitcoin",
       "paypal",
       "internal"
      ]
     },
     "brand": {
      "description": "The brand of the payment method (e.g., Visa, MasterCard).",
      "type": [
       "string",
       "null"
      ]
     },
     "last4": {
      "description": "The last 4 digits of the payment method.",
      "type": "string"
     },
     "expiration_year": {
      "description": "The expiration year of the payment method.",
      "type": "integer"
     },
     "expiration_month": {
      "description": "The expiration month of the payment method.",
      "type": "integer"
     },
     "type": {
      "description": "The type of the payment method (e.g., credit card, bank transfer).",
      "type": "string"
     }
    }
   },
   "PaymentMethods-user.read_subscription.read_payment.read_telegram.read": {
    "type": "object",
    "properties": {
     "name": {
      "description": "The name of the payment method (e.g., Stripe, PayPal).",
      "type": "string",
      "enum": [
       "stripe",
       "wire",
       "bitcoin",
       "paypal",
       "internal"
      ]
     },
     "brand": {
      "description": "The brand of the payment method (e.g., Visa, MasterCard).",
      "type": [
       "string",
       "null"
      ]
     },
     "last4": {
      "description": "The last 4 digits of the payment method.",
      "type": "string"
     },
     "expiration_year": {
      "description": "The expiration year of the payment method.",
      "type": "integer"
     },
     "expiration_month": {
      "description": "The expiration month of the payment method.",
      "type": "integer"
     },
     "type": {
      "description": "The type of the payment method (e.g., credit card, bank transfer).",
      "type": "string"
     }
    }
   },
   "PaymentMethods.multipart-subscription.read": {
    "type": "object",
    "properties": {
     "name": {
      "description": "The name of the payment method (e.g., Stripe, PayPal).",
      "type": "string",
      "enum": [
       "stripe",
       "wire",
       "bitcoin",
       "paypal",
       "internal"
      ]
     },
     "brand": {
      "description": "The brand of the payment method (e.g., Visa, MasterCard).",
      "type": [
       "string",
       "null"
      ]
     },
     "last4": {
      "description": "The last 4 digits of the payment method.",
      "type": "string"
     },
     "expiration_year": {
      "description": "The expiration year of the payment method.",
      "type": "integer"
     },
     "expiration_month": {
      "description": "The expiration month of the payment method.",
      "type": "integer"
     },
     "type": {
      "description": "The type of the payment method (e.g., credit card, bank transfer).",
      "type": "string"
     }
    }
   },
   "PaymentMethods.multipart-user.read_subscription.read_payment.read": {
    "type": "object",
    "properties": {
     "name": {
      "description": "The name of the payment method (e.g., Stripe, PayPal).",
      "type": "string",
      "enum": [
       "stripe",
       "wire",
       "bitcoin",
       "paypal",
       "internal"
      ]
     },
     "brand": {
      "description": "The brand of the payment method (e.g., Visa, MasterCard).",
      "type": [
       "string",
       "null"
      ]
     },
     "last4": {
      "description": "The last 4 digits of the payment method.",
      "type": "string"
     },
     "expiration_year": {
      "description": "The expiration year of the payment method.",
      "type": "integer"
     },
     "expiration_month": {
      "description": "The expiration month of the payment method.",
      "type": "integer"
     },
     "type": {
      "description": "The type of the payment method (e.g., credit card, bank transfer).",
      "type": "string"
     }
    }
   },
   "PaymentMethods.multipart-user.read_subscription.read_payment.read_telegram.read": {
    "type": "object",
    "properties": {
     "name": {
      "description": "The name of the payment method (e.g., Stripe, PayPal).",
      "type": "string",
      "enum": [
       "stripe",
       "wire",
       "bitcoin",
       "paypal",
       "internal"
      ]
     },
     "brand": {
      "description": "The brand of the payment method (e.g., Visa, MasterCard).",
      "type": [
       "string",
       "null"
      ]
     },
     "last4": {
      "description": "The last 4 digits of the payment method.",
      "type": "string"
     },
     "expiration_year": {
      "description": "The expiration year of the payment method.",
      "type": "integer"
     },
     "expiration_month": {
      "description": "The expiration month of the payment method.",
      "type": "integer"
     },
     "type": {
      "description": "The type of the payment method (e.g., credit card, bank transfer).",
      "type": "string"
     }
    }
   },
   "Plan-subscription.read": {
    "type": "object",
    "properties": {
     "name": {
      "description": "The name of the plan (e.g., personal, premium, business).",
      "type": "string"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     }
    }
   },
   "Plan-user.read_subscription.read_payment.read": {
    "type": "object",
    "properties": {
     "name": {
      "description": "The name of the plan (e.g., personal, premium, business).",
      "type": "string"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     }
    }
   },
   "Plan-user.read_subscription.read_payment.read_telegram.read": {
    "type": "object",
    "properties": {
     "name": {
      "description": "The name of the plan (e.g., personal, premium, business).",
      "type": "string"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     }
    }
   },
   "Plan.multipart-subscription.read": {
    "type": "object",
    "properties": {
     "name": {
      "description": "The name of the plan (e.g., personal, premium, business).",
      "type": "string"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     }
    }
   },
   "Plan.multipart-user.read_subscription.read_payment.read": {
    "type": "object",
    "properties": {
     "name": {
      "description": "The name of the plan (e.g., personal, premium, business).",
      "type": "string"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     }
    }
   },
   "Plan.multipart-user.read_subscription.read_payment.read_telegram.read": {
    "type": "object",
    "properties": {
     "name": {
      "description": "The name of the plan (e.g., personal, premium, business).",
      "type": "string"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     }
    }
   },
   "Proxies-proxies.read": {
    "type": "object",
    "description": "Custom proxy pools for routing exports through your own proxies (Business plan only).\n\n## Supported Types\n\n| Protocol | Description |\n|----------|-------------|\n| `http` | Standard HTTP proxy |\n| `https` | Secure HTTP proxy |\n| `socks5` | SOCKS5 with auth |\n\n## Format\n\n```\nprotocol://address:port;username;password\n```\n\n**Examples:**\n```\nhttp://192.168.1.1:8080;;\nhttps://proxy.example.com:3128;user;pass\nsocks5://192.168.1.1:1080;user;pass\n```\n\n## Usage\n\nSpecify pool UUID in job options:\n\n```json\n{\"options\": {\"pool\": \"your-pool-uuid\"}}\n```",
    "properties": {
     "name": {
      "type": "string"
     },
     "proxies": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Proxy-proxies.read"
      }
     },
     "user": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/User-proxies.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "proxies_csv": {
      "readOnly": true
     },
     "proxy_count": {
      "readOnly": true
     }
    }
   },
   "Proxies-proxies.write": {
    "type": "object",
    "description": "Custom proxy pools for routing exports through your own proxies (Business plan only).\n\n## Supported Types\n\n| Protocol | Description |\n|----------|-------------|\n| `http` | Standard HTTP proxy |\n| `https` | Secure HTTP proxy |\n| `socks5` | SOCKS5 with auth |\n\n## Format\n\n```\nprotocol://address:port;username;password\n```\n\n**Examples:**\n```\nhttp://192.168.1.1:8080;;\nhttps://proxy.example.com:3128;user;pass\nsocks5://192.168.1.1:1080;user;pass\n```\n\n## Usage\n\nSpecify pool UUID in job options:\n\n```json\n{\"options\": {\"pool\": \"your-pool-uuid\"}}\n```",
    "properties": {
     "name": {
      "type": "string"
     }
    }
   },
   "Proxies-proxies.write.jsonMergePatch": {
    "type": "object",
    "description": "Custom proxy pools for routing exports through your own proxies (Business plan only).\n\n## Supported Types\n\n| Protocol | Description |\n|----------|-------------|\n| `http` | Standard HTTP proxy |\n| `https` | Secure HTTP proxy |\n| `socks5` | SOCKS5 with auth |\n\n## Format\n\n```\nprotocol://address:port;username;password\n```\n\n**Examples:**\n```\nhttp://192.168.1.1:8080;;\nhttps://proxy.example.com:3128;user;pass\nsocks5://192.168.1.1:1080;user;pass\n```\n\n## Usage\n\nSpecify pool UUID in job options:\n\n```json\n{\"options\": {\"pool\": \"your-pool-uuid\"}}\n```",
    "properties": {
     "name": {
      "type": "string"
     }
    }
   },
   "Proxies.multipart-proxies.read": {
    "type": "object",
    "description": "Custom proxy pools for routing exports through your own proxies (Business plan only).\n\n## Supported Types\n\n| Protocol | Description |\n|----------|-------------|\n| `http` | Standard HTTP proxy |\n| `https` | Secure HTTP proxy |\n| `socks5` | SOCKS5 with auth |\n\n## Format\n\n```\nprotocol://address:port;username;password\n```\n\n**Examples:**\n```\nhttp://192.168.1.1:8080;;\nhttps://proxy.example.com:3128;user;pass\nsocks5://192.168.1.1:1080;user;pass\n```\n\n## Usage\n\nSpecify pool UUID in job options:\n\n```json\n{\"options\": {\"pool\": \"your-pool-uuid\"}}\n```",
    "properties": {
     "name": {
      "type": "string"
     },
     "proxies": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Proxy.multipart-proxies.read"
      }
     },
     "user": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/User.multipart-proxies.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "proxies_csv": {
      "readOnly": true
     },
     "proxy_count": {
      "readOnly": true
     }
    }
   },
   "Proxies.multipart-proxies.write": {
    "type": "object",
    "description": "Custom proxy pools for routing exports through your own proxies (Business plan only).\n\n## Supported Types\n\n| Protocol | Description |\n|----------|-------------|\n| `http` | Standard HTTP proxy |\n| `https` | Secure HTTP proxy |\n| `socks5` | SOCKS5 with auth |\n\n## Format\n\n```\nprotocol://address:port;username;password\n```\n\n**Examples:**\n```\nhttp://192.168.1.1:8080;;\nhttps://proxy.example.com:3128;user;pass\nsocks5://192.168.1.1:1080;user;pass\n```\n\n## Usage\n\nSpecify pool UUID in job options:\n\n```json\n{\"options\": {\"pool\": \"your-pool-uuid\"}}\n```",
    "properties": {
     "name": {
      "type": "string"
     }
    }
   },
   "Proxy-proxies.read": {
    "type": "object",
    "properties": {
     "type": {
      "description": "The type of the proxy (e.g., HTTP, HTTPS, SOCKS4, SOCKS5).",
      "type": "string"
     },
     "address": {
      "description": "The address of the proxy.",
      "type": "string"
     },
     "username": {
      "description": "The username for proxy authentication, if applicable.",
      "type": [
       "string",
       "null"
      ]
     },
     "password": {
      "description": "The password for proxy authentication, if applicable.",
      "type": [
       "string",
       "null"
      ]
     },
     "pool": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Proxies-proxies.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     }
    }
   },
   "Proxy.multipart-proxies.read": {
    "type": "object",
    "properties": {
     "type": {
      "description": "The type of the proxy (e.g., HTTP, HTTPS, SOCKS4, SOCKS5).",
      "type": "string"
     },
     "address": {
      "description": "The address of the proxy.",
      "type": "string"
     },
     "username": {
      "description": "The username for proxy authentication, if applicable.",
      "type": [
       "string",
       "null"
      ]
     },
     "password": {
      "description": "The password for proxy authentication, if applicable.",
      "type": [
       "string",
       "null"
      ]
     },
     "pool": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Proxies.multipart-proxies.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     }
    }
   },
   "Scheduled.Exports": {
    "type": "object",
    "description": "Schedule recurring exports to run automatically at specified intervals.\n\n## Frequencies\n\n| Frequency | Premium | Business |\n|-----------|---------|----------|\n| `hourly` | No | Yes |\n| `daily` | Yes | Yes |\n| `weekly` | Yes | Yes |\n| `monthly` | Yes | Yes |\n| `custom` (cron) | No | Yes |\n\n## Limits\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Max Schedules | 3 | 20 |\n| Webhook Delivery | Yes | Yes |\n| Custom Cron | No | Yes |\n\n## Delivery Methods\n\n- `storage` - Save to your account (default)\n- `email` - Email when complete\n- `webhook` - POST to your webhook endpoint (Premium & Business)\n\nWhen using `webhook` delivery, provide the webhook UUID (not the URL) via the `webhook` field. Create webhooks first using the `/api/v1/webhooks` endpoints.",
    "properties": {
     "user": {
      "type": "string",
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "url": {
      "format": "uri",
      "externalDocs": {
       "url": "https://schema.org/url"
      },
      "type": "string"
     },
     "platform": {
      "type": [
       "string",
       "null"
      ]
     },
     "frequency": {
      "enum": [
       "hourly",
       "daily",
       "weekly",
       "monthly",
       "custom"
      ],
      "default": "daily",
      "type": "string"
     },
     "custom_cron": {
      "type": [
       "string",
       "null"
      ]
     },
     "preferred_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "timezone": {
      "type": [
       "string",
       "null"
      ]
     },
     "export_options": {
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "enabled": {
      "default": true,
      "type": "boolean"
     },
     "send_notification": {
      "default": true,
      "type": "boolean"
     },
     "delivery_method": {
      "enum": [
       "storage",
       "email",
       "webhook"
      ],
      "default": "storage",
      "type": [
       "string",
       "null"
      ]
     },
     "webhook": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "last_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "next_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "run_count": {
      "default": 0,
      "type": "integer"
     },
     "fail_count": {
      "default": 0,
      "type": "integer"
     },
     "status": {
      "default": "active",
      "type": "string"
     },
     "name": {
      "type": [
       "string",
       "null"
      ]
     },
     "history": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ScheduledExportHistory"
      }
     },
     "id": {
      "readOnly": true,
      "description": "The unique auto incremented primary key.",
      "type": "integer"
     },
     "uuid": {
      "readOnly": true,
      "type": "string"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "recent_history": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ScheduledExportHistory"
      },
      "readOnly": true
     },
     "due": {
      "readOnly": true,
      "description": "Check if this schedule is due to run.",
      "type": "boolean"
     }
    },
    "required": [
     "url",
     "frequency"
    ]
   },
   "Scheduled.Exports-schedule.read": {
    "type": "object",
    "description": "Schedule recurring exports to run automatically at specified intervals.\n\n## Frequencies\n\n| Frequency | Premium | Business |\n|-----------|---------|----------|\n| `hourly` | No | Yes |\n| `daily` | Yes | Yes |\n| `weekly` | Yes | Yes |\n| `monthly` | Yes | Yes |\n| `custom` (cron) | No | Yes |\n\n## Limits\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Max Schedules | 3 | 20 |\n| Webhook Delivery | Yes | Yes |\n| Custom Cron | No | Yes |\n\n## Delivery Methods\n\n- `storage` - Save to your account (default)\n- `email` - Email when complete\n- `webhook` - POST to your webhook endpoint (Premium & Business)\n\nWhen using `webhook` delivery, provide the webhook UUID (not the URL) via the `webhook` field. Create webhooks first using the `/api/v1/webhooks` endpoints.",
    "required": [
     "url",
     "frequency"
    ],
    "properties": {
     "url": {
      "format": "uri",
      "externalDocs": {
       "url": "https://schema.org/url"
      },
      "type": "string"
     },
     "platform": {
      "type": [
       "string",
       "null"
      ]
     },
     "frequency": {
      "enum": [
       "hourly",
       "daily",
       "weekly",
       "monthly",
       "custom"
      ],
      "default": "daily",
      "type": "string"
     },
     "custom_cron": {
      "type": [
       "string",
       "null"
      ]
     },
     "preferred_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "timezone": {
      "type": [
       "string",
       "null"
      ]
     },
     "export_options": {
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "enabled": {
      "default": true,
      "type": "boolean"
     },
     "send_notification": {
      "default": true,
      "type": "boolean"
     },
     "delivery_method": {
      "enum": [
       "storage",
       "email",
       "webhook"
      ],
      "default": "storage",
      "type": [
       "string",
       "null"
      ]
     },
     "webhook": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "last_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "next_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "run_count": {
      "default": 0,
      "type": "integer"
     },
     "fail_count": {
      "default": 0,
      "type": "integer"
     },
     "status": {
      "default": "active",
      "type": "string"
     },
     "name": {
      "type": [
       "string",
       "null"
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "uuid": {
      "readOnly": true,
      "type": "string"
     }
    }
   },
   "Scheduled.Exports-schedule.read_schedule.detail": {
    "type": "object",
    "description": "Schedule recurring exports to run automatically at specified intervals.\n\n## Frequencies\n\n| Frequency | Premium | Business |\n|-----------|---------|----------|\n| `hourly` | No | Yes |\n| `daily` | Yes | Yes |\n| `weekly` | Yes | Yes |\n| `monthly` | Yes | Yes |\n| `custom` (cron) | No | Yes |\n\n## Limits\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Max Schedules | 3 | 20 |\n| Webhook Delivery | Yes | Yes |\n| Custom Cron | No | Yes |\n\n## Delivery Methods\n\n- `storage` - Save to your account (default)\n- `email` - Email when complete\n- `webhook` - POST to your webhook endpoint (Premium & Business)\n\nWhen using `webhook` delivery, provide the webhook UUID (not the URL) via the `webhook` field. Create webhooks first using the `/api/v1/webhooks` endpoints.",
    "required": [
     "url",
     "frequency"
    ],
    "properties": {
     "url": {
      "format": "uri",
      "externalDocs": {
       "url": "https://schema.org/url"
      },
      "type": "string"
     },
     "platform": {
      "type": [
       "string",
       "null"
      ]
     },
     "frequency": {
      "enum": [
       "hourly",
       "daily",
       "weekly",
       "monthly",
       "custom"
      ],
      "default": "daily",
      "type": "string"
     },
     "custom_cron": {
      "type": [
       "string",
       "null"
      ]
     },
     "preferred_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "timezone": {
      "type": [
       "string",
       "null"
      ]
     },
     "export_options": {
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "enabled": {
      "default": true,
      "type": "boolean"
     },
     "send_notification": {
      "default": true,
      "type": "boolean"
     },
     "delivery_method": {
      "enum": [
       "storage",
       "email",
       "webhook"
      ],
      "default": "storage",
      "type": [
       "string",
       "null"
      ]
     },
     "webhook": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "last_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "next_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "run_count": {
      "default": 0,
      "type": "integer"
     },
     "fail_count": {
      "default": 0,
      "type": "integer"
     },
     "status": {
      "default": "active",
      "type": "string"
     },
     "name": {
      "type": [
       "string",
       "null"
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "uuid": {
      "readOnly": true,
      "type": "string"
     },
     "recent_history": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ScheduledExportHistory-schedule.read_schedule.detail"
      },
      "readOnly": true
     }
    }
   },
   "Scheduled.Exports.multipart": {
    "type": "object",
    "description": "Schedule recurring exports to run automatically at specified intervals.\n\n## Frequencies\n\n| Frequency | Premium | Business |\n|-----------|---------|----------|\n| `hourly` | No | Yes |\n| `daily` | Yes | Yes |\n| `weekly` | Yes | Yes |\n| `monthly` | Yes | Yes |\n| `custom` (cron) | No | Yes |\n\n## Limits\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Max Schedules | 3 | 20 |\n| Webhook Delivery | Yes | Yes |\n| Custom Cron | No | Yes |\n\n## Delivery Methods\n\n- `storage` - Save to your account (default)\n- `email` - Email when complete\n- `webhook` - POST to your webhook endpoint (Premium & Business)\n\nWhen using `webhook` delivery, provide the webhook UUID (not the URL) via the `webhook` field. Create webhooks first using the `/api/v1/webhooks` endpoints.",
    "properties": {
     "user": {
      "type": "string",
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "url": {
      "format": "uri",
      "externalDocs": {
       "url": "https://schema.org/url"
      },
      "type": "string"
     },
     "platform": {
      "type": [
       "string",
       "null"
      ]
     },
     "frequency": {
      "enum": [
       "hourly",
       "daily",
       "weekly",
       "monthly",
       "custom"
      ],
      "default": "daily",
      "type": "string"
     },
     "custom_cron": {
      "type": [
       "string",
       "null"
      ]
     },
     "preferred_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "timezone": {
      "type": [
       "string",
       "null"
      ]
     },
     "export_options": {
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "enabled": {
      "default": true,
      "type": "boolean"
     },
     "send_notification": {
      "default": true,
      "type": "boolean"
     },
     "delivery_method": {
      "enum": [
       "storage",
       "email",
       "webhook"
      ],
      "default": "storage",
      "type": [
       "string",
       "null"
      ]
     },
     "webhook": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "last_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "next_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "run_count": {
      "default": 0,
      "type": "integer"
     },
     "fail_count": {
      "default": 0,
      "type": "integer"
     },
     "status": {
      "default": "active",
      "type": "string"
     },
     "name": {
      "type": [
       "string",
       "null"
      ]
     },
     "history": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ScheduledExportHistory.multipart"
      }
     },
     "id": {
      "readOnly": true,
      "description": "The unique auto incremented primary key.",
      "type": "integer"
     },
     "uuid": {
      "readOnly": true,
      "type": "string"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "recent_history": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ScheduledExportHistory.multipart"
      },
      "readOnly": true
     },
     "due": {
      "readOnly": true,
      "description": "Check if this schedule is due to run.",
      "type": "boolean"
     }
    },
    "required": [
     "url",
     "frequency"
    ]
   },
   "Scheduled.Exports.multipart-schedule.read": {
    "type": "object",
    "description": "Schedule recurring exports to run automatically at specified intervals.\n\n## Frequencies\n\n| Frequency | Premium | Business |\n|-----------|---------|----------|\n| `hourly` | No | Yes |\n| `daily` | Yes | Yes |\n| `weekly` | Yes | Yes |\n| `monthly` | Yes | Yes |\n| `custom` (cron) | No | Yes |\n\n## Limits\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Max Schedules | 3 | 20 |\n| Webhook Delivery | Yes | Yes |\n| Custom Cron | No | Yes |\n\n## Delivery Methods\n\n- `storage` - Save to your account (default)\n- `email` - Email when complete\n- `webhook` - POST to your webhook endpoint (Premium & Business)\n\nWhen using `webhook` delivery, provide the webhook UUID (not the URL) via the `webhook` field. Create webhooks first using the `/api/v1/webhooks` endpoints.",
    "required": [
     "url",
     "frequency"
    ],
    "properties": {
     "url": {
      "format": "uri",
      "externalDocs": {
       "url": "https://schema.org/url"
      },
      "type": "string"
     },
     "platform": {
      "type": [
       "string",
       "null"
      ]
     },
     "frequency": {
      "enum": [
       "hourly",
       "daily",
       "weekly",
       "monthly",
       "custom"
      ],
      "default": "daily",
      "type": "string"
     },
     "custom_cron": {
      "type": [
       "string",
       "null"
      ]
     },
     "preferred_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "timezone": {
      "type": [
       "string",
       "null"
      ]
     },
     "export_options": {
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "enabled": {
      "default": true,
      "type": "boolean"
     },
     "send_notification": {
      "default": true,
      "type": "boolean"
     },
     "delivery_method": {
      "enum": [
       "storage",
       "email",
       "webhook"
      ],
      "default": "storage",
      "type": [
       "string",
       "null"
      ]
     },
     "webhook": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "last_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "next_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "run_count": {
      "default": 0,
      "type": "integer"
     },
     "fail_count": {
      "default": 0,
      "type": "integer"
     },
     "status": {
      "default": "active",
      "type": "string"
     },
     "name": {
      "type": [
       "string",
       "null"
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "uuid": {
      "readOnly": true,
      "type": "string"
     }
    }
   },
   "Scheduled.Exports.multipart-schedule.read_schedule.detail": {
    "type": "object",
    "description": "Schedule recurring exports to run automatically at specified intervals.\n\n## Frequencies\n\n| Frequency | Premium | Business |\n|-----------|---------|----------|\n| `hourly` | No | Yes |\n| `daily` | Yes | Yes |\n| `weekly` | Yes | Yes |\n| `monthly` | Yes | Yes |\n| `custom` (cron) | No | Yes |\n\n## Limits\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Max Schedules | 3 | 20 |\n| Webhook Delivery | Yes | Yes |\n| Custom Cron | No | Yes |\n\n## Delivery Methods\n\n- `storage` - Save to your account (default)\n- `email` - Email when complete\n- `webhook` - POST to your webhook endpoint (Premium & Business)\n\nWhen using `webhook` delivery, provide the webhook UUID (not the URL) via the `webhook` field. Create webhooks first using the `/api/v1/webhooks` endpoints.",
    "required": [
     "url",
     "frequency"
    ],
    "properties": {
     "url": {
      "format": "uri",
      "externalDocs": {
       "url": "https://schema.org/url"
      },
      "type": "string"
     },
     "platform": {
      "type": [
       "string",
       "null"
      ]
     },
     "frequency": {
      "enum": [
       "hourly",
       "daily",
       "weekly",
       "monthly",
       "custom"
      ],
      "default": "daily",
      "type": "string"
     },
     "custom_cron": {
      "type": [
       "string",
       "null"
      ]
     },
     "preferred_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "timezone": {
      "type": [
       "string",
       "null"
      ]
     },
     "export_options": {
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "enabled": {
      "default": true,
      "type": "boolean"
     },
     "send_notification": {
      "default": true,
      "type": "boolean"
     },
     "delivery_method": {
      "enum": [
       "storage",
       "email",
       "webhook"
      ],
      "default": "storage",
      "type": [
       "string",
       "null"
      ]
     },
     "webhook": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "last_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "next_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "run_count": {
      "default": 0,
      "type": "integer"
     },
     "fail_count": {
      "default": 0,
      "type": "integer"
     },
     "status": {
      "default": "active",
      "type": "string"
     },
     "name": {
      "type": [
       "string",
       "null"
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "uuid": {
      "readOnly": true,
      "type": "string"
     },
     "recent_history": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ScheduledExportHistory.multipart-schedule.read_schedule.detail"
      },
      "readOnly": true
     }
    }
   },
   "ScheduledExportHistory": {
    "type": "object",
    "properties": {
     "id": {
      "readOnly": true,
      "type": "integer"
     },
     "scheduled_export": {
      "type": "string",
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "comment": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "status": {
      "default": "pending",
      "type": "string"
     },
     "started_at": {
      "type": "string",
      "format": "date-time"
     },
     "completed_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "duration_seconds": {
      "type": [
       "integer",
       "null"
      ]
     },
     "result_count": {
      "type": [
       "integer",
       "null"
      ]
     },
     "error_message": {
      "type": [
       "string",
       "null"
      ]
     },
     "export_id": {
      "readOnly": true,
      "description": "Get comment UUID for linking to export job.",
      "type": [
       "string",
       "null"
      ]
     },
     "export_status": {
      "readOnly": true,
      "description": "Get export status from comment.",
      "type": [
       "string",
       "null"
      ]
     }
    }
   },
   "ScheduledExportHistory-schedule.read_schedule.detail": {
    "type": "object",
    "properties": {
     "status": {
      "default": "pending",
      "type": "string"
     },
     "started_at": {
      "type": "string",
      "format": "date-time"
     },
     "completed_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "duration_seconds": {
      "type": [
       "integer",
       "null"
      ]
     },
     "result_count": {
      "type": [
       "integer",
       "null"
      ]
     },
     "error_message": {
      "type": [
       "string",
       "null"
      ]
     },
     "export_id": {
      "readOnly": true,
      "description": "Get comment UUID for linking to export job.",
      "type": [
       "string",
       "null"
      ]
     },
     "export_status": {
      "readOnly": true,
      "description": "Get export status from comment.",
      "type": [
       "string",
       "null"
      ]
     }
    }
   },
   "ScheduledExportHistory.multipart": {
    "type": "object",
    "properties": {
     "id": {
      "readOnly": true,
      "type": "integer"
     },
     "scheduled_export": {
      "type": "string",
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "comment": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "status": {
      "default": "pending",
      "type": "string"
     },
     "started_at": {
      "type": "string",
      "format": "date-time"
     },
     "completed_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "duration_seconds": {
      "type": [
       "integer",
       "null"
      ]
     },
     "result_count": {
      "type": [
       "integer",
       "null"
      ]
     },
     "error_message": {
      "type": [
       "string",
       "null"
      ]
     },
     "export_id": {
      "readOnly": true,
      "description": "Get comment UUID for linking to export job.",
      "type": [
       "string",
       "null"
      ]
     },
     "export_status": {
      "readOnly": true,
      "description": "Get export status from comment.",
      "type": [
       "string",
       "null"
      ]
     }
    }
   },
   "ScheduledExportHistory.multipart-schedule.read_schedule.detail": {
    "type": "object",
    "properties": {
     "status": {
      "default": "pending",
      "type": "string"
     },
     "started_at": {
      "type": "string",
      "format": "date-time"
     },
     "completed_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "duration_seconds": {
      "type": [
       "integer",
       "null"
      ]
     },
     "result_count": {
      "type": [
       "integer",
       "null"
      ]
     },
     "error_message": {
      "type": [
       "string",
       "null"
      ]
     },
     "export_id": {
      "readOnly": true,
      "description": "Get comment UUID for linking to export job.",
      "type": [
       "string",
       "null"
      ]
     },
     "export_status": {
      "readOnly": true,
      "description": "Get export status from comment.",
      "type": [
       "string",
       "null"
      ]
     }
    }
   },
   "Subscription": {
    "type": "object",
    "description": "Manage your ExportComments subscription, view active plans, and handle cancellations.",
    "properties": {
     "id": {
      "readOnly": true,
      "type": "integer"
     },
     "subscription": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "user": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "ends_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "cancel_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "acquisition_source": {
      "type": [
       "string",
       "null"
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "active": {
      "readOnly": true,
      "type": "boolean"
     },
     "expired": {
      "readOnly": true,
      "type": "boolean"
     },
     "uuid": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     }
    }
   },
   "Subscription-subscription.read": {
    "type": "object",
    "description": "Manage your ExportComments subscription, view active plans, and handle cancellations.",
    "properties": {
     "subscription": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Entity.Subscription-subscription.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "ends_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "cancel_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "acquisition_source": {
      "type": [
       "string",
       "null"
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "active": {
      "readOnly": true,
      "type": "boolean"
     },
     "expired": {
      "readOnly": true,
      "type": "boolean"
     }
    }
   },
   "Subscription-user.read_subscription.read_payment.read": {
    "type": "object",
    "properties": {
     "subscription": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Entity.Subscription-user.read_subscription.read_payment.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "user": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/User-user.read_subscription.read_payment.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "ends_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "cancel_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "acquisition_source": {
      "type": [
       "string",
       "null"
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "active": {
      "readOnly": true,
      "type": "boolean"
     },
     "expired": {
      "readOnly": true,
      "type": "boolean"
     }
    }
   },
   "Subscription-user.read_subscription.read_payment.read_telegram.read": {
    "type": "object",
    "properties": {
     "subscription": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Entity.Subscription-user.read_subscription.read_payment.read_telegram.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "user": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/User-user.read_subscription.read_payment.read_telegram.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "ends_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "cancel_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "acquisition_source": {
      "type": [
       "string",
       "null"
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "active": {
      "readOnly": true,
      "type": "boolean"
     },
     "expired": {
      "readOnly": true,
      "type": "boolean"
     }
    }
   },
   "Subscription.multipart": {
    "type": "object",
    "description": "Manage your ExportComments subscription, view active plans, and handle cancellations.",
    "properties": {
     "id": {
      "readOnly": true,
      "type": "integer"
     },
     "subscription": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "user": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "ends_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "cancel_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "acquisition_source": {
      "type": [
       "string",
       "null"
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "active": {
      "readOnly": true,
      "type": "boolean"
     },
     "expired": {
      "readOnly": true,
      "type": "boolean"
     },
     "uuid": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     }
    }
   },
   "Subscription.multipart-subscription.read": {
    "type": "object",
    "description": "Manage your ExportComments subscription, view active plans, and handle cancellations.",
    "properties": {
     "subscription": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Entity.Subscription.multipart-subscription.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "ends_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "cancel_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "acquisition_source": {
      "type": [
       "string",
       "null"
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "active": {
      "readOnly": true,
      "type": "boolean"
     },
     "expired": {
      "readOnly": true,
      "type": "boolean"
     }
    }
   },
   "Subscription.multipart-user.read_subscription.read_payment.read": {
    "type": "object",
    "properties": {
     "subscription": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Entity.Subscription.multipart-user.read_subscription.read_payment.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "user": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/User.multipart-user.read_subscription.read_payment.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "ends_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "cancel_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "acquisition_source": {
      "type": [
       "string",
       "null"
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "active": {
      "readOnly": true,
      "type": "boolean"
     },
     "expired": {
      "readOnly": true,
      "type": "boolean"
     }
    }
   },
   "Subscription.multipart-user.read_subscription.read_payment.read_telegram.read": {
    "type": "object",
    "properties": {
     "subscription": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Entity.Subscription.multipart-user.read_subscription.read_payment.read_telegram.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "user": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/User.multipart-user.read_subscription.read_payment.read_telegram.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "ends_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "cancel_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "acquisition_source": {
      "type": [
       "string",
       "null"
      ]
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "active": {
      "readOnly": true,
      "type": "boolean"
     },
     "expired": {
      "readOnly": true,
      "type": "boolean"
     }
    }
   },
   "TelegramProfile-user.read_subscription.read_payment.read": {
    "type": "object",
    "properties": {
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     }
    }
   },
   "TelegramProfile-user.read_subscription.read_payment.read_telegram.read": {
    "type": "object",
    "properties": {
     "telegram_id": {
      "type": [
       "string",
       "null"
      ]
     },
     "first_name": {
      "type": [
       "string",
       "null"
      ]
     },
     "last_name": {
      "type": [
       "string",
       "null"
      ]
     },
     "type": {
      "type": [
       "string",
       "null"
      ]
     },
     "pairing_code": {
      "type": [
       "integer",
       "null"
      ]
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     }
    }
   },
   "TelegramProfile.multipart-user.read_subscription.read_payment.read": {
    "type": "object",
    "properties": {
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     }
    }
   },
   "TelegramProfile.multipart-user.read_subscription.read_payment.read_telegram.read": {
    "type": "object",
    "properties": {
     "telegram_id": {
      "type": [
       "string",
       "null"
      ]
     },
     "first_name": {
      "type": [
       "string",
       "null"
      ]
     },
     "last_name": {
      "type": [
       "string",
       "null"
      ]
     },
     "type": {
      "type": [
       "string",
       "null"
      ]
     },
     "pairing_code": {
      "type": [
       "integer",
       "null"
      ]
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     }
    }
   },
   "User-payment.read": {
    "type": "object",
    "properties": {
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     }
    }
   },
   "User-proxies.read": {
    "type": "object",
    "properties": {
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     }
    }
   },
   "User-user.read_subscription.read_payment.read": {
    "type": "object",
    "description": "User account management and profile information.",
    "properties": {
     "telegram_id": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/TelegramProfile-user.read_subscription.read_payment.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "sentiment_provider": {
      "description": "The user's preferred sentiment analysis provider (openai, claude, google).",
      "type": [
       "string",
       "null"
      ]
     },
     "email": {
      "description": "The user's email address.",
      "type": "string"
     },
     "is_active": {
      "readOnly": true,
      "description": "Whether the user is active.",
      "default": true,
      "type": "boolean"
     },
     "password": {
      "description": "The user's password.",
      "type": [
       "string",
       "null"
      ]
     },
     "last_connected_at": {
      "description": "The last time the user connected.",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "locale": {
      "description": "Preferred UI/email locale, captured at registration from the browser's\nAccept-Language header. Normalized two-letter code from\nEmailLocaleResolver::SUPPORTED_LOCALES; null = never captured\n(pre-existing users) -> country/en fallback applies.",
      "type": [
       "string",
       "null"
      ]
     },
     "timezone": {
      "description": "The user's time zone.",
      "type": [
       "string",
       "null"
      ]
     },
     "zip_code": {
      "description": "The user's zip code.",
      "type": [
       "string",
       "null"
      ]
     },
     "first_name": {
      "description": "The user's first name.",
      "type": [
       "string",
       "null"
      ]
     },
     "last_name": {
      "description": "The user's last name.",
      "type": [
       "string",
       "null"
      ]
     },
     "country": {
      "description": "The user's country.",
      "type": [
       "string",
       "null"
      ]
     },
     "city": {
      "description": "The user's city.",
      "type": [
       "string",
       "null"
      ]
     },
     "state": {
      "description": "The user's state.",
      "type": [
       "string",
       "null"
      ]
     },
     "company_name": {
      "description": "The user's company name.",
      "type": [
       "string",
       "null"
      ]
     },
     "vat": {
      "description": "The user's VAT number.",
      "type": [
       "string",
       "null"
      ]
     },
     "vat_verified": {
      "description": "Whether the user's VAT is verified.",
      "default": false,
      "type": "boolean"
     },
     "vat_country": {
      "description": "The issuing country code for the tax ID (separate from address country).",
      "type": [
       "string",
       "null"
      ]
     },
     "vat_status": {
      "description": "The tax exemption status: none, pending, validated, rejected.",
      "default": "none",
      "type": "string"
     },
     "send_invoice_notification": {
      "description": "Whether the user should receive invoice notifications.",
      "default": 0,
      "type": "boolean"
     },
     "billing_email": {
      "description": "The user's billing email address.",
      "type": [
       "string",
       "null"
      ]
     },
     "send_export_notification": {
      "description": "Whether the user should receive export completion notifications via email.",
      "default": false,
      "type": "boolean"
     },
     "send_telegram_notification": {
      "description": "Whether the user should receive export completion notifications via Telegram.",
      "default": false,
      "type": "boolean"
     },
     "address": {
      "description": "The user's address.",
      "type": [
       "string",
       "null"
      ]
     },
     "reason": {
      "description": "The reason for locking the user's account.",
      "type": [
       "string",
       "null"
      ]
     },
     "invoice_currency": {
      "description": "The user's invoice currency.",
      "default": "USD",
      "type": [
       "string",
       "null"
      ]
     },
     "api_token_limit": {
      "description": "Numbers of tokens that can be generated for this user",
      "default": 1,
      "type": "integer"
     },
     "passkey_only": {
      "description": "Whether the user can only login with passkeys (password disabled)",
      "default": false,
      "type": "boolean"
     },
     "passkey_prompt_snoozed_until": {
      "readOnly": true,
      "description": "Post-login \"set up a passkey\" prompt: hidden until this instant.",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "email_verified": {
      "default": 0,
      "type": "boolean"
     },
     "referral_code": {
      "description": "Unique short URL-safe code used to invite friends.",
      "type": [
       "string",
       "null"
      ]
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "google_sheets_connected": {
      "readOnly": true,
      "type": "boolean"
     },
     "active": {
      "readOnly": true,
      "type": "boolean"
     },
     "total_spent": {
      "readOnly": true,
      "type": "number"
     },
     "total_invoices": {
      "readOnly": true,
      "type": "integer"
     },
     "eu_citizen": {
      "readOnly": true,
      "type": "boolean"
     },
     "admin": {
      "readOnly": true,
      "type": "boolean"
     },
     "active_subscription": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Subscription-user.read_subscription.read_payment.read"
       },
       {
        "type": "null"
       }
      ],
      "readOnly": true
     },
     "paid_plan": {
      "readOnly": true,
      "description": "Get the paid plan name with caching (uses cached subscription)",
      "type": "string"
     },
     "api_seats": {
      "readOnly": true,
      "description": "Purchased Business seats. Each seat = one API key and one more\nMAX_IN_PROGRESS/MAX_IN_QUEUE_PER_USER worth of per-user concurrency.",
      "type": "integer"
     },
     "effective_api_token_limit": {
      "readOnly": true,
      "description": "API keys this user may hold: the admin-set apiTokenLimit, raised to the\npurchased seat count for Business (an admin override above the seats is\nkept, a seat purchase never lowers it).",
      "type": "integer"
     },
     "max_in_progress": {
      "readOnly": true,
      "description": "Per-user concurrent in-progress ceiling, scaled by purchased seats.",
      "type": "integer"
     },
     "max_in_queue": {
      "readOnly": true,
      "description": "Per-user queued-exports ceiling, scaled by purchased seats.",
      "type": "integer"
     },
     "paid": {
      "readOnly": true,
      "description": "Check if user has a valid paid subscription (uses cached data)",
      "type": "boolean"
     },
     "plan_limit": {
      "readOnly": true,
      "description": "Get plan limit based on subscription (uses cached plan - no extra queries)",
      "type": "integer"
     },
     "api_access": {
      "readOnly": true,
      "description": "Check if user has API access (Premium or Business subscription)\nUses Plan hierarchy - single call to getPaidPlan()",
      "type": "boolean"
     },
     "api_tier": {
      "readOnly": true,
      "description": "Get the API tier based on subscription plan\nSingle call to getPaidPlan() - efficient for scale",
      "type": [
       "string",
       "null"
      ]
     },
     "api_limits": {
      "readOnly": true,
      "description": "Get API limits based on subscription tier",
      "type": [
       "object",
       "null"
      ],
      "additionalProperties": {
       "anyOf": [
        {
         "type": "array",
         "items": {
          "type": [
           "string",
           "null"
          ]
         }
        },
        {
         "type": "integer"
        }
       ]
      }
     },
     "scheduled_export_limit": {
      "readOnly": true,
      "description": "Get the scheduled-export limit for this user based on their paid plan.",
      "type": "integer"
     },
     "monthly_cost": {
      "readOnly": true,
      "type": "integer"
     },
     "last_active_subscription": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Subscription-user.read_subscription.read_payment.read"
       },
       {
        "type": "null"
       }
      ],
      "readOnly": true
     },
     "openAiToken": {
      "readOnly": true,
      "description": "Masked representation of openAiToken for API responses ('user:read').",
      "type": [
       "string",
       "null"
      ]
     },
     "passkeys": {
      "readOnly": true,
      "description": "Check if user has any registered passkeys",
      "type": "boolean"
     },
     "passkey_count": {
      "readOnly": true,
      "description": "Get count of registered passkeys",
      "type": "integer"
     }
    }
   },
   "User-user.read_subscription.read_payment.read_telegram.read": {
    "type": "object",
    "description": "User account management and profile information.",
    "properties": {
     "telegram_id": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/TelegramProfile-user.read_subscription.read_payment.read_telegram.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "sentiment_provider": {
      "description": "The user's preferred sentiment analysis provider (openai, claude, google).",
      "type": [
       "string",
       "null"
      ]
     },
     "email": {
      "description": "The user's email address.",
      "type": "string"
     },
     "is_active": {
      "readOnly": true,
      "description": "Whether the user is active.",
      "default": true,
      "type": "boolean"
     },
     "password": {
      "description": "The user's password.",
      "type": [
       "string",
       "null"
      ]
     },
     "last_connected_at": {
      "description": "The last time the user connected.",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "locale": {
      "description": "Preferred UI/email locale, captured at registration from the browser's\nAccept-Language header. Normalized two-letter code from\nEmailLocaleResolver::SUPPORTED_LOCALES; null = never captured\n(pre-existing users) -> country/en fallback applies.",
      "type": [
       "string",
       "null"
      ]
     },
     "timezone": {
      "description": "The user's time zone.",
      "type": [
       "string",
       "null"
      ]
     },
     "zip_code": {
      "description": "The user's zip code.",
      "type": [
       "string",
       "null"
      ]
     },
     "first_name": {
      "description": "The user's first name.",
      "type": [
       "string",
       "null"
      ]
     },
     "last_name": {
      "description": "The user's last name.",
      "type": [
       "string",
       "null"
      ]
     },
     "country": {
      "description": "The user's country.",
      "type": [
       "string",
       "null"
      ]
     },
     "city": {
      "description": "The user's city.",
      "type": [
       "string",
       "null"
      ]
     },
     "state": {
      "description": "The user's state.",
      "type": [
       "string",
       "null"
      ]
     },
     "company_name": {
      "description": "The user's company name.",
      "type": [
       "string",
       "null"
      ]
     },
     "vat": {
      "description": "The user's VAT number.",
      "type": [
       "string",
       "null"
      ]
     },
     "vat_verified": {
      "description": "Whether the user's VAT is verified.",
      "default": false,
      "type": "boolean"
     },
     "vat_country": {
      "description": "The issuing country code for the tax ID (separate from address country).",
      "type": [
       "string",
       "null"
      ]
     },
     "vat_status": {
      "description": "The tax exemption status: none, pending, validated, rejected.",
      "default": "none",
      "type": "string"
     },
     "send_invoice_notification": {
      "description": "Whether the user should receive invoice notifications.",
      "default": 0,
      "type": "boolean"
     },
     "billing_email": {
      "description": "The user's billing email address.",
      "type": [
       "string",
       "null"
      ]
     },
     "send_export_notification": {
      "description": "Whether the user should receive export completion notifications via email.",
      "default": false,
      "type": "boolean"
     },
     "send_telegram_notification": {
      "description": "Whether the user should receive export completion notifications via Telegram.",
      "default": false,
      "type": "boolean"
     },
     "address": {
      "description": "The user's address.",
      "type": [
       "string",
       "null"
      ]
     },
     "reason": {
      "description": "The reason for locking the user's account.",
      "type": [
       "string",
       "null"
      ]
     },
     "invoice_currency": {
      "description": "The user's invoice currency.",
      "default": "USD",
      "type": [
       "string",
       "null"
      ]
     },
     "api_token_limit": {
      "description": "Numbers of tokens that can be generated for this user",
      "default": 1,
      "type": "integer"
     },
     "passkey_only": {
      "description": "Whether the user can only login with passkeys (password disabled)",
      "default": false,
      "type": "boolean"
     },
     "passkey_prompt_snoozed_until": {
      "readOnly": true,
      "description": "Post-login \"set up a passkey\" prompt: hidden until this instant.",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "email_verified": {
      "default": 0,
      "type": "boolean"
     },
     "referral_code": {
      "description": "Unique short URL-safe code used to invite friends.",
      "type": [
       "string",
       "null"
      ]
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "google_sheets_connected": {
      "readOnly": true,
      "type": "boolean"
     },
     "active": {
      "readOnly": true,
      "type": "boolean"
     },
     "total_spent": {
      "readOnly": true,
      "type": "number"
     },
     "total_invoices": {
      "readOnly": true,
      "type": "integer"
     },
     "eu_citizen": {
      "readOnly": true,
      "type": "boolean"
     },
     "admin": {
      "readOnly": true,
      "type": "boolean"
     },
     "active_subscription": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Subscription-user.read_subscription.read_payment.read_telegram.read"
       },
       {
        "type": "null"
       }
      ],
      "readOnly": true
     },
     "paid_plan": {
      "readOnly": true,
      "description": "Get the paid plan name with caching (uses cached subscription)",
      "type": "string"
     },
     "api_seats": {
      "readOnly": true,
      "description": "Purchased Business seats. Each seat = one API key and one more\nMAX_IN_PROGRESS/MAX_IN_QUEUE_PER_USER worth of per-user concurrency.",
      "type": "integer"
     },
     "effective_api_token_limit": {
      "readOnly": true,
      "description": "API keys this user may hold: the admin-set apiTokenLimit, raised to the\npurchased seat count for Business (an admin override above the seats is\nkept, a seat purchase never lowers it).",
      "type": "integer"
     },
     "max_in_progress": {
      "readOnly": true,
      "description": "Per-user concurrent in-progress ceiling, scaled by purchased seats.",
      "type": "integer"
     },
     "max_in_queue": {
      "readOnly": true,
      "description": "Per-user queued-exports ceiling, scaled by purchased seats.",
      "type": "integer"
     },
     "paid": {
      "readOnly": true,
      "description": "Check if user has a valid paid subscription (uses cached data)",
      "type": "boolean"
     },
     "plan_limit": {
      "readOnly": true,
      "description": "Get plan limit based on subscription (uses cached plan - no extra queries)",
      "type": "integer"
     },
     "api_access": {
      "readOnly": true,
      "description": "Check if user has API access (Premium or Business subscription)\nUses Plan hierarchy - single call to getPaidPlan()",
      "type": "boolean"
     },
     "api_tier": {
      "readOnly": true,
      "description": "Get the API tier based on subscription plan\nSingle call to getPaidPlan() - efficient for scale",
      "type": [
       "string",
       "null"
      ]
     },
     "api_limits": {
      "readOnly": true,
      "description": "Get API limits based on subscription tier",
      "type": [
       "object",
       "null"
      ],
      "additionalProperties": {
       "anyOf": [
        {
         "type": "array",
         "items": {
          "type": [
           "string",
           "null"
          ]
         }
        },
        {
         "type": "integer"
        }
       ]
      }
     },
     "scheduled_export_limit": {
      "readOnly": true,
      "description": "Get the scheduled-export limit for this user based on their paid plan.",
      "type": "integer"
     },
     "monthly_cost": {
      "readOnly": true,
      "type": "integer"
     },
     "last_active_subscription": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Subscription-user.read_subscription.read_payment.read_telegram.read"
       },
       {
        "type": "null"
       }
      ],
      "readOnly": true
     },
     "openAiToken": {
      "readOnly": true,
      "description": "Masked representation of openAiToken for API responses ('user:read').",
      "type": [
       "string",
       "null"
      ]
     },
     "passkeys": {
      "readOnly": true,
      "description": "Check if user has any registered passkeys",
      "type": "boolean"
     },
     "passkey_count": {
      "readOnly": true,
      "description": "Get count of registered passkeys",
      "type": "integer"
     }
    }
   },
   "User-user.write": {
    "type": "object",
    "description": "User account management and profile information.",
    "properties": {
     "open_ai_token": {
      "description": "The user's AI/sentiment provider API token.",
      "type": [
       "string",
       "null"
      ]
     },
     "sentiment_provider": {
      "description": "The user's preferred sentiment analysis provider (openai, claude, google).",
      "type": [
       "string",
       "null"
      ]
     },
     "timezone": {
      "description": "The user's time zone.",
      "type": [
       "string",
       "null"
      ]
     },
     "zip_code": {
      "description": "The user's zip code.",
      "type": [
       "string",
       "null"
      ]
     },
     "first_name": {
      "description": "The user's first name.",
      "type": [
       "string",
       "null"
      ]
     },
     "last_name": {
      "description": "The user's last name.",
      "type": [
       "string",
       "null"
      ]
     },
     "country": {
      "description": "The user's country.",
      "type": [
       "string",
       "null"
      ]
     },
     "city": {
      "description": "The user's city.",
      "type": [
       "string",
       "null"
      ]
     },
     "state": {
      "description": "The user's state.",
      "type": [
       "string",
       "null"
      ]
     },
     "company_name": {
      "description": "The user's company name.",
      "type": [
       "string",
       "null"
      ]
     },
     "vat": {
      "description": "The user's VAT number.",
      "type": [
       "string",
       "null"
      ]
     },
     "vat_country": {
      "description": "The issuing country code for the tax ID (separate from address country).",
      "type": [
       "string",
       "null"
      ]
     },
     "send_invoice_notification": {
      "description": "Whether the user should receive invoice notifications.",
      "default": 0,
      "type": "boolean"
     },
     "billing_email": {
      "description": "The user's billing email address.",
      "type": [
       "string",
       "null"
      ]
     },
     "send_export_notification": {
      "description": "Whether the user should receive export completion notifications via email.",
      "default": false,
      "type": "boolean"
     },
     "send_telegram_notification": {
      "description": "Whether the user should receive export completion notifications via Telegram.",
      "default": false,
      "type": "boolean"
     },
     "address": {
      "description": "The user's address.",
      "type": [
       "string",
       "null"
      ]
     }
    }
   },
   "User.multipart-payment.read": {
    "type": "object",
    "properties": {
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     }
    }
   },
   "User.multipart-proxies.read": {
    "type": "object",
    "properties": {
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     }
    }
   },
   "User.multipart-user.read_subscription.read_payment.read": {
    "type": "object",
    "description": "User account management and profile information.",
    "properties": {
     "telegram_id": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/TelegramProfile.multipart-user.read_subscription.read_payment.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "sentiment_provider": {
      "description": "The user's preferred sentiment analysis provider (openai, claude, google).",
      "type": [
       "string",
       "null"
      ]
     },
     "email": {
      "description": "The user's email address.",
      "type": "string"
     },
     "is_active": {
      "readOnly": true,
      "description": "Whether the user is active.",
      "default": true,
      "type": "boolean"
     },
     "password": {
      "description": "The user's password.",
      "type": [
       "string",
       "null"
      ]
     },
     "last_connected_at": {
      "description": "The last time the user connected.",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "locale": {
      "description": "Preferred UI/email locale, captured at registration from the browser's\nAccept-Language header. Normalized two-letter code from\nEmailLocaleResolver::SUPPORTED_LOCALES; null = never captured\n(pre-existing users) -> country/en fallback applies.",
      "type": [
       "string",
       "null"
      ]
     },
     "timezone": {
      "description": "The user's time zone.",
      "type": [
       "string",
       "null"
      ]
     },
     "zip_code": {
      "description": "The user's zip code.",
      "type": [
       "string",
       "null"
      ]
     },
     "first_name": {
      "description": "The user's first name.",
      "type": [
       "string",
       "null"
      ]
     },
     "last_name": {
      "description": "The user's last name.",
      "type": [
       "string",
       "null"
      ]
     },
     "country": {
      "description": "The user's country.",
      "type": [
       "string",
       "null"
      ]
     },
     "city": {
      "description": "The user's city.",
      "type": [
       "string",
       "null"
      ]
     },
     "state": {
      "description": "The user's state.",
      "type": [
       "string",
       "null"
      ]
     },
     "company_name": {
      "description": "The user's company name.",
      "type": [
       "string",
       "null"
      ]
     },
     "vat": {
      "description": "The user's VAT number.",
      "type": [
       "string",
       "null"
      ]
     },
     "vat_verified": {
      "description": "Whether the user's VAT is verified.",
      "default": false,
      "type": "boolean"
     },
     "vat_country": {
      "description": "The issuing country code for the tax ID (separate from address country).",
      "type": [
       "string",
       "null"
      ]
     },
     "vat_status": {
      "description": "The tax exemption status: none, pending, validated, rejected.",
      "default": "none",
      "type": "string"
     },
     "send_invoice_notification": {
      "description": "Whether the user should receive invoice notifications.",
      "default": 0,
      "type": "boolean"
     },
     "billing_email": {
      "description": "The user's billing email address.",
      "type": [
       "string",
       "null"
      ]
     },
     "send_export_notification": {
      "description": "Whether the user should receive export completion notifications via email.",
      "default": false,
      "type": "boolean"
     },
     "send_telegram_notification": {
      "description": "Whether the user should receive export completion notifications via Telegram.",
      "default": false,
      "type": "boolean"
     },
     "address": {
      "description": "The user's address.",
      "type": [
       "string",
       "null"
      ]
     },
     "reason": {
      "description": "The reason for locking the user's account.",
      "type": [
       "string",
       "null"
      ]
     },
     "invoice_currency": {
      "description": "The user's invoice currency.",
      "default": "USD",
      "type": [
       "string",
       "null"
      ]
     },
     "api_token_limit": {
      "description": "Numbers of tokens that can be generated for this user",
      "default": 1,
      "type": "integer"
     },
     "passkey_only": {
      "description": "Whether the user can only login with passkeys (password disabled)",
      "default": false,
      "type": "boolean"
     },
     "passkey_prompt_snoozed_until": {
      "readOnly": true,
      "description": "Post-login \"set up a passkey\" prompt: hidden until this instant.",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "email_verified": {
      "default": 0,
      "type": "boolean"
     },
     "referral_code": {
      "description": "Unique short URL-safe code used to invite friends.",
      "type": [
       "string",
       "null"
      ]
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "google_sheets_connected": {
      "readOnly": true,
      "type": "boolean"
     },
     "active": {
      "readOnly": true,
      "type": "boolean"
     },
     "total_spent": {
      "readOnly": true,
      "type": "number"
     },
     "total_invoices": {
      "readOnly": true,
      "type": "integer"
     },
     "eu_citizen": {
      "readOnly": true,
      "type": "boolean"
     },
     "admin": {
      "readOnly": true,
      "type": "boolean"
     },
     "active_subscription": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Subscription.multipart-user.read_subscription.read_payment.read"
       },
       {
        "type": "null"
       }
      ],
      "readOnly": true
     },
     "paid_plan": {
      "readOnly": true,
      "description": "Get the paid plan name with caching (uses cached subscription)",
      "type": "string"
     },
     "api_seats": {
      "readOnly": true,
      "description": "Purchased Business seats. Each seat = one API key and one more\nMAX_IN_PROGRESS/MAX_IN_QUEUE_PER_USER worth of per-user concurrency.",
      "type": "integer"
     },
     "effective_api_token_limit": {
      "readOnly": true,
      "description": "API keys this user may hold: the admin-set apiTokenLimit, raised to the\npurchased seat count for Business (an admin override above the seats is\nkept, a seat purchase never lowers it).",
      "type": "integer"
     },
     "max_in_progress": {
      "readOnly": true,
      "description": "Per-user concurrent in-progress ceiling, scaled by purchased seats.",
      "type": "integer"
     },
     "max_in_queue": {
      "readOnly": true,
      "description": "Per-user queued-exports ceiling, scaled by purchased seats.",
      "type": "integer"
     },
     "paid": {
      "readOnly": true,
      "description": "Check if user has a valid paid subscription (uses cached data)",
      "type": "boolean"
     },
     "plan_limit": {
      "readOnly": true,
      "description": "Get plan limit based on subscription (uses cached plan - no extra queries)",
      "type": "integer"
     },
     "api_access": {
      "readOnly": true,
      "description": "Check if user has API access (Premium or Business subscription)\nUses Plan hierarchy - single call to getPaidPlan()",
      "type": "boolean"
     },
     "api_tier": {
      "readOnly": true,
      "description": "Get the API tier based on subscription plan\nSingle call to getPaidPlan() - efficient for scale",
      "type": [
       "string",
       "null"
      ]
     },
     "api_limits": {
      "readOnly": true,
      "description": "Get API limits based on subscription tier",
      "type": [
       "object",
       "null"
      ],
      "additionalProperties": {
       "anyOf": [
        {
         "type": "array",
         "items": {
          "type": [
           "string",
           "null"
          ]
         }
        },
        {
         "type": "integer"
        }
       ]
      }
     },
     "scheduled_export_limit": {
      "readOnly": true,
      "description": "Get the scheduled-export limit for this user based on their paid plan.",
      "type": "integer"
     },
     "monthly_cost": {
      "readOnly": true,
      "type": "integer"
     },
     "last_active_subscription": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Subscription.multipart-user.read_subscription.read_payment.read"
       },
       {
        "type": "null"
       }
      ],
      "readOnly": true
     },
     "openAiToken": {
      "readOnly": true,
      "description": "Masked representation of openAiToken for API responses ('user:read').",
      "type": [
       "string",
       "null"
      ]
     },
     "passkeys": {
      "readOnly": true,
      "description": "Check if user has any registered passkeys",
      "type": "boolean"
     },
     "passkey_count": {
      "readOnly": true,
      "description": "Get count of registered passkeys",
      "type": "integer"
     }
    }
   },
   "User.multipart-user.read_subscription.read_payment.read_telegram.read": {
    "type": "object",
    "description": "User account management and profile information.",
    "properties": {
     "telegram_id": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/TelegramProfile.multipart-user.read_subscription.read_payment.read_telegram.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "sentiment_provider": {
      "description": "The user's preferred sentiment analysis provider (openai, claude, google).",
      "type": [
       "string",
       "null"
      ]
     },
     "email": {
      "description": "The user's email address.",
      "type": "string"
     },
     "is_active": {
      "readOnly": true,
      "description": "Whether the user is active.",
      "default": true,
      "type": "boolean"
     },
     "password": {
      "description": "The user's password.",
      "type": [
       "string",
       "null"
      ]
     },
     "last_connected_at": {
      "description": "The last time the user connected.",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "locale": {
      "description": "Preferred UI/email locale, captured at registration from the browser's\nAccept-Language header. Normalized two-letter code from\nEmailLocaleResolver::SUPPORTED_LOCALES; null = never captured\n(pre-existing users) -> country/en fallback applies.",
      "type": [
       "string",
       "null"
      ]
     },
     "timezone": {
      "description": "The user's time zone.",
      "type": [
       "string",
       "null"
      ]
     },
     "zip_code": {
      "description": "The user's zip code.",
      "type": [
       "string",
       "null"
      ]
     },
     "first_name": {
      "description": "The user's first name.",
      "type": [
       "string",
       "null"
      ]
     },
     "last_name": {
      "description": "The user's last name.",
      "type": [
       "string",
       "null"
      ]
     },
     "country": {
      "description": "The user's country.",
      "type": [
       "string",
       "null"
      ]
     },
     "city": {
      "description": "The user's city.",
      "type": [
       "string",
       "null"
      ]
     },
     "state": {
      "description": "The user's state.",
      "type": [
       "string",
       "null"
      ]
     },
     "company_name": {
      "description": "The user's company name.",
      "type": [
       "string",
       "null"
      ]
     },
     "vat": {
      "description": "The user's VAT number.",
      "type": [
       "string",
       "null"
      ]
     },
     "vat_verified": {
      "description": "Whether the user's VAT is verified.",
      "default": false,
      "type": "boolean"
     },
     "vat_country": {
      "description": "The issuing country code for the tax ID (separate from address country).",
      "type": [
       "string",
       "null"
      ]
     },
     "vat_status": {
      "description": "The tax exemption status: none, pending, validated, rejected.",
      "default": "none",
      "type": "string"
     },
     "send_invoice_notification": {
      "description": "Whether the user should receive invoice notifications.",
      "default": 0,
      "type": "boolean"
     },
     "billing_email": {
      "description": "The user's billing email address.",
      "type": [
       "string",
       "null"
      ]
     },
     "send_export_notification": {
      "description": "Whether the user should receive export completion notifications via email.",
      "default": false,
      "type": "boolean"
     },
     "send_telegram_notification": {
      "description": "Whether the user should receive export completion notifications via Telegram.",
      "default": false,
      "type": "boolean"
     },
     "address": {
      "description": "The user's address.",
      "type": [
       "string",
       "null"
      ]
     },
     "reason": {
      "description": "The reason for locking the user's account.",
      "type": [
       "string",
       "null"
      ]
     },
     "invoice_currency": {
      "description": "The user's invoice currency.",
      "default": "USD",
      "type": [
       "string",
       "null"
      ]
     },
     "api_token_limit": {
      "description": "Numbers of tokens that can be generated for this user",
      "default": 1,
      "type": "integer"
     },
     "passkey_only": {
      "description": "Whether the user can only login with passkeys (password disabled)",
      "default": false,
      "type": "boolean"
     },
     "passkey_prompt_snoozed_until": {
      "readOnly": true,
      "description": "Post-login \"set up a passkey\" prompt: hidden until this instant.",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "email_verified": {
      "default": 0,
      "type": "boolean"
     },
     "referral_code": {
      "description": "Unique short URL-safe code used to invite friends.",
      "type": [
       "string",
       "null"
      ]
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "google_sheets_connected": {
      "readOnly": true,
      "type": "boolean"
     },
     "active": {
      "readOnly": true,
      "type": "boolean"
     },
     "total_spent": {
      "readOnly": true,
      "type": "number"
     },
     "total_invoices": {
      "readOnly": true,
      "type": "integer"
     },
     "eu_citizen": {
      "readOnly": true,
      "type": "boolean"
     },
     "admin": {
      "readOnly": true,
      "type": "boolean"
     },
     "active_subscription": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Subscription.multipart-user.read_subscription.read_payment.read_telegram.read"
       },
       {
        "type": "null"
       }
      ],
      "readOnly": true
     },
     "paid_plan": {
      "readOnly": true,
      "description": "Get the paid plan name with caching (uses cached subscription)",
      "type": "string"
     },
     "api_seats": {
      "readOnly": true,
      "description": "Purchased Business seats. Each seat = one API key and one more\nMAX_IN_PROGRESS/MAX_IN_QUEUE_PER_USER worth of per-user concurrency.",
      "type": "integer"
     },
     "effective_api_token_limit": {
      "readOnly": true,
      "description": "API keys this user may hold: the admin-set apiTokenLimit, raised to the\npurchased seat count for Business (an admin override above the seats is\nkept, a seat purchase never lowers it).",
      "type": "integer"
     },
     "max_in_progress": {
      "readOnly": true,
      "description": "Per-user concurrent in-progress ceiling, scaled by purchased seats.",
      "type": "integer"
     },
     "max_in_queue": {
      "readOnly": true,
      "description": "Per-user queued-exports ceiling, scaled by purchased seats.",
      "type": "integer"
     },
     "paid": {
      "readOnly": true,
      "description": "Check if user has a valid paid subscription (uses cached data)",
      "type": "boolean"
     },
     "plan_limit": {
      "readOnly": true,
      "description": "Get plan limit based on subscription (uses cached plan - no extra queries)",
      "type": "integer"
     },
     "api_access": {
      "readOnly": true,
      "description": "Check if user has API access (Premium or Business subscription)\nUses Plan hierarchy - single call to getPaidPlan()",
      "type": "boolean"
     },
     "api_tier": {
      "readOnly": true,
      "description": "Get the API tier based on subscription plan\nSingle call to getPaidPlan() - efficient for scale",
      "type": [
       "string",
       "null"
      ]
     },
     "api_limits": {
      "readOnly": true,
      "description": "Get API limits based on subscription tier",
      "type": [
       "object",
       "null"
      ],
      "additionalProperties": {
       "anyOf": [
        {
         "type": "array",
         "items": {
          "type": [
           "string",
           "null"
          ]
         }
        },
        {
         "type": "integer"
        }
       ]
      }
     },
     "scheduled_export_limit": {
      "readOnly": true,
      "description": "Get the scheduled-export limit for this user based on their paid plan.",
      "type": "integer"
     },
     "monthly_cost": {
      "readOnly": true,
      "type": "integer"
     },
     "last_active_subscription": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Subscription.multipart-user.read_subscription.read_payment.read_telegram.read"
       },
       {
        "type": "null"
       }
      ],
      "readOnly": true
     },
     "openAiToken": {
      "readOnly": true,
      "description": "Masked representation of openAiToken for API responses ('user:read').",
      "type": [
       "string",
       "null"
      ]
     },
     "passkeys": {
      "readOnly": true,
      "description": "Check if user has any registered passkeys",
      "type": "boolean"
     },
     "passkey_count": {
      "readOnly": true,
      "description": "Get count of registered passkeys",
      "type": "integer"
     }
    }
   },
   "User.multipart-user.write": {
    "type": "object",
    "description": "User account management and profile information.",
    "properties": {
     "open_ai_token": {
      "description": "The user's AI/sentiment provider API token.",
      "type": [
       "string",
       "null"
      ]
     },
     "sentiment_provider": {
      "description": "The user's preferred sentiment analysis provider (openai, claude, google).",
      "type": [
       "string",
       "null"
      ]
     },
     "timezone": {
      "description": "The user's time zone.",
      "type": [
       "string",
       "null"
      ]
     },
     "zip_code": {
      "description": "The user's zip code.",
      "type": [
       "string",
       "null"
      ]
     },
     "first_name": {
      "description": "The user's first name.",
      "type": [
       "string",
       "null"
      ]
     },
     "last_name": {
      "description": "The user's last name.",
      "type": [
       "string",
       "null"
      ]
     },
     "country": {
      "description": "The user's country.",
      "type": [
       "string",
       "null"
      ]
     },
     "city": {
      "description": "The user's city.",
      "type": [
       "string",
       "null"
      ]
     },
     "state": {
      "description": "The user's state.",
      "type": [
       "string",
       "null"
      ]
     },
     "company_name": {
      "description": "The user's company name.",
      "type": [
       "string",
       "null"
      ]
     },
     "vat": {
      "description": "The user's VAT number.",
      "type": [
       "string",
       "null"
      ]
     },
     "vat_country": {
      "description": "The issuing country code for the tax ID (separate from address country).",
      "type": [
       "string",
       "null"
      ]
     },
     "send_invoice_notification": {
      "description": "Whether the user should receive invoice notifications.",
      "default": 0,
      "type": "boolean"
     },
     "billing_email": {
      "description": "The user's billing email address.",
      "type": [
       "string",
       "null"
      ]
     },
     "send_export_notification": {
      "description": "Whether the user should receive export completion notifications via email.",
      "default": false,
      "type": "boolean"
     },
     "send_telegram_notification": {
      "description": "Whether the user should receive export completion notifications via Telegram.",
      "default": false,
      "type": "boolean"
     },
     "address": {
      "description": "The user's address.",
      "type": [
       "string",
       "null"
      ]
     }
    }
   },
   "VPN-vpn.read": {
    "type": "object",
    "description": "VPN locations for accessing geo-restricted content during exports.\n\n## Usage\n\nSpecify VPN location in job options:\n\n```json\n{\"options\": {\"vpn\": \"Norway\"}}\n```\n\n## Use Cases\n\n| Scenario | Description |\n|----------|-------------|\n| Region-locked content | Access country-specific posts |\n| Geo-targeted ads | Export location-based content |\n| Platform restrictions | Bypass regional blocks |\n\n## Notes\n\n- VPN may increase export time\n- Use only when necessary\n- Availability varies by server load",
    "properties": {
     "location": {
      "description": "The location of the VPN.",
      "type": "string"
     },
     "created_at": {
      "description": "The date and time when the VPN was created.",
      "type": "string",
      "format": "date-time"
     }
    }
   },
   "VPN.multipart-vpn.read": {
    "type": "object",
    "description": "VPN locations for accessing geo-restricted content during exports.\n\n## Usage\n\nSpecify VPN location in job options:\n\n```json\n{\"options\": {\"vpn\": \"Norway\"}}\n```\n\n## Use Cases\n\n| Scenario | Description |\n|----------|-------------|\n| Region-locked content | Access country-specific posts |\n| Geo-targeted ads | Export location-based content |\n| Platform restrictions | Bypass regional blocks |\n\n## Notes\n\n- VPN may increase export time\n- Use only when necessary\n- Availability varies by server load",
    "properties": {
     "location": {
      "description": "The location of the VPN.",
      "type": "string"
     },
     "created_at": {
      "description": "The date and time when the VPN was created.",
      "type": "string",
      "format": "date-time"
     }
    }
   },
   "Webhook": {
    "type": "object",
    "description": "Receive real-time export notifications via HTTPS webhooks with HMAC-SHA256 signature verification.\n\n## Headers\n\nEach delivery includes:\n\n| Header | Description |\n|--------|-------------|\n| `X-Signature` | HMAC-SHA256 of body |\n| `Content-Type` | application/json |\n\n## Signature Verification\n\n```php\n$expected = hash_hmac('sha256', $body, $secret);\n$valid = hash_equals($expected, $signature);\n```\n\n## Auto-Suspend\n\nWebhooks are **suspended**  after **30 consecutive failures**. This is different from user-disabled. Re-enable via the toggle endpoint after fixing your endpoint.\n\n## Best Practices\n\n1. Verify `X-Signature` header\n2. Use `message_id` for idempotency\n3. Return 200 immediately, process async",
    "properties": {
     "status": {
      "description": "The status of the webhook: 1 = enabled, 0 = disabled (by user), 2 = suspended (by system due to errors).",
      "default": 1,
      "type": "integer"
     },
     "url": {
      "description": "The HTTPS URL where webhook notifications will be sent.",
      "type": "string"
     },
     "method": {
      "description": "The HTTP method used by the webhook (e.g., POST).",
      "type": "string"
     },
     "events": {
      "description": "The events that trigger the webhook.",
      "default": [
       "export.created"
      ],
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": "string"
      }
     },
     "signing_secret": {
      "description": "The signing secret used to verify webhook requests with HMAC-SHA256 signatures.",
      "type": [
       "string",
       "null"
      ]
     },
     "user": {
      "description": "The user associated with the webhook.",
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "last_event_at": {
      "description": "The last time any event was triggered for this webhook.",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "id": {
      "readOnly": true,
      "description": "The unique auto incremented primary key.",
      "type": "integer"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "enabled": {
      "description": "Whether the webhook is enabled (alias for status).",
      "type": "boolean"
     },
     "suspended": {
      "readOnly": true,
      "description": "Whether the webhook is suspended due to consecutive delivery failures.",
      "type": "boolean"
     },
     "webhook_events_count": {
      "readOnly": true,
      "type": "integer"
     },
     "uuid_as_string": {
      "readOnly": true,
      "type": "string"
     }
    }
   },
   "Webhook-webhook.read": {
    "type": "object",
    "description": "Receive real-time export notifications via HTTPS webhooks with HMAC-SHA256 signature verification.\n\n## Headers\n\nEach delivery includes:\n\n| Header | Description |\n|--------|-------------|\n| `X-Signature` | HMAC-SHA256 of body |\n| `Content-Type` | application/json |\n\n## Signature Verification\n\n```php\n$expected = hash_hmac('sha256', $body, $secret);\n$valid = hash_equals($expected, $signature);\n```\n\n## Auto-Suspend\n\nWebhooks are **suspended**  after **30 consecutive failures**. This is different from user-disabled. Re-enable via the toggle endpoint after fixing your endpoint.\n\n## Best Practices\n\n1. Verify `X-Signature` header\n2. Use `message_id` for idempotency\n3. Return 200 immediately, process async",
    "properties": {
     "status": {
      "description": "The status of the webhook: 1 = enabled, 0 = disabled (by user), 2 = suspended (by system due to errors).",
      "default": 1,
      "type": "integer"
     },
     "url": {
      "description": "The HTTPS URL where webhook notifications will be sent.",
      "type": "string"
     },
     "events": {
      "description": "The events that trigger the webhook.",
      "default": [
       "export.created"
      ],
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": "string"
      }
     },
     "last_event_at": {
      "description": "The last time any event was triggered for this webhook.",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "enabled": {
      "description": "Whether the webhook is enabled (alias for status).",
      "type": "boolean"
     },
     "suspended": {
      "readOnly": true,
      "description": "Whether the webhook is suspended due to consecutive delivery failures.",
      "type": "boolean"
     },
     "webhook_events_count": {
      "readOnly": true,
      "type": "integer"
     }
    }
   },
   "Webhook-webhook.write": {
    "type": "object",
    "description": "Receive real-time export notifications via HTTPS webhooks with HMAC-SHA256 signature verification.\n\n## Headers\n\nEach delivery includes:\n\n| Header | Description |\n|--------|-------------|\n| `X-Signature` | HMAC-SHA256 of body |\n| `Content-Type` | application/json |\n\n## Signature Verification\n\n```php\n$expected = hash_hmac('sha256', $body, $secret);\n$valid = hash_equals($expected, $signature);\n```\n\n## Auto-Suspend\n\nWebhooks are **suspended**  after **30 consecutive failures**. This is different from user-disabled. Re-enable via the toggle endpoint after fixing your endpoint.\n\n## Best Practices\n\n1. Verify `X-Signature` header\n2. Use `message_id` for idempotency\n3. Return 200 immediately, process async",
    "properties": {
     "status": {
      "description": "The status of the webhook: 1 = enabled, 0 = disabled (by user), 2 = suspended (by system due to errors).",
      "default": 1,
      "type": "integer"
     },
     "url": {
      "description": "The HTTPS URL where webhook notifications will be sent.",
      "type": "string"
     },
     "events": {
      "description": "The events that trigger the webhook.",
      "default": [
       "export.created"
      ],
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": "string"
      }
     },
     "signing_secret": {
      "description": "The signing secret used to verify webhook requests with HMAC-SHA256 signatures.",
      "type": [
       "string",
       "null"
      ]
     },
     "enabled": {
      "description": "Whether the webhook is enabled (alias for status).",
      "type": "boolean"
     }
    }
   },
   "Webhook-webhook.write.jsonMergePatch": {
    "type": "object",
    "description": "Receive real-time export notifications via HTTPS webhooks with HMAC-SHA256 signature verification.\n\n## Headers\n\nEach delivery includes:\n\n| Header | Description |\n|--------|-------------|\n| `X-Signature` | HMAC-SHA256 of body |\n| `Content-Type` | application/json |\n\n## Signature Verification\n\n```php\n$expected = hash_hmac('sha256', $body, $secret);\n$valid = hash_equals($expected, $signature);\n```\n\n## Auto-Suspend\n\nWebhooks are **suspended**  after **30 consecutive failures**. This is different from user-disabled. Re-enable via the toggle endpoint after fixing your endpoint.\n\n## Best Practices\n\n1. Verify `X-Signature` header\n2. Use `message_id` for idempotency\n3. Return 200 immediately, process async",
    "properties": {
     "status": {
      "description": "The status of the webhook: 1 = enabled, 0 = disabled (by user), 2 = suspended (by system due to errors).",
      "default": 1,
      "type": "integer"
     },
     "url": {
      "description": "The HTTPS URL where webhook notifications will be sent.",
      "type": "string"
     },
     "events": {
      "description": "The events that trigger the webhook.",
      "default": [
       "export.created"
      ],
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": "string"
      }
     },
     "signing_secret": {
      "description": "The signing secret used to verify webhook requests with HMAC-SHA256 signatures.",
      "type": [
       "string",
       "null"
      ]
     },
     "enabled": {
      "description": "Whether the webhook is enabled (alias for status).",
      "type": "boolean"
     }
    }
   },
   "Webhook-webhook_event.read": {
    "type": "object",
    "properties": {
     "url": {
      "description": "The HTTPS URL where webhook notifications will be sent.",
      "type": "string"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     }
    }
   },
   "Webhook.multipart": {
    "type": "object",
    "description": "Receive real-time export notifications via HTTPS webhooks with HMAC-SHA256 signature verification.\n\n## Headers\n\nEach delivery includes:\n\n| Header | Description |\n|--------|-------------|\n| `X-Signature` | HMAC-SHA256 of body |\n| `Content-Type` | application/json |\n\n## Signature Verification\n\n```php\n$expected = hash_hmac('sha256', $body, $secret);\n$valid = hash_equals($expected, $signature);\n```\n\n## Auto-Suspend\n\nWebhooks are **suspended**  after **30 consecutive failures**. This is different from user-disabled. Re-enable via the toggle endpoint after fixing your endpoint.\n\n## Best Practices\n\n1. Verify `X-Signature` header\n2. Use `message_id` for idempotency\n3. Return 200 immediately, process async",
    "properties": {
     "status": {
      "description": "The status of the webhook: 1 = enabled, 0 = disabled (by user), 2 = suspended (by system due to errors).",
      "default": 1,
      "type": "integer"
     },
     "url": {
      "description": "The HTTPS URL where webhook notifications will be sent.",
      "type": "string"
     },
     "method": {
      "description": "The HTTP method used by the webhook (e.g., POST).",
      "type": "string"
     },
     "events": {
      "description": "The events that trigger the webhook.",
      "default": [
       "export.created"
      ],
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": "string"
      }
     },
     "signing_secret": {
      "description": "The signing secret used to verify webhook requests with HMAC-SHA256 signatures.",
      "type": [
       "string",
       "null"
      ]
     },
     "user": {
      "description": "The user associated with the webhook.",
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "last_event_at": {
      "description": "The last time any event was triggered for this webhook.",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "id": {
      "readOnly": true,
      "description": "The unique auto incremented primary key.",
      "type": "integer"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "enabled": {
      "description": "Whether the webhook is enabled (alias for status).",
      "type": "boolean"
     },
     "suspended": {
      "readOnly": true,
      "description": "Whether the webhook is suspended due to consecutive delivery failures.",
      "type": "boolean"
     },
     "webhook_events_count": {
      "readOnly": true,
      "type": "integer"
     },
     "uuid_as_string": {
      "readOnly": true,
      "type": "string"
     }
    }
   },
   "Webhook.multipart-webhook.read": {
    "type": "object",
    "description": "Receive real-time export notifications via HTTPS webhooks with HMAC-SHA256 signature verification.\n\n## Headers\n\nEach delivery includes:\n\n| Header | Description |\n|--------|-------------|\n| `X-Signature` | HMAC-SHA256 of body |\n| `Content-Type` | application/json |\n\n## Signature Verification\n\n```php\n$expected = hash_hmac('sha256', $body, $secret);\n$valid = hash_equals($expected, $signature);\n```\n\n## Auto-Suspend\n\nWebhooks are **suspended**  after **30 consecutive failures**. This is different from user-disabled. Re-enable via the toggle endpoint after fixing your endpoint.\n\n## Best Practices\n\n1. Verify `X-Signature` header\n2. Use `message_id` for idempotency\n3. Return 200 immediately, process async",
    "properties": {
     "status": {
      "description": "The status of the webhook: 1 = enabled, 0 = disabled (by user), 2 = suspended (by system due to errors).",
      "default": 1,
      "type": "integer"
     },
     "url": {
      "description": "The HTTPS URL where webhook notifications will be sent.",
      "type": "string"
     },
     "events": {
      "description": "The events that trigger the webhook.",
      "default": [
       "export.created"
      ],
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": "string"
      }
     },
     "last_event_at": {
      "description": "The last time any event was triggered for this webhook.",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "enabled": {
      "description": "Whether the webhook is enabled (alias for status).",
      "type": "boolean"
     },
     "suspended": {
      "readOnly": true,
      "description": "Whether the webhook is suspended due to consecutive delivery failures.",
      "type": "boolean"
     },
     "webhook_events_count": {
      "readOnly": true,
      "type": "integer"
     }
    }
   },
   "Webhook.multipart-webhook.write": {
    "type": "object",
    "description": "Receive real-time export notifications via HTTPS webhooks with HMAC-SHA256 signature verification.\n\n## Headers\n\nEach delivery includes:\n\n| Header | Description |\n|--------|-------------|\n| `X-Signature` | HMAC-SHA256 of body |\n| `Content-Type` | application/json |\n\n## Signature Verification\n\n```php\n$expected = hash_hmac('sha256', $body, $secret);\n$valid = hash_equals($expected, $signature);\n```\n\n## Auto-Suspend\n\nWebhooks are **suspended**  after **30 consecutive failures**. This is different from user-disabled. Re-enable via the toggle endpoint after fixing your endpoint.\n\n## Best Practices\n\n1. Verify `X-Signature` header\n2. Use `message_id` for idempotency\n3. Return 200 immediately, process async",
    "properties": {
     "status": {
      "description": "The status of the webhook: 1 = enabled, 0 = disabled (by user), 2 = suspended (by system due to errors).",
      "default": 1,
      "type": "integer"
     },
     "url": {
      "description": "The HTTPS URL where webhook notifications will be sent.",
      "type": "string"
     },
     "events": {
      "description": "The events that trigger the webhook.",
      "default": [
       "export.created"
      ],
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": "string"
      }
     },
     "signing_secret": {
      "description": "The signing secret used to verify webhook requests with HMAC-SHA256 signatures.",
      "type": [
       "string",
       "null"
      ]
     },
     "enabled": {
      "description": "Whether the webhook is enabled (alias for status).",
      "type": "boolean"
     }
    }
   },
   "Webhook.multipart-webhook_event.read": {
    "type": "object",
    "properties": {
     "url": {
      "description": "The HTTPS URL where webhook notifications will be sent.",
      "type": "string"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     }
    }
   },
   "WebhookEvent-webhook_event.read": {
    "type": "object",
    "description": "Track webhook delivery attempts, response codes, and resend failed events.",
    "properties": {
     "webhook": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Webhook-webhook_event.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "last_call_at": {
      "description": "The last time this webhook event was called.",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "number_of_calls": {
      "description": "The number of times this webhook event has been called.",
      "type": "integer"
     },
     "response_code": {
      "description": "The HTTP response code returned by the webhook endpoint.",
      "type": [
       "integer",
       "null"
      ]
     },
     "message": {
      "description": "The message content of the webhook event (JSON payload sent to the endpoint).",
      "type": "string"
     },
     "comment": {
      "description": "The comment associated with this webhook event.",
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "event": {
      "description": "The type of event triggered by the webhook.",
      "type": [
       "string",
       "null"
      ]
     },
     "manually_resent": {
      "description": "Whether this webhook event was manually resent.",
      "default": false,
      "type": "boolean"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     }
    }
   },
   "WebhookEvent.multipart-webhook_event.read": {
    "type": "object",
    "description": "Track webhook delivery attempts, response codes, and resend failed events.",
    "properties": {
     "webhook": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Webhook.multipart-webhook_event.read"
       },
       {
        "type": "null"
       }
      ]
     },
     "last_call_at": {
      "description": "The last time this webhook event was called.",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "number_of_calls": {
      "description": "The number of times this webhook event has been called.",
      "type": "integer"
     },
     "response_code": {
      "description": "The HTTP response code returned by the webhook endpoint.",
      "type": [
       "integer",
       "null"
      ]
     },
     "message": {
      "description": "The message content of the webhook event (JSON payload sent to the endpoint).",
      "type": "string"
     },
     "comment": {
      "description": "The comment associated with this webhook event.",
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "event": {
      "description": "The type of event triggered by the webhook.",
      "type": [
       "string",
       "null"
      ]
     },
     "manually_resent": {
      "description": "Whether this webhook event was manually resent.",
      "default": false,
      "type": "boolean"
     },
     "uuid": {
      "readOnly": true,
      "description": "The internal primary identity key.",
      "type": "string",
      "format": "uuid"
     }
    }
   },
   "WorkflowRun": {
    "type": "object",
    "properties": {
     "id": {
      "readOnly": true,
      "type": "integer"
     },
     "uuid": {
      "readOnly": true,
      "type": "string"
     },
     "workflow": {
      "type": "string",
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "status": {
      "default": "pending",
      "type": "string"
     },
     "current_step": {
      "description": "Current step position being executed.",
      "default": 1,
      "type": "integer"
     },
     "total_exports": {
      "description": "Total exports created during this run (across all steps).",
      "default": 0,
      "type": "integer"
     },
     "completed_exports": {
      "readOnly": true,
      "description": "Exports completed successfully during this run.",
      "default": 0,
      "type": "integer"
     },
     "failed_exports": {
      "readOnly": true,
      "description": "Exports that failed during this run.",
      "default": 0,
      "type": "integer"
     },
     "new_posts_found": {
      "description": "New posts discovered in this run (not previously seen).",
      "default": 0,
      "type": "integer"
     },
     "batch_id": {
      "description": "Batch ID linking all Comment exports created during this run.",
      "type": [
       "string",
       "null"
      ]
     },
     "trigger_comment": {
      "description": "The Comment entity for step 1 (the initial export, e.g., fetch posts).",
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "started_at": {
      "type": "string",
      "format": "date-time"
     },
     "completed_at": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "error_message": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "pending_export_guids": {
      "description": "Export GUIDs created but not yet dispatched (respecting concurrent limits).",
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "trigger_export_id": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "trigger_export_status": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "pending_exports": {
      "readOnly": true,
      "type": "boolean"
     }
    }
   },
   "WorkflowRun-workflow.read_workflow.detail": {
    "type": "object",
    "properties": {
     "status": {
      "default": "pending",
      "type": "string"
     },
     "current_step": {
      "description": "Current step position being executed.",
      "default": 1,
      "type": "integer"
     },
     "total_exports": {
      "description": "Total exports created during this run (across all steps).",
      "default": 0,
      "type": "integer"
     },
     "completed_exports": {
      "readOnly": true,
      "description": "Exports completed successfully during this run.",
      "default": 0,
      "type": "integer"
     },
     "failed_exports": {
      "readOnly": true,
      "description": "Exports that failed during this run.",
      "default": 0,
      "type": "integer"
     },
     "new_posts_found": {
      "description": "New posts discovered in this run (not previously seen).",
      "default": 0,
      "type": "integer"
     },
     "batch_id": {
      "description": "Batch ID linking all Comment exports created during this run.",
      "type": [
       "string",
       "null"
      ]
     },
     "started_at": {
      "type": "string",
      "format": "date-time"
     },
     "completed_at": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "error_message": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "uuid": {
      "readOnly": true,
      "type": "string"
     },
     "trigger_export_id": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "trigger_export_status": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     }
    }
   },
   "WorkflowRun.multipart": {
    "type": "object",
    "properties": {
     "id": {
      "readOnly": true,
      "type": "integer"
     },
     "uuid": {
      "readOnly": true,
      "type": "string"
     },
     "workflow": {
      "type": "string",
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "status": {
      "default": "pending",
      "type": "string"
     },
     "current_step": {
      "description": "Current step position being executed.",
      "default": 1,
      "type": "integer"
     },
     "total_exports": {
      "description": "Total exports created during this run (across all steps).",
      "default": 0,
      "type": "integer"
     },
     "completed_exports": {
      "readOnly": true,
      "description": "Exports completed successfully during this run.",
      "default": 0,
      "type": "integer"
     },
     "failed_exports": {
      "readOnly": true,
      "description": "Exports that failed during this run.",
      "default": 0,
      "type": "integer"
     },
     "new_posts_found": {
      "description": "New posts discovered in this run (not previously seen).",
      "default": 0,
      "type": "integer"
     },
     "batch_id": {
      "description": "Batch ID linking all Comment exports created during this run.",
      "type": [
       "string",
       "null"
      ]
     },
     "trigger_comment": {
      "description": "The Comment entity for step 1 (the initial export, e.g., fetch posts).",
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "started_at": {
      "type": "string",
      "format": "date-time"
     },
     "completed_at": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "error_message": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "pending_export_guids": {
      "description": "Export GUIDs created but not yet dispatched (respecting concurrent limits).",
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "trigger_export_id": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "trigger_export_status": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "pending_exports": {
      "readOnly": true,
      "type": "boolean"
     }
    }
   },
   "WorkflowRun.multipart-workflow.read_workflow.detail": {
    "type": "object",
    "properties": {
     "status": {
      "default": "pending",
      "type": "string"
     },
     "current_step": {
      "description": "Current step position being executed.",
      "default": 1,
      "type": "integer"
     },
     "total_exports": {
      "description": "Total exports created during this run (across all steps).",
      "default": 0,
      "type": "integer"
     },
     "completed_exports": {
      "readOnly": true,
      "description": "Exports completed successfully during this run.",
      "default": 0,
      "type": "integer"
     },
     "failed_exports": {
      "readOnly": true,
      "description": "Exports that failed during this run.",
      "default": 0,
      "type": "integer"
     },
     "new_posts_found": {
      "description": "New posts discovered in this run (not previously seen).",
      "default": 0,
      "type": "integer"
     },
     "batch_id": {
      "description": "Batch ID linking all Comment exports created during this run.",
      "type": [
       "string",
       "null"
      ]
     },
     "started_at": {
      "type": "string",
      "format": "date-time"
     },
     "completed_at": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "error_message": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "uuid": {
      "readOnly": true,
      "type": "string"
     },
     "trigger_export_id": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     },
     "trigger_export_status": {
      "readOnly": true,
      "type": [
       "string",
       "null"
      ]
     }
    }
   },
   "WorkflowStep": {
    "type": "object",
    "required": [
     "position",
     "action",
     "inputMode"
    ],
    "properties": {
     "position": {
      "type": "integer",
      "description": "Step order, 1-based."
     },
     "action": {
      "type": "string",
      "description": "Action to perform.",
      "enum": [
       "export_posts",
       "export_comments",
       "export_likes",
       "export_shares",
       "export_followers",
       "export_reviews"
      ]
     },
     "inputMode": {
      "type": "string",
      "description": "url for step 1, previous_results for chained steps.",
      "enum": [
       "url",
       "previous_results"
      ]
     },
     "options": {
      "type": [
       "object",
       "null"
      ],
      "additionalProperties": true,
      "description": "Export options such as limit and cookies."
     },
     "conditions": {
      "type": [
       "object",
       "array",
       "null"
      ],
      "properties": {
       "max_age_hours": {
        "type": "integer"
       },
       "keyword": {
        "type": "string"
       }
      },
      "description": "Filters: max_age_hours, keyword."
     }
    }
   },
   "WorkflowStep-workflow.read": {
    "type": "object",
    "properties": {
     "position": {
      "description": "Execution order (1-based). Steps with the same position run in parallel.",
      "default": 1,
      "type": "integer"
     },
     "action": {
      "description": "The export action to perform (maps to existing platform exporters).",
      "default": "export_posts",
      "type": "string"
     },
     "input_mode": {
      "description": "How this step gets its input.",
      "default": "url",
      "type": "string"
     },
     "options": {
      "description": "Export options for this step (limit, cookies, order, dateFrom, dateTo, etc.)\nThese are merged with the workflow's base options when creating a Comment job.",
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "conditions": {
      "description": "Conditions to filter results from the previous step before processing.",
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     }
    }
   },
   "WorkflowStep-workflow.read_workflow.detail": {
    "type": "object",
    "properties": {
     "position": {
      "description": "Execution order (1-based). Steps with the same position run in parallel.",
      "default": 1,
      "type": "integer"
     },
     "action": {
      "description": "The export action to perform (maps to existing platform exporters).",
      "default": "export_posts",
      "type": "string"
     },
     "input_mode": {
      "description": "How this step gets its input.",
      "default": "url",
      "type": "string"
     },
     "options": {
      "description": "Export options for this step (limit, cookies, order, dateFrom, dateTo, etc.)\nThese are merged with the workflow's base options when creating a Comment job.",
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "conditions": {
      "description": "Conditions to filter results from the previous step before processing.",
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     }
    }
   },
   "WorkflowStep.multipart": {
    "type": "object",
    "properties": {
     "id": {
      "readOnly": true,
      "type": "integer"
     },
     "workflow": {
      "type": "string",
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "position": {
      "description": "Execution order (1-based). Steps with the same position run in parallel.",
      "default": 1,
      "type": "integer"
     },
     "action": {
      "description": "The export action to perform (maps to existing platform exporters).",
      "default": "export_posts",
      "type": "string"
     },
     "input_mode": {
      "description": "How this step gets its input.",
      "default": "url",
      "type": "string"
     },
     "options": {
      "description": "Export options for this step (limit, cookies, order, dateFrom, dateTo, etc.)\nThese are merged with the workflow's base options when creating a Comment job.",
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "conditions": {
      "description": "Conditions to filter results from the previous step before processing.",
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "for_each": {
      "readOnly": true,
      "description": "Whether this step iterates over each result from the previous step.",
      "type": "boolean"
     }
    }
   },
   "WorkflowStep.multipart-workflow.read": {
    "type": "object",
    "properties": {
     "position": {
      "description": "Execution order (1-based). Steps with the same position run in parallel.",
      "default": 1,
      "type": "integer"
     },
     "action": {
      "description": "The export action to perform (maps to existing platform exporters).",
      "default": "export_posts",
      "type": "string"
     },
     "input_mode": {
      "description": "How this step gets its input.",
      "default": "url",
      "type": "string"
     },
     "options": {
      "description": "Export options for this step (limit, cookies, order, dateFrom, dateTo, etc.)\nThese are merged with the workflow's base options when creating a Comment job.",
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "conditions": {
      "description": "Conditions to filter results from the previous step before processing.",
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     }
    }
   },
   "WorkflowStep.multipart-workflow.read_workflow.detail": {
    "type": "object",
    "properties": {
     "position": {
      "description": "Execution order (1-based). Steps with the same position run in parallel.",
      "default": 1,
      "type": "integer"
     },
     "action": {
      "description": "The export action to perform (maps to existing platform exporters).",
      "default": "export_posts",
      "type": "string"
     },
     "input_mode": {
      "description": "How this step gets its input.",
      "default": "url",
      "type": "string"
     },
     "options": {
      "description": "Export options for this step (limit, cookies, order, dateFrom, dateTo, etc.)\nThese are merged with the workflow's base options when creating a Comment job.",
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "conditions": {
      "description": "Conditions to filter results from the previous step before processing.",
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     }
    }
   },
   "Workflows": {
    "type": "object",
    "description": "Workflows chain multiple export actions into automated pipelines.\n\n## How It Works\n\nA workflow monitors a URL (e.g., a Facebook profile) on a schedule, then automatically\nperforms follow-up actions on each result (e.g., export comments for each new post found).\n\n## Example\n\n1. **Step 1**: Export posts from `facebook.com/cocacola` (daily)\n2. **Step 2**: For each new post → export comments\n\n## Frequencies\n\n| Frequency | Premium | Business |\n|-----------|---------|----------|\n| `daily` | Yes | Yes |\n| `weekly` | Yes | Yes |\n| `monthly` | Yes | Yes |\n| `hourly` | No | Yes |\n| `custom` (cron) | No | Yes |\n\n## Limits\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Max Workflows | 2 | 10 |\n| Max Steps | 2 | 5 |\n| Max Results per Step | 10 | 100 |",
    "properties": {
     "user": {
      "type": "string",
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "name": {
      "type": [
       "string",
       "null"
      ]
     },
     "url": {
      "format": "uri",
      "externalDocs": {
       "url": "https://schema.org/url"
      },
      "type": "string"
     },
     "platform": {
      "type": [
       "string",
       "null"
      ]
     },
     "frequency": {
      "enum": [
       "hourly",
       "daily",
       "weekly",
       "monthly",
       "custom"
      ],
      "default": "daily",
      "type": "string"
     },
     "custom_cron": {
      "type": [
       "string",
       "null"
      ]
     },
     "preferred_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "timezone": {
      "type": [
       "string",
       "null"
      ]
     },
     "enabled": {
      "default": true,
      "type": "boolean"
     },
     "send_notification": {
      "default": true,
      "type": "boolean"
     },
     "delivery_method": {
      "enum": [
       "storage",
       "email",
       "webhook"
      ],
      "default": "storage",
      "type": [
       "string",
       "null"
      ]
     },
     "webhook": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "last_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "next_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "run_count": {
      "default": 0,
      "type": "integer"
     },
     "fail_count": {
      "default": 0,
      "type": "integer"
     },
     "status": {
      "default": "active",
      "type": "string"
     },
     "seen_post_ids": {
      "description": "Tracks post IDs already seen to avoid re-exporting.",
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "seen_post_retention_days": {
      "description": "Max age in days for seenPostIds cleanup.",
      "default": 30,
      "type": "integer"
     },
     "steps": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/WorkflowStep"
      }
     },
     "runs": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/WorkflowRun"
      },
      "readOnly": true
     },
     "id": {
      "readOnly": true,
      "description": "The unique auto incremented primary key.",
      "type": "integer"
     },
     "uuid": {
      "readOnly": true,
      "type": "string"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "max_step_position": {
      "readOnly": true,
      "description": "Get the maximum step position.",
      "type": "integer"
     },
     "recent_runs": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/WorkflowRun"
      },
      "readOnly": true
     },
     "due": {
      "readOnly": true,
      "type": "boolean"
     }
    },
    "required": [
     "name",
     "url",
     "frequency"
    ]
   },
   "Workflows-workflow.read": {
    "type": "object",
    "description": "Workflows chain multiple export actions into automated pipelines.\n\n## How It Works\n\nA workflow monitors a URL (e.g., a Facebook profile) on a schedule, then automatically\nperforms follow-up actions on each result (e.g., export comments for each new post found).\n\n## Example\n\n1. **Step 1**: Export posts from `facebook.com/cocacola` (daily)\n2. **Step 2**: For each new post → export comments\n\n## Frequencies\n\n| Frequency | Premium | Business |\n|-----------|---------|----------|\n| `daily` | Yes | Yes |\n| `weekly` | Yes | Yes |\n| `monthly` | Yes | Yes |\n| `hourly` | No | Yes |\n| `custom` (cron) | No | Yes |\n\n## Limits\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Max Workflows | 2 | 10 |\n| Max Steps | 2 | 5 |\n| Max Results per Step | 10 | 100 |",
    "required": [
     "name",
     "url",
     "frequency"
    ],
    "properties": {
     "name": {
      "type": [
       "string",
       "null"
      ]
     },
     "url": {
      "format": "uri",
      "externalDocs": {
       "url": "https://schema.org/url"
      },
      "type": "string"
     },
     "platform": {
      "type": [
       "string",
       "null"
      ]
     },
     "frequency": {
      "enum": [
       "hourly",
       "daily",
       "weekly",
       "monthly",
       "custom"
      ],
      "default": "daily",
      "type": "string"
     },
     "custom_cron": {
      "type": [
       "string",
       "null"
      ]
     },
     "preferred_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "timezone": {
      "type": [
       "string",
       "null"
      ]
     },
     "enabled": {
      "default": true,
      "type": "boolean"
     },
     "send_notification": {
      "default": true,
      "type": "boolean"
     },
     "delivery_method": {
      "enum": [
       "storage",
       "email",
       "webhook"
      ],
      "default": "storage",
      "type": [
       "string",
       "null"
      ]
     },
     "webhook": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "last_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "next_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "run_count": {
      "default": 0,
      "type": "integer"
     },
     "fail_count": {
      "default": 0,
      "type": "integer"
     },
     "status": {
      "default": "active",
      "type": "string"
     },
     "steps": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/WorkflowStep-workflow.read"
      }
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "uuid": {
      "readOnly": true,
      "type": "string"
     }
    }
   },
   "Workflows-workflow.read_workflow.detail": {
    "type": "object",
    "description": "Workflows chain multiple export actions into automated pipelines.\n\n## How It Works\n\nA workflow monitors a URL (e.g., a Facebook profile) on a schedule, then automatically\nperforms follow-up actions on each result (e.g., export comments for each new post found).\n\n## Example\n\n1. **Step 1**: Export posts from `facebook.com/cocacola` (daily)\n2. **Step 2**: For each new post → export comments\n\n## Frequencies\n\n| Frequency | Premium | Business |\n|-----------|---------|----------|\n| `daily` | Yes | Yes |\n| `weekly` | Yes | Yes |\n| `monthly` | Yes | Yes |\n| `hourly` | No | Yes |\n| `custom` (cron) | No | Yes |\n\n## Limits\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Max Workflows | 2 | 10 |\n| Max Steps | 2 | 5 |\n| Max Results per Step | 10 | 100 |",
    "required": [
     "name",
     "url",
     "frequency"
    ],
    "properties": {
     "name": {
      "type": [
       "string",
       "null"
      ]
     },
     "url": {
      "format": "uri",
      "externalDocs": {
       "url": "https://schema.org/url"
      },
      "type": "string"
     },
     "platform": {
      "type": [
       "string",
       "null"
      ]
     },
     "frequency": {
      "enum": [
       "hourly",
       "daily",
       "weekly",
       "monthly",
       "custom"
      ],
      "default": "daily",
      "type": "string"
     },
     "custom_cron": {
      "type": [
       "string",
       "null"
      ]
     },
     "preferred_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "timezone": {
      "type": [
       "string",
       "null"
      ]
     },
     "enabled": {
      "default": true,
      "type": "boolean"
     },
     "send_notification": {
      "default": true,
      "type": "boolean"
     },
     "delivery_method": {
      "enum": [
       "storage",
       "email",
       "webhook"
      ],
      "default": "storage",
      "type": [
       "string",
       "null"
      ]
     },
     "webhook": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "last_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "next_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "run_count": {
      "default": 0,
      "type": "integer"
     },
     "fail_count": {
      "default": 0,
      "type": "integer"
     },
     "status": {
      "default": "active",
      "type": "string"
     },
     "steps": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/WorkflowStep-workflow.read_workflow.detail"
      }
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "uuid": {
      "readOnly": true,
      "type": "string"
     },
     "recent_runs": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/WorkflowRun-workflow.read_workflow.detail"
      },
      "readOnly": true
     }
    }
   },
   "Workflows.multipart": {
    "type": "object",
    "description": "Workflows chain multiple export actions into automated pipelines.\n\n## How It Works\n\nA workflow monitors a URL (e.g., a Facebook profile) on a schedule, then automatically\nperforms follow-up actions on each result (e.g., export comments for each new post found).\n\n## Example\n\n1. **Step 1**: Export posts from `facebook.com/cocacola` (daily)\n2. **Step 2**: For each new post → export comments\n\n## Frequencies\n\n| Frequency | Premium | Business |\n|-----------|---------|----------|\n| `daily` | Yes | Yes |\n| `weekly` | Yes | Yes |\n| `monthly` | Yes | Yes |\n| `hourly` | No | Yes |\n| `custom` (cron) | No | Yes |\n\n## Limits\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Max Workflows | 2 | 10 |\n| Max Steps | 2 | 5 |\n| Max Results per Step | 10 | 100 |",
    "properties": {
     "user": {
      "type": "string",
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "name": {
      "type": [
       "string",
       "null"
      ]
     },
     "url": {
      "format": "uri",
      "externalDocs": {
       "url": "https://schema.org/url"
      },
      "type": "string"
     },
     "platform": {
      "type": [
       "string",
       "null"
      ]
     },
     "frequency": {
      "enum": [
       "hourly",
       "daily",
       "weekly",
       "monthly",
       "custom"
      ],
      "default": "daily",
      "type": "string"
     },
     "custom_cron": {
      "type": [
       "string",
       "null"
      ]
     },
     "preferred_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "timezone": {
      "type": [
       "string",
       "null"
      ]
     },
     "enabled": {
      "default": true,
      "type": "boolean"
     },
     "send_notification": {
      "default": true,
      "type": "boolean"
     },
     "delivery_method": {
      "enum": [
       "storage",
       "email",
       "webhook"
      ],
      "default": "storage",
      "type": [
       "string",
       "null"
      ]
     },
     "webhook": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "last_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "next_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "run_count": {
      "default": 0,
      "type": "integer"
     },
     "fail_count": {
      "default": 0,
      "type": "integer"
     },
     "status": {
      "default": "active",
      "type": "string"
     },
     "seen_post_ids": {
      "description": "Tracks post IDs already seen to avoid re-exporting.",
      "type": "array",
      "items": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "seen_post_retention_days": {
      "description": "Max age in days for seenPostIds cleanup.",
      "default": 30,
      "type": "integer"
     },
     "steps": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/WorkflowStep.multipart"
      }
     },
     "runs": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/WorkflowRun.multipart"
      },
      "readOnly": true
     },
     "id": {
      "readOnly": true,
      "description": "The unique auto incremented primary key.",
      "type": "integer"
     },
     "uuid": {
      "readOnly": true,
      "type": "string"
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "max_step_position": {
      "readOnly": true,
      "description": "Get the maximum step position.",
      "type": "integer"
     },
     "recent_runs": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/WorkflowRun.multipart"
      },
      "readOnly": true
     },
     "due": {
      "readOnly": true,
      "type": "boolean"
     }
    },
    "required": [
     "name",
     "url",
     "frequency"
    ]
   },
   "Workflows.multipart-workflow.read": {
    "type": "object",
    "description": "Workflows chain multiple export actions into automated pipelines.\n\n## How It Works\n\nA workflow monitors a URL (e.g., a Facebook profile) on a schedule, then automatically\nperforms follow-up actions on each result (e.g., export comments for each new post found).\n\n## Example\n\n1. **Step 1**: Export posts from `facebook.com/cocacola` (daily)\n2. **Step 2**: For each new post → export comments\n\n## Frequencies\n\n| Frequency | Premium | Business |\n|-----------|---------|----------|\n| `daily` | Yes | Yes |\n| `weekly` | Yes | Yes |\n| `monthly` | Yes | Yes |\n| `hourly` | No | Yes |\n| `custom` (cron) | No | Yes |\n\n## Limits\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Max Workflows | 2 | 10 |\n| Max Steps | 2 | 5 |\n| Max Results per Step | 10 | 100 |",
    "required": [
     "name",
     "url",
     "frequency"
    ],
    "properties": {
     "name": {
      "type": [
       "string",
       "null"
      ]
     },
     "url": {
      "format": "uri",
      "externalDocs": {
       "url": "https://schema.org/url"
      },
      "type": "string"
     },
     "platform": {
      "type": [
       "string",
       "null"
      ]
     },
     "frequency": {
      "enum": [
       "hourly",
       "daily",
       "weekly",
       "monthly",
       "custom"
      ],
      "default": "daily",
      "type": "string"
     },
     "custom_cron": {
      "type": [
       "string",
       "null"
      ]
     },
     "preferred_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "timezone": {
      "type": [
       "string",
       "null"
      ]
     },
     "enabled": {
      "default": true,
      "type": "boolean"
     },
     "send_notification": {
      "default": true,
      "type": "boolean"
     },
     "delivery_method": {
      "enum": [
       "storage",
       "email",
       "webhook"
      ],
      "default": "storage",
      "type": [
       "string",
       "null"
      ]
     },
     "webhook": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "last_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "next_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "run_count": {
      "default": 0,
      "type": "integer"
     },
     "fail_count": {
      "default": 0,
      "type": "integer"
     },
     "status": {
      "default": "active",
      "type": "string"
     },
     "steps": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/WorkflowStep.multipart-workflow.read"
      }
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "uuid": {
      "readOnly": true,
      "type": "string"
     }
    }
   },
   "Workflows.multipart-workflow.read_workflow.detail": {
    "type": "object",
    "description": "Workflows chain multiple export actions into automated pipelines.\n\n## How It Works\n\nA workflow monitors a URL (e.g., a Facebook profile) on a schedule, then automatically\nperforms follow-up actions on each result (e.g., export comments for each new post found).\n\n## Example\n\n1. **Step 1**: Export posts from `facebook.com/cocacola` (daily)\n2. **Step 2**: For each new post → export comments\n\n## Frequencies\n\n| Frequency | Premium | Business |\n|-----------|---------|----------|\n| `daily` | Yes | Yes |\n| `weekly` | Yes | Yes |\n| `monthly` | Yes | Yes |\n| `hourly` | No | Yes |\n| `custom` (cron) | No | Yes |\n\n## Limits\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Max Workflows | 2 | 10 |\n| Max Steps | 2 | 5 |\n| Max Results per Step | 10 | 100 |",
    "required": [
     "name",
     "url",
     "frequency"
    ],
    "properties": {
     "name": {
      "type": [
       "string",
       "null"
      ]
     },
     "url": {
      "format": "uri",
      "externalDocs": {
       "url": "https://schema.org/url"
      },
      "type": "string"
     },
     "platform": {
      "type": [
       "string",
       "null"
      ]
     },
     "frequency": {
      "enum": [
       "hourly",
       "daily",
       "weekly",
       "monthly",
       "custom"
      ],
      "default": "daily",
      "type": "string"
     },
     "custom_cron": {
      "type": [
       "string",
       "null"
      ]
     },
     "preferred_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "timezone": {
      "type": [
       "string",
       "null"
      ]
     },
     "enabled": {
      "default": true,
      "type": "boolean"
     },
     "send_notification": {
      "default": true,
      "type": "boolean"
     },
     "delivery_method": {
      "enum": [
       "storage",
       "email",
       "webhook"
      ],
      "default": "storage",
      "type": [
       "string",
       "null"
      ]
     },
     "webhook": {
      "type": [
       "string",
       "null"
      ],
      "format": "iri-reference",
      "example": "https://example.com/"
     },
     "last_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "next_run_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "run_count": {
      "default": 0,
      "type": "integer"
     },
     "fail_count": {
      "default": 0,
      "type": "integer"
     },
     "status": {
      "default": "active",
      "type": "string"
     },
     "steps": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/WorkflowStep.multipart-workflow.read_workflow.detail"
      }
     },
     "created_at": {
      "description": "Get createdAt",
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "description": "Get updatedAt",
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "uuid": {
      "readOnly": true,
      "type": "string"
     },
     "recent_runs": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/WorkflowRun.multipart-workflow.read_workflow.detail"
      },
      "readOnly": true
     }
    }
   },
   "SocketToken": {
    "type": "object",
    "required": [
     "token"
    ],
    "properties": {
     "token": {
      "type": "string",
      "description": "JWT (HS256) for the WebSocket connection, valid 24 hours for authenticated users."
     }
    }
   },
   "VpnLocation": {
    "type": "object",
    "required": [
     "name",
     "code",
     "servers",
     "running"
    ],
    "properties": {
     "name": {
      "type": "string",
      "description": "Country name. Pass it as options.vpn."
     },
     "code": {
      "type": "string",
      "description": "Lowercase ISO 3166-1 alpha-2 country code."
     },
     "servers": {
      "type": "integer",
      "description": "Number of servers available in the country."
     },
     "running": {
      "type": "boolean",
      "description": "True when a tunnel to this location is already up, which skips the connect wait of up to a minute."
     }
    }
   },
   "Usage": {
    "type": "object",
    "required": [
     "has_access"
    ],
    "properties": {
     "has_access": {
      "type": "boolean",
      "description": "Whether the account has API access through an active subscription."
     },
     "has_token": {
      "type": "boolean",
      "description": "Whether an API token has been generated. Omitted when has_access is false."
     },
     "tier": {
      "type": "string",
      "description": "Active tier. Omitted when has_access is false.",
      "enum": [
       "premium",
       "business"
      ]
     },
     "api_version": {
      "type": "string",
      "description": "API version the token is provisioned for, for example v3."
     },
     "required_plan": {
      "type": "string",
      "description": "Plan needed for API access. Present when has_access is false."
     },
     "message": {
      "type": "string"
     },
     "limits": {
      "type": "object",
      "description": "Configured limits for the token.",
      "properties": {
       "daily_requests": {
        "oneOf": [
         {
          "type": "integer"
         },
         {
          "type": "string",
          "const": "Unlimited"
         }
        ],
        "description": "Maximum exports created per day with this token. The string Unlimited on Business."
       },
       "concurrent_requests": {
        "type": "integer",
        "description": "Maximum simultaneous export jobs."
       },
       "rate_per_minute": {
        "type": "integer",
        "description": "Maximum requests per minute."
       },
       "max_comments_per_export": {
        "type": "integer",
        "description": "Maximum comments retrievable in one export."
       },
       "webhooks": {
        "type": "integer",
        "description": "Maximum registered webhooks."
       }
      }
     },
     "usage": {
      "type": "object",
      "description": "Current consumption counters.",
      "properties": {
       "daily": {
        "type": "object",
        "properties": {
         "used": {
          "type": "integer",
          "description": "Exports created today (UTC) with this token. Sandbox responses are not counted."
         },
         "limit": {
          "type": "integer",
          "description": "Daily limit. 0 means unlimited."
         },
         "remaining": {
          "type": [
           "integer",
           "null"
          ],
          "description": "Exports left today. Null when unlimited."
         },
         "resets_at": {
          "type": "string",
          "format": "date-time",
          "description": "When used returns to zero (next midnight UTC)."
         }
        }
       },
       "concurrent": {
        "type": "object",
        "properties": {
         "active": {
          "type": "integer",
          "description": "Exports in progress now."
         },
         "limit": {
          "type": "integer"
         }
        }
       },
       "rate": {
        "type": "object",
        "properties": {
         "used": {
          "type": "integer",
          "description": "Reserved. Always 0 for now."
         },
         "limit": {
          "type": "integer",
          "description": "Requests allowed per minute."
         }
        }
       }
      }
     },
     "platforms": {
      "type": "object",
      "properties": {
       "allowed": {
        "type": "array",
        "items": {
         "type": "string"
        },
        "description": "Display names of platforms the token can export from."
       },
       "restricted": {
        "type": "array",
        "items": {
         "type": "string"
        },
        "description": "Display names of blocked platforms."
       },
       "all_platforms": {
        "type": "boolean",
        "description": "True if the token can use all platforms (Business)."
       }
      }
     },
     "upgrade_benefits": {
      "type": [
       "object",
       "null"
      ],
      "properties": {
       "unlimited_daily_requests": {
        "type": "boolean"
       },
       "more_concurrent_requests": {
        "type": "string"
       },
       "higher_rate_limit": {
        "type": "string"
       },
       "more_comments": {
        "type": "string"
       },
       "all_platforms": {
        "type": "boolean"
       },
       "more_webhooks": {
        "type": "string"
       }
      },
      "description": "Describes what Business adds. Populated on Premium, null on Business."
     }
    }
   },
   "BatchExportRequest": {
    "type": "object",
    "required": [
     "urls"
    ],
    "properties": {
     "urls": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "URLs to export. Duplicates are removed. Premium allows 25 URLs per batch, Business 100."
     },
     "options": {
      "$ref": "#/components/schemas/JobOptions",
      "description": "Options applied to every URL in the batch. Per-URL overrides are not supported."
     }
    }
   },
   "JobOptions": {
    "type": "object",
    "description": "Export configuration options. Which options apply depends on the platform detected from the URL.",
    "properties": {
     "limit": {
      "type": "integer",
      "description": "Maximum items to export, up to your tier's maximum."
     },
     "format": {
      "type": "string",
      "description": "Output file format. CSV includes extra columns (ids, profile URLs) that the Excel layout hides and suits automated processing. The download_link extension follows the format.",
      "enum": [
       "xlsx",
       "csv"
      ],
      "default": "xlsx"
     },
     "replies": {
      "type": "boolean",
      "description": "Include replies and nested comments.",
      "default": false
     },
     "likes": {
      "type": "boolean",
      "description": "Include likes data."
     },
     "shares": {
      "type": "boolean",
      "description": "Include shares data."
     },
     "followers": {
      "type": "boolean",
      "description": "Export followers instead of comments."
     },
     "following": {
      "type": "boolean",
      "description": "Export following instead of comments."
     },
     "tweets": {
      "type": "boolean",
      "description": "Export tweets (Twitter/X)."
     },
     "live": {
      "type": "boolean",
      "description": "Export live chat data."
     },
     "vpn": {
      "type": "string",
      "description": "VPN location name, exactly as returned by the VPN locations endpoint."
     },
     "pool": {
      "type": "string",
      "format": "uuid",
      "description": "UUID of a proxy pool to route the export through. Custom proxy pools need a Business plan; on lower tiers this option is ignored."
     },
     "cursor": {
      "type": "string",
      "description": "Pagination cursor for continuing a previous export."
     },
     "minTimestamp": {
      "type": "integer",
      "description": "Minimum Unix timestamp filter."
     },
     "maxTimestamp": {
      "type": "integer",
      "description": "Maximum Unix timestamp filter."
     },
     "cookies": {
      "$ref": "#/components/schemas/JobCookies"
     },
     "facebookAds": {
      "type": "boolean",
      "description": "Export Facebook Ads data only."
     },
     "profileIds": {
      "type": "boolean",
      "description": "Facebook comments only. Convert each commenter's masked pfbid id to the numeric profile id, returned in profile_id_numeric. profile_id keeps the value Facebook returned, so read profile_id_numeric first and fall back to profile_id. Usernames are not converted. Adds one lookup per 50 commenters, so large jobs take longer.",
      "default": false
     },
     "advanced": {
      "type": "boolean",
      "description": "Enable advanced search (Google)."
     },
     "filter": {
      "type": "object",
      "description": "Filter options applied while the export is processed.",
      "properties": {
       "sentiment": {
        "type": "boolean",
        "description": "Classify each comment as positive, negative or neutral. Not available for followers, following, likes and shares exports."
       }
      }
     }
    }
   },
   "JobCookies": {
    "type": "object",
    "description": "Authentication cookies for platforms that need a logged-in session for private or restricted content.",
    "properties": {
     "sessionid": {
      "type": "string",
      "description": "Session ID (Instagram, general)."
     },
     "auth_token": {
      "type": "string",
      "description": "Auth token (Twitter/X)."
     },
     "cookie_user": {
      "type": "string",
      "description": "Facebook c_user cookie."
     },
     "cookie_xs": {
      "type": "string",
      "description": "Facebook xs cookie."
     }
    }
   },
   "BatchExportCreated": {
    "type": "object",
    "required": [
     "batch_id",
     "guids",
     "errors"
    ],
    "properties": {
     "batch_id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier shared by every job in the batch."
     },
     "guids": {
      "type": "array",
      "items": {
       "type": "string",
       "format": "uuid"
      },
      "description": "GUIDs of the created jobs."
     },
     "errors": {
      "type": "array",
      "description": "URLs that were rejected. Index refers to the position in the submitted urls array.",
      "items": {
       "type": "object",
       "properties": {
        "index": {
         "type": "integer"
        },
        "url": {
         "type": "string"
        },
        "error": {
         "type": "string"
        }
       }
      }
     }
    }
   },
   "BatchExportStatus": {
    "type": "object",
    "properties": {
     "batch_id": {
      "type": "string",
      "format": "uuid"
     },
     "total": {
      "type": "integer",
      "description": "Number of jobs in the batch."
     },
     "done": {
      "type": "integer",
      "description": "Jobs that finished successfully."
     },
     "error": {
      "type": "integer",
      "description": "Jobs that failed."
     },
     "in_progress": {
      "type": "integer",
      "description": "Jobs still queueing or running."
     },
     "is_complete": {
      "type": "boolean",
      "description": "True when done plus error equals total."
     },
     "progress_pct": {
      "type": "integer",
      "description": "Rounded percentage of (done + error) over total."
     },
     "exports": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "guid": {
         "type": "string",
         "format": "uuid"
        },
        "url": {
         "type": "string"
        },
        "status": {
         "type": "string"
        },
        "total": {
         "type": "integer"
        },
        "totalExported": {
         "type": "integer"
        },
        "error": {
         "type": [
          "string",
          "null"
         ],
         "description": "Most recent user-facing error message, if any."
        }
       }
      }
     }
    }
   },
   "BulkDownloadRequest": {
    "type": "object",
    "required": [
     "guids"
    ],
    "properties": {
     "guids": {
      "type": "array",
      "items": {
       "type": "string",
       "format": "uuid"
      },
      "description": "GUIDs of completed export jobs to include in the ZIP."
     }
    }
   },
   "BulkDownload": {
    "type": "object",
    "properties": {
     "uuid": {
      "type": "string",
      "format": "uuid"
     },
     "status": {
      "type": "string",
      "description": "ZIP assembly state.",
      "enum": [
       "processing",
       "ready",
       "error"
      ]
     },
     "fileCount": {
      "type": "integer",
      "description": "Number of files in the ZIP."
     },
     "downloadUrl": {
      "type": "string",
      "description": "Relative path of the download endpoint. Present when the status is ready."
     }
    }
   },
   "PipelineInfo": {
    "type": "object",
    "properties": {
     "platform": {
      "type": [
       "string",
       "null"
      ],
      "description": "Platform detected from the URL."
     },
     "available_actions": {
      "type": "array",
      "items": {
       "type": "string",
       "enum": [
        "export_posts",
        "export_comments",
        "export_likes",
        "export_shares",
        "export_followers",
        "export_reviews"
       ]
      },
      "description": "Actions supported by the detected platform."
     },
     "transitions": {
      "type": "object",
      "description": "Valid next actions for each action.",
      "additionalProperties": {
       "type": "array",
       "items": {
        "type": "string",
        "enum": [
         "export_posts",
         "export_comments",
         "export_likes",
         "export_shares",
         "export_followers",
         "export_reviews"
        ]
       }
      }
     },
     "templates": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/WorkflowTemplate"
      },
      "description": "Suggested pipeline templates for the platform."
     },
     "platform_actions": {
      "type": "object",
      "description": "Every platform mapped to its supported actions.",
      "additionalProperties": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     },
     "platform_categories": {
      "type": "object",
      "description": "Platforms grouped by category (social, video, reviews, community).",
      "additionalProperties": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     }
    }
   },
   "WorkflowTemplate": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "description": {
      "type": "string"
     },
     "steps": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/WorkflowStep"
      }
     }
    }
   },
   "JobData": {
    "type": "object",
    "description": "Rows of a finished export, returned inline.",
    "properties": {
     "guid": {
      "type": "string",
      "format": "uuid"
     },
     "total": {
      "type": "integer"
     },
     "total_exported": {
      "type": "integer"
     },
     "exported_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time"
     },
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "additionalProperties": true
      }
     }
    }
   }
  },
  "responses": {
   "BadRequest": {
    "description": "Bad request. A parameter or the body is invalid.",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      },
      "example": {
       "status_code": 400,
       "error_code": "INVALID_REQUEST",
       "detail": "The URL provided is not supported."
      }
     }
    }
   },
   "Unauthorized": {
    "description": "Missing or invalid credentials. Send X-AUTH-TOKEN or an OAuth bearer token.",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      },
      "example": {
       "status_code": 401,
       "error_code": "AUTH_HEADER_TOKEN",
       "detail": "Missing or invalid X-AUTH-TOKEN header."
      }
     }
    }
   },
   "Forbidden": {
    "description": "The token is valid but not allowed: expired token or plan, or a platform outside the tier.",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      },
      "example": {
       "status_code": 403,
       "error_code": "PLAN_EXPIRED",
       "detail": "Your subscription has expired."
      }
     }
    }
   },
   "NotFound": {
    "description": "No resource with this identifier.",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      },
      "example": {
       "status_code": 404,
       "error_code": "NOT_FOUND",
       "detail": "Not found."
      }
     }
    }
   },
   "ValidationError": {
    "description": "The body failed validation. detail lists the fields.",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      },
      "example": {
       "status_code": 422,
       "error_code": "VALIDATION_ERROR",
       "detail": "url: This value should not be blank."
      }
     }
    }
   },
   "RateLimited": {
    "description": "Rate limit exceeded. Retry after seconds_to_wait.",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      },
      "example": {
       "status_code": 429,
       "error_code": "RATE_LIMIT_EXCEEDED",
       "seconds_to_wait": 42,
       "detail": "Rate limit exceeded. Retry in 42 seconds."
      }
     }
    }
   }
  },
  "parameters": {
   "Page": {
    "name": "page",
    "in": "query",
    "required": false,
    "description": "Page number, 1-indexed.",
    "schema": {
     "type": "integer",
     "default": 1,
     "minimum": 1
    }
   },
   "Sandbox": {
    "name": "X-Sandbox",
    "in": "header",
    "required": false,
    "description": "Set to true to create a sandbox job: it returns sample data at once, runs no export and is not counted against any limit.",
    "schema": {
     "type": "string",
     "enum": [
      "true"
     ]
    }
   }
  },
  "examples": {},
  "requestBodies": {},
  "headers": {},
  "securitySchemes": {
   "ApiKeyAuth": {
    "type": "apiKey",
    "description": "API token generated at https://app.exportcomments.com/user/api, sent in the X-AUTH-TOKEN header. Grants full API access for the account. Available on Premium and Business plans.",
    "name": "X-AUTH-TOKEN",
    "in": "header"
   },
   "OAuth2": {
    "type": "oauth2",
    "description": "OAuth 2.1 authorization code flow with PKCE (S256). Clients register at https://exportcomments.com/oauth/register (RFC 7591). The hosted MCP server uses this flow. Metadata: https://exportcomments.com/.well-known/oauth-authorization-server and https://exportcomments.com/.well-known/oauth-protected-resource",
    "flows": {
     "authorizationCode": {
      "authorizationUrl": "https://exportcomments.com/oauth/authorize",
      "tokenUrl": "https://exportcomments.com/oauth/token",
      "refreshUrl": "https://exportcomments.com/oauth/token",
      "scopes": {
       "read": "Read exports, schedules, webhooks, workflows and account usage",
       "write": "Create, retry, stop and delete exports, schedules, webhooks and workflows"
      }
     }
    }
   }
  }
 },
 "security": [
  {
   "ApiKeyAuth": []
  },
  {
   "OAuth2": [
    "read"
   ]
  }
 ],
 "tags": [
  {
   "name": "Health Check",
   "description": "Resource 'Health Check' operations."
  },
  {
   "name": "Job",
   "description": "Export jobs for extracting comments, reviews, followers, and other data from social media platforms.\n\n## Supported Platforms\n\nFacebook, Instagram, Twitter/X, YouTube, TikTok, Reddit, LinkedIn, Discord, Amazon, Google Reviews, Trustpilot, Steam, Etsy, Shopee, Lazada, Tripadvisor, and more.\n\n## Authentication Cookies\n\nSome platforms require cookies for full access:\n\n- **Instagram**: `sessionid` cookie\n- **Facebook**: `cookie_user` + `cookie_xs`\n- **Twitter/X**: `auth_token`"
  },
  {
   "name": "Scheduled Exports",
   "description": "Schedule recurring exports to run automatically at specified intervals.\n\n## Frequencies\n\n| Frequency | Premium | Business |\n|-----------|---------|----------|\n| `hourly` | No | Yes |\n| `daily` | Yes | Yes |\n| `weekly` | Yes | Yes |\n| `monthly` | Yes | Yes |\n| `custom` (cron) | No | Yes |\n\n## Limits\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Max Schedules | 3 | 20 |\n| Webhook Delivery | Yes | Yes |\n| Custom Cron | No | Yes |\n\n## Delivery Methods\n\n- `storage` - Save to your account (default)\n- `email` - Email when complete\n- `webhook` - POST to your webhook endpoint (Premium & Business)\n\nWhen using `webhook` delivery, provide the webhook UUID (not the URL) via the `webhook` field. Create webhooks first using the `/api/v1/webhooks` endpoints."
  },
  {
   "name": "API Tokens",
   "description": "API tokens for programmatic access to the ExportComments API.\n\n## Authentication\n\nInclude your token in requests:\n\n```\nX-AUTH-TOKEN: <your-api-token>\n```\n\n## API Tiers\n\nYour token tier determines API limits:\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Daily Export Creations | 100 | Unlimited |\n| Rate Limit | 60/min | 200/min |\n| Concurrent Exports | 1 | 5 |\n| Max Comments | 50,000 | 250,000 |\n| Webhooks | 1 | 10 |\n| Platforms | 7 major | All |\n\n## Token Lifecycle\n\n| Event | Description |\n|-------|-------------|\n| Generation | Token shown once, store securely |\n| Expiration | 1 year from creation |\n| Revocation | Immediate via DELETE endpoint |\n\n## Security\n\n- Never expose tokens in client-side code\n- Rotate tokens periodically\n- Revoke immediately if compromised\n- Monitor usage via job history"
  },
  {
   "name": "Payment",
   "description": "View payment history, transactions"
  },
  {
   "name": "Proxies",
   "description": "Custom proxy pools for routing exports through your own proxies (Business plan only).\n\n## Supported Types\n\n| Protocol | Description |\n|----------|-------------|\n| `http` | Standard HTTP proxy |\n| `https` | Secure HTTP proxy |\n| `socks5` | SOCKS5 with auth |\n\n## Format\n\n```\nprotocol://address:port;username;password\n```\n\n**Examples:**\n```\nhttp://192.168.1.1:8080;;\nhttps://proxy.example.com:3128;user;pass\nsocks5://192.168.1.1:1080;user;pass\n```\n\n## Usage\n\nSpecify pool UUID in job options:\n\n```json\n{\"options\": {\"pool\": \"your-pool-uuid\"}}\n```"
  },
  {
   "name": "Subscription",
   "description": "Manage your ExportComments subscription, view active plans, and handle cancellations."
  },
  {
   "name": "User",
   "description": "User account management and profile information."
  },
  {
   "name": "VPN",
   "description": "VPN locations for accessing geo-restricted content during exports.\n\n## Usage\n\nSpecify VPN location in job options:\n\n```json\n{\"options\": {\"vpn\": \"Norway\"}}\n```\n\n## Use Cases\n\n| Scenario | Description |\n|----------|-------------|\n| Region-locked content | Access country-specific posts |\n| Geo-targeted ads | Export location-based content |\n| Platform restrictions | Bypass regional blocks |\n\n## Notes\n\n- VPN may increase export time\n- Use only when necessary\n- Availability varies by server load"
  },
  {
   "name": "Webhooks",
   "description": "Receive real-time export notifications via HTTPS webhooks with HMAC-SHA256 signature verification.\n\n## Headers\n\nEach delivery includes:\n\n| Header | Description |\n|--------|-------------|\n| `X-Signature` | HMAC-SHA256 of body |\n| `Content-Type` | application/json |\n\n## Signature Verification\n\n```php\n$expected = hash_hmac('sha256', $body, $secret);\n$valid = hash_equals($expected, $signature);\n```\n\n## Auto-Suspend\n\nWebhooks are **suspended**  after **30 consecutive failures**. This is different from user-disabled. Re-enable via the toggle endpoint after fixing your endpoint.\n\n## Best Practices\n\n1. Verify `X-Signature` header\n2. Use `message_id` for idempotency\n3. Return 200 immediately, process async"
  },
  {
   "name": "Webhook Events",
   "description": "Track webhook delivery attempts, response codes, and resend failed events."
  },
  {
   "name": "Workflows",
   "description": "Workflows chain multiple export actions into automated pipelines.\n\n## How It Works\n\nA workflow monitors a URL (e.g., a Facebook profile) on a schedule, then automatically\nperforms follow-up actions on each result (e.g., export comments for each new post found).\n\n## Example\n\n1. **Step 1**: Export posts from `facebook.com/cocacola` (daily)\n2. **Step 2**: For each new post → export comments\n\n## Frequencies\n\n| Frequency | Premium | Business |\n|-----------|---------|----------|\n| `daily` | Yes | Yes |\n| `weekly` | Yes | Yes |\n| `monthly` | Yes | Yes |\n| `hourly` | No | Yes |\n| `custom` (cron) | No | Yes |\n\n## Limits\n\n| Feature | Premium | Business |\n|---------|---------|----------|\n| Max Workflows | 2 | 10 |\n| Max Steps | 2 | 5 |\n| Max Results per Step | 10 | 100 |"
  },
  {
   "name": "Realtime"
  },
  {
   "name": "Usage"
  },
  {
   "name": "Batch Export"
  },
  {
   "name": "Bulk Download"
  }
 ],
 "externalDocs": {
  "description": "API documentation",
  "url": "https://docs.exportcomments.com"
 }
}
