{
  "components": {
    "schemas": {
      "AccountBalanceOut": {
        "properties": {
          "buckets": {
            "additionalProperties": {
              "type": "integer"
            },
            "description": "seconds left in each bucket: plan, promo, purchased",
            "type": "object"
          },
          "totalSeconds": {
            "type": "integer"
          }
        },
        "required": [
          "buckets",
          "totalSeconds"
        ],
        "title": "AccountBalanceOut",
        "type": "object"
      },
      "AccountBuyOut": {
        "properties": {
          "clientSecret": {
            "description": "pending card charge: confirm it with Stripe.js (stripe.handleNextAction)",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "hostedInvoiceUrl": {
            "description": "pending, invoice billing: Stripe's invoice page",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "purchaseId": {
            "type": "string"
          },
          "seconds": {
            "type": "integer"
          },
          "status": {
            "description": "paid: the credits are in | pending: the bank wants 3-D Secure, then poll the purchase",
            "type": "string"
          }
        },
        "required": [
          "clientSecret",
          "hostedInvoiceUrl",
          "purchaseId",
          "seconds",
          "status"
        ],
        "title": "AccountBuyOut",
        "type": "object"
      },
      "AccountCheckoutIn": {
        "properties": {
          "bundleId": {
            "maxLength": 20,
            "type": "string"
          }
        },
        "required": [
          "bundleId"
        ],
        "title": "AccountCheckoutIn",
        "type": "object"
      },
      "AccountLedgerLine": {
        "properties": {
          "bucket": {
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "deltaSeconds": {
            "type": "integer"
          },
          "id": {
            "type": "integer"
          },
          "kind": {
            "type": "string"
          },
          "note": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "orderAccessToken": {
            "description": "opens the order's status page, like an order in the list",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "orderId": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "projectId": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "purchase": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/AccountLedgerPurchase"
              },
              {
                "type": "null"
              }
            ]
          },
          "purchaseId": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "bucket",
          "createdAt",
          "deltaSeconds",
          "id",
          "kind",
          "note",
          "orderAccessToken",
          "orderId",
          "projectId",
          "purchase",
          "purchaseId"
        ],
        "title": "AccountLedgerLine",
        "type": "object"
      },
      "AccountLedgerPurchase": {
        "properties": {
          "amountCents": {
            "description": "before tax",
            "type": "integer"
          },
          "paidAt": {
            "oneOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "product": {
            "type": "string"
          },
          "reference": {
            "description": "Stripe's id for the payment (pi_\u2026, or in_\u2026 for an invoice): what support looks it up by",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "refundedCents": {
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "taxCents": {
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "amountCents",
          "paidAt",
          "product",
          "reference",
          "refundedCents",
          "status",
          "taxCents"
        ],
        "title": "AccountLedgerPurchase",
        "type": "object"
      },
      "AccountMe": {
        "properties": {
          "accountId": {
            "type": "string"
          },
          "accounts": {
            "oneOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/AccountMembershipOut"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "actorId": {
            "type": "string"
          },
          "actorType": {
            "type": "string"
          },
          "mode": {
            "default": "live",
            "description": "live | test: a test key's requests are simulated and never charged",
            "type": "string"
          },
          "role": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "user": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/AccountUserOut"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "accountId",
          "actorId",
          "actorType",
          "scopes"
        ],
        "title": "AccountMe",
        "type": "object"
      },
      "AccountMembershipOut": {
        "properties": {
          "accountId": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string"
          }
        },
        "required": [
          "accountId",
          "kind",
          "name",
          "role"
        ],
        "title": "AccountMembershipOut",
        "type": "object"
      },
      "AccountPurchaseOut": {
        "properties": {
          "amountCents": {
            "type": "integer"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "paidAt": {
            "oneOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "product": {
            "type": "string"
          },
          "refundedCents": {
            "type": "integer"
          },
          "seconds": {
            "type": "integer"
          },
          "status": {
            "description": "pending | paid | failed | cancelled",
            "type": "string"
          }
        },
        "required": [
          "amountCents",
          "createdAt",
          "id",
          "kind",
          "paidAt",
          "product",
          "refundedCents",
          "seconds",
          "status"
        ],
        "title": "AccountPurchaseOut",
        "type": "object"
      },
      "AccountUserOut": {
        "properties": {
          "email": {
            "type": "string"
          },
          "emailVerified": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "email",
          "emailVerified",
          "id",
          "name"
        ],
        "title": "AccountUserOut",
        "type": "object"
      },
      "AutoTopUpIn": {
        "properties": {
          "bundleId": {
            "description": "the bundle bought each time",
            "maxLength": 20,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "monthlyCap": {
            "default": 3,
            "description": "at most this many automatic purchases a month (1\u201320)",
            "type": "integer"
          },
          "thresholdSeconds": {
            "description": "buy when the balance drops below this",
            "type": "integer"
          }
        },
        "required": [
          "enabled",
          "thresholdSeconds"
        ],
        "title": "AutoTopUpIn",
        "type": "object"
      },
      "AutoTopUpOut": {
        "properties": {
          "bundleId": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "chargesThisMonth": {
            "description": "automatic purchases this month (paid or under way)",
            "type": "integer"
          },
          "enabled": {
            "type": "boolean"
          },
          "monthlyCap": {
            "type": "integer"
          },
          "pausedAt": {
            "description": "a purchase failed: off until the settings are saved again",
            "oneOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "pausedReason": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "thresholdSeconds": {
            "type": "integer"
          }
        },
        "required": [
          "bundleId",
          "chargesThisMonth",
          "enabled",
          "monthlyCap",
          "pausedAt",
          "pausedReason",
          "thresholdSeconds"
        ],
        "title": "AutoTopUpOut",
        "type": "object"
      },
      "DeliveryListOut": {
        "properties": {
          "deliveries": {
            "items": {
              "$ref": "#/components/schemas/DeliveryOut"
            },
            "type": "array"
          },
          "nextCursor": {
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "deliveries",
          "nextCursor"
        ],
        "title": "DeliveryListOut",
        "type": "object"
      },
      "DeliveryOut": {
        "properties": {
          "attempts": {
            "type": "integer"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "durationMs": {
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "error": {
            "description": "when there was no answer: a timeout, a refused connection, ...",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "eventId": {
            "type": "string"
          },
          "eventType": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "lastAttemptAt": {
            "oneOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "nextAttemptAt": {
            "oneOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "responseBody": {
            "description": "the start of what your endpoint answered",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "responseStatus": {
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "description": "pending (will be tried again) | succeeded | failed (gave up)",
            "type": "string"
          }
        },
        "required": [
          "attempts",
          "createdAt",
          "durationMs",
          "error",
          "eventId",
          "eventType",
          "id",
          "lastAttemptAt",
          "nextAttemptAt",
          "responseBody",
          "responseStatus",
          "status"
        ],
        "title": "DeliveryOut",
        "type": "object"
      },
      "EventListOut": {
        "properties": {
          "events": {
            "items": {
              "$ref": "#/components/schemas/EventOut"
            },
            "type": "array"
          },
          "nextCursor": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "events",
          "nextCursor"
        ],
        "title": "EventListOut",
        "type": "object"
      },
      "EventOut": {
        "properties": {
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "data": {
            "additionalProperties": {},
            "type": "object"
          },
          "id": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "object": {
            "default": "event",
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "data",
          "id",
          "mode",
          "type"
        ],
        "title": "EventOut",
        "type": "object"
      },
      "FailureOut": {
        "properties": {
          "code": {
            "description": "processing_failed",
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "FailureOut",
        "type": "object"
      },
      "OutputOut": {
        "properties": {
          "kind": {
            "description": "audio | video | transcript",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "sizeBytes": {
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "description": "valid for an hour; GET the project again for a new one",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "name",
          "sizeBytes",
          "url"
        ],
        "title": "OutputOut",
        "type": "object"
      },
      "ProgressOut": {
        "properties": {
          "cap": {
            "description": "...but not past this percent before the next poll",
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "percent": {
            "description": "0\u2013100, approximate",
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "rate": {
            "description": "percent per second it's moving at; animate at most this fast",
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "step": {
            "description": "what's happening, e.g. \"Isolating and enhancing dialogue\"",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "cap",
          "percent",
          "rate",
          "step"
        ],
        "title": "ProgressOut",
        "type": "object"
      },
      "ProjectCreateIn": {
        "properties": {
          "clientRef": {
            "description": "your own id; unique within the account",
            "maxLength": 100,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "files": {
            "description": "1 file: processed alone; 2\u20138: tracks of one recording",
            "items": {
              "$ref": "#/components/schemas/ProjectFileIn"
            },
            "maxItems": 8,
            "minItems": 1,
            "type": "array"
          },
          "metadata": {
            "description": "up to 20 keys, returned as given",
            "oneOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "maxLength": 200,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "settings": {
            "$ref": "#/components/schemas/ProjectSettingsIn"
          },
          "testOutcome": {
            "description": "test keys only: \"completed\" (the default), \"failed\" (fails while processing) or \"slow\" (about 10 minutes)",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "files"
        ],
        "title": "ProjectCreateIn",
        "type": "object"
      },
      "ProjectFileIn": {
        "properties": {
          "fileName": {
            "maxLength": 1024,
            "minLength": 1,
            "type": "string"
          },
          "source": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "{\"type\": \"upload\"} (the default: POST the file to its upload URL), {\"type\": \"url\", \"url\": \"https://\u2026\"} (any public https file), {\"type\": \"dropbox\", \"url\": \"<a Dropbox share link>\"} or {\"type\": \"googleDrive\", \"fileId\": \"\u2026\", \"accessToken\": \"<an OAuth token that can read it>\"}. Imports start right away; submit waits for them.",
            "type": "object"
          }
        },
        "required": [
          "fileName"
        ],
        "title": "ProjectFileIn",
        "type": "object"
      },
      "ProjectFileOut": {
        "properties": {
          "durationSeconds": {
            "description": "measured by us once submitted",
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "fileName": {
            "type": "string"
          },
          "importError": {
            "description": "import_failed: why",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "position": {
            "type": "integer"
          },
          "upload": {
            "description": "while the project is draft or rejected and this file isn't in",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ProjectUploadOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "uploadStatus": {
            "description": "pending (upload it) | importing | done | import_failed | deleted",
            "type": "string"
          }
        },
        "required": [
          "durationSeconds",
          "fileName",
          "position",
          "upload",
          "uploadStatus"
        ],
        "title": "ProjectFileOut",
        "type": "object"
      },
      "ProjectListOut": {
        "properties": {
          "nextCursor": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "projects": {
            "items": {
              "$ref": "#/components/schemas/ProjectOut"
            },
            "type": "array"
          }
        },
        "required": [
          "nextCursor",
          "projects"
        ],
        "title": "ProjectListOut",
        "type": "object"
      },
      "ProjectOut": {
        "properties": {
          "clientRef": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "completedAt": {
            "oneOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "creditsSeconds": {
            "description": "what it costs (charged when live)",
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "downloadUrl": {
            "description": "completed: the output zip; valid for an hour, GET again for a new one",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "estimatedCompletionAt": {
            "description": "queued or processing: when we expect it done, from the queue and our boxes; approximate",
            "oneOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "failure": {
            "description": "failed: why",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FailureOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "files": {
            "items": {
              "$ref": "#/components/schemas/ProjectFileOut"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "manifestUrl": {
            "description": "completed: manifest.json, the files and what they came from",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "metadata": {
            "oneOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "mode": {
            "description": "live | test",
            "type": "string"
          },
          "name": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "outputs": {
            "description": "completed: each delivered file (test projects; live projects soon)",
            "items": {
              "$ref": "#/components/schemas/OutputOut"
            },
            "type": "array"
          },
          "progress": {
            "description": "processing: the step and how far along",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ProgressOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "queuedAt": {
            "oneOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "rejection": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RejectionOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "settings": {
            "$ref": "#/components/schemas/ProjectSettingsIn"
          },
          "startedAt": {
            "oneOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "description": "draft | validating | rejected | queued | processing | completed | failed | cancelled",
            "type": "string"
          },
          "testOutcome": {
            "description": "test projects: what the simulator does with it",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "clientRef",
          "completedAt",
          "createdAt",
          "creditsSeconds",
          "downloadUrl",
          "estimatedCompletionAt",
          "failure",
          "files",
          "id",
          "manifestUrl",
          "metadata",
          "mode",
          "name",
          "outputs",
          "progress",
          "queuedAt",
          "rejection",
          "settings",
          "startedAt",
          "status",
          "testOutcome"
        ],
        "title": "ProjectOut",
        "type": "object"
      },
      "ProjectSettingsIn": {
        "properties": {
          "mergeOutput": {
            "default": false,
            "description": "2-track projects: one merged file instead of two",
            "type": "boolean"
          },
          "noiseLevel": {
            "default": "n2",
            "description": "n1 light \u2026 n3 strong noise reduction",
            "type": "string"
          },
          "plosivesLevel": {
            "default": "p2",
            "description": "p1 light \u2026 p3 strong plosive reduction",
            "type": "string"
          }
        },
        "required": [],
        "title": "ProjectSettingsIn",
        "type": "object"
      },
      "ProjectUploadOut": {
        "properties": {
          "fields": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "url": {
            "description": "POST the file here as multipart/form-data: these fields, then `file`",
            "type": "string"
          }
        },
        "required": [
          "fields",
          "url"
        ],
        "title": "ProjectUploadOut",
        "type": "object"
      },
      "RejectionOut": {
        "properties": {
          "code": {
            "description": "upload_missing | unreadable_file | insufficient_credits | measurement_unavailable | file_too_large | test_limit_reached | import_failed",
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "RejectionOut",
        "type": "object"
      },
      "SubscriptionOut": {
        "properties": {
          "amountCents": {
            "description": "each month, before tax",
            "type": "integer"
          },
          "cancelAtPeriodEnd": {
            "type": "boolean"
          },
          "canceledAt": {
            "oneOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "currentPeriodEnd": {
            "description": "when it renews (or ends, if cancelAtPeriodEnd)",
            "oneOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "string"
          },
          "live": {
            "description": "the account's plan now (not ended)",
            "type": "boolean"
          },
          "planId": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "seconds": {
            "description": "credits granted each month, in seconds",
            "type": "integer"
          },
          "status": {
            "description": "active | past_due (a payment failed; Stripe retries) | canceled | trialing | incomplete | unpaid | paused",
            "type": "string"
          }
        },
        "required": [
          "amountCents",
          "cancelAtPeriodEnd",
          "canceledAt",
          "currentPeriodEnd",
          "id",
          "live",
          "planId",
          "seconds",
          "status"
        ],
        "title": "SubscriptionOut",
        "type": "object"
      },
      "SubscriptionStateOut": {
        "properties": {
          "subscription": {
            "description": "the account's plan, or the last one it had; null: none",
            "oneOf": [
              {
                "$ref": "#/components/schemas/SubscriptionOut"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "subscription"
        ],
        "title": "SubscriptionStateOut",
        "type": "object"
      },
      "WebhookEndpointCreateIn": {
        "properties": {
          "description": {
            "maxLength": 200,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "eventTypes": {
            "description": "\"*\" (everything, including types added later) or any of project.validating, project.rejected, project.queued, project.processing, project.completed, project.failed, project.stopped, project.cancelled, credits.added, credits.low, subscription.renewed, subscription.payment_failed, subscription.canceled, billing.topup_failed",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "mode": {
            "description": "signed in: which mode (default live); a key: its own mode",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "description": "https only; a public address",
            "maxLength": 2048,
            "minLength": 8,
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "title": "WebhookEndpointCreateIn",
        "type": "object"
      },
      "WebhookEndpointOut": {
        "properties": {
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "description": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "disabledReason": {
            "description": "user (turned off) | failing (no success for 3 days)",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "eventTypes": {
            "description": "\"*\" (everything, including types added later) or any of project.validating, project.rejected, project.queued, project.processing, project.completed, project.failed, project.stopped, project.cancelled, credits.added, credits.low, subscription.renewed, subscription.payment_failed, subscription.canceled, billing.topup_failed",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "failingSince": {
            "description": "the first failed attempt since the last success",
            "oneOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "string"
          },
          "mode": {
            "description": "live | test: test events go to test endpoints only",
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "description",
          "disabledReason",
          "enabled",
          "eventTypes",
          "failingSince",
          "id",
          "mode",
          "url"
        ],
        "title": "WebhookEndpointOut",
        "type": "object"
      },
      "WebhookEndpointSecretOut": {
        "properties": {
          "endpoint": {
            "$ref": "#/components/schemas/WebhookEndpointOut"
          },
          "secret": {
            "description": "verifies the Podsworth-Signature header; GET doesn't return it again",
            "type": "string"
          }
        },
        "required": [
          "endpoint",
          "secret"
        ],
        "title": "WebhookEndpointSecretOut",
        "type": "object"
      },
      "WebhookEndpointUpdateIn": {
        "properties": {
          "description": {
            "maxLength": 200,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "description": "false turns it off; true turns it back on and clears failures",
            "oneOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "eventTypes": {
            "oneOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "maxLength": 2048,
            "minLength": 8,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [],
        "title": "WebhookEndpointUpdateIn",
        "type": "object"
      }
    },
    "securitySchemes": {
      "apiKey": {
        "description": "An API key from your account page: `Authorization: Bearer pw_test_\u2026`",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Send podcast audio for processing from your own software. Live keys (`pw_live_\u2026`) process real projects paid with the account's credits; test keys (`pw_test_\u2026`) are simulated and never charged. Guides: https://docs.podsworth.com",
    "title": "Podsworth API",
    "version": "v1"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/auto-top-up": {
      "get": {
        "deprecated": false,
        "operationId": "V1AutoTopUpGetAutotopup",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutoTopUpOut"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          }
        },
        "summary": "Get auto top-up",
        "tags": [
          "Account"
        ]
      },
      "put": {
        "deprecated": false,
        "operationId": "V1AutoTopUpSetAutotopup",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutoTopUpIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutoTopUpOut"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "Set auto top-up",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/balance": {
      "get": {
        "deprecated": false,
        "operationId": "V1BalanceBalance",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountBalanceOut"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          }
        },
        "summary": "Get the balance",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/credits/buy": {
      "post": {
        "deprecated": false,
        "operationId": "V1CreditsBuyBuy",
        "parameters": [
          {
            "description": "Any unique string. A retry with the same key and body within 24 hours gets the first response again (Idempotent-Replayed: true) instead of acting twice.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountCheckoutIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountBuyOut"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "Buy credits",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/credits/purchases": {
      "get": {
        "deprecated": false,
        "operationId": "V1CreditsPurchasesPurchases",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AccountPurchaseOut"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          }
        },
        "summary": "List purchases",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/credits/purchases/{purchase_id}": {
      "get": {
        "deprecated": false,
        "operationId": "V1CreditsPurchasesPurchaseIdPurchase",
        "parameters": [
          {
            "deprecated": false,
            "in": "path",
            "name": "purchase_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountPurchaseOut"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "Get a purchase",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/events": {
      "get": {
        "deprecated": false,
        "operationId": "V1EventsListEvents",
        "parameters": [
          {
            "allowEmptyValue": false,
            "allowReserved": false,
            "deprecated": false,
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "allowEmptyValue": false,
            "allowReserved": false,
            "deprecated": false,
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "allowEmptyValue": false,
            "allowReserved": false,
            "deprecated": false,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventListOut"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "List events",
        "tags": [
          "Webhooks"
        ]
      }
    },
    "/v1/ledger": {
      "get": {
        "deprecated": false,
        "operationId": "V1LedgerLedger",
        "parameters": [
          {
            "allowEmptyValue": false,
            "allowReserved": false,
            "deprecated": false,
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "allowEmptyValue": false,
            "allowReserved": false,
            "deprecated": false,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AccountLedgerLine"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "List credit history",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/me": {
      "get": {
        "deprecated": false,
        "operationId": "V1MeMe",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountMe"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          }
        },
        "summary": "Who this key is",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/projects": {
      "get": {
        "deprecated": false,
        "operationId": "V1ProjectsListProjects",
        "parameters": [
          {
            "allowEmptyValue": false,
            "allowReserved": false,
            "deprecated": false,
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "allowEmptyValue": false,
            "allowReserved": false,
            "deprecated": false,
            "in": "query",
            "name": "clientRef",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "allowEmptyValue": false,
            "allowReserved": false,
            "deprecated": false,
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "allowEmptyValue": false,
            "allowReserved": false,
            "deprecated": false,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectListOut"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "List projects",
        "tags": [
          "Projects"
        ]
      },
      "post": {
        "deprecated": false,
        "operationId": "V1ProjectsCreate",
        "parameters": [
          {
            "description": "Any unique string. A retry with the same key and body within 24 hours gets the first response again (Idempotent-Replayed: true) instead of acting twice.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectCreateIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectOut"
                }
              }
            },
            "description": "Document created, URL follows",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "Create a project",
        "tags": [
          "Projects"
        ]
      }
    },
    "/v1/projects/{project_id}": {
      "get": {
        "deprecated": false,
        "operationId": "V1ProjectsProjectIdGetProject",
        "parameters": [
          {
            "deprecated": false,
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectOut"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "Get a project",
        "tags": [
          "Projects"
        ]
      }
    },
    "/v1/projects/{project_id}/cancel": {
      "post": {
        "deprecated": false,
        "operationId": "V1ProjectsProjectIdCancelCancel",
        "parameters": [
          {
            "deprecated": false,
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Any unique string. A retry with the same key and body within 24 hours gets the first response again (Idempotent-Replayed: true) instead of acting twice.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectOut"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "Cancel a project",
        "tags": [
          "Projects"
        ]
      }
    },
    "/v1/projects/{project_id}/files": {
      "delete": {
        "deprecated": false,
        "operationId": "V1ProjectsProjectIdFilesPurgeFiles",
        "parameters": [
          {
            "deprecated": false,
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectOut"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "Delete a project's files",
        "tags": [
          "Projects"
        ]
      }
    },
    "/v1/projects/{project_id}/submit": {
      "post": {
        "deprecated": false,
        "operationId": "V1ProjectsProjectIdSubmitSubmit",
        "parameters": [
          {
            "deprecated": false,
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Any unique string. A retry with the same key and body within 24 hours gets the first response again (Idempotent-Replayed: true) instead of acting twice.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectOut"
                }
              }
            },
            "description": "Request accepted, processing continues off-line",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "Submit a project",
        "tags": [
          "Projects"
        ]
      }
    },
    "/v1/subscription": {
      "get": {
        "deprecated": false,
        "operationId": "V1SubscriptionSubscription",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionStateOut"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          }
        },
        "summary": "Get the monthly plan",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/webhook-endpoints": {
      "get": {
        "deprecated": false,
        "operationId": "V1WebhookEndpointsListEndpoints",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/WebhookEndpointOut"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          }
        },
        "summary": "List webhook endpoints",
        "tags": [
          "Webhooks"
        ]
      },
      "post": {
        "deprecated": false,
        "operationId": "V1WebhookEndpointsCreateEndpoint",
        "parameters": [
          {
            "description": "Any unique string. A retry with the same key and body within 24 hours gets the first response again (Idempotent-Replayed: true) instead of acting twice.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEndpointCreateIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointSecretOut"
                }
              }
            },
            "description": "Document created, URL follows",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "Add a webhook endpoint",
        "tags": [
          "Webhooks"
        ]
      }
    },
    "/v1/webhook-endpoints/{endpoint_id}": {
      "delete": {
        "deprecated": false,
        "operationId": "V1WebhookEndpointsEndpointIdDeleteEndpoint",
        "parameters": [
          {
            "deprecated": false,
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Request fulfilled, nothing follows",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "Delete a webhook endpoint",
        "tags": [
          "Webhooks"
        ]
      },
      "get": {
        "deprecated": false,
        "operationId": "V1WebhookEndpointsEndpointIdGetEndpoint",
        "parameters": [
          {
            "deprecated": false,
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointOut"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "Get a webhook endpoint",
        "tags": [
          "Webhooks"
        ]
      },
      "patch": {
        "deprecated": false,
        "operationId": "V1WebhookEndpointsEndpointIdUpdateEndpoint",
        "parameters": [
          {
            "deprecated": false,
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEndpointUpdateIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointOut"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "Update a webhook endpoint",
        "tags": [
          "Webhooks"
        ]
      }
    },
    "/v1/webhook-endpoints/{endpoint_id}/deliveries": {
      "get": {
        "deprecated": false,
        "operationId": "V1WebhookEndpointsEndpointIdDeliveriesListDeliveries",
        "parameters": [
          {
            "deprecated": false,
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "allowEmptyValue": false,
            "allowReserved": false,
            "deprecated": false,
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "allowEmptyValue": false,
            "allowReserved": false,
            "deprecated": false,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryListOut"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "List deliveries",
        "tags": [
          "Webhooks"
        ]
      }
    },
    "/v1/webhook-endpoints/{endpoint_id}/deliveries/{delivery_id}/retry": {
      "post": {
        "deprecated": false,
        "operationId": "V1WebhookEndpointsEndpointIdDeliveriesDeliveryIdRetryRetryDelivery",
        "parameters": [
          {
            "deprecated": false,
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "deprecated": false,
            "in": "path",
            "name": "delivery_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Any unique string. A retry with the same key and body within 24 hours gets the first response again (Idempotent-Replayed: true) instead of acting twice.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryOut"
                }
              }
            },
            "description": "Request accepted, processing continues off-line",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "Retry a delivery",
        "tags": [
          "Webhooks"
        ]
      }
    },
    "/v1/webhook-endpoints/{endpoint_id}/rotate-secret": {
      "post": {
        "deprecated": false,
        "operationId": "V1WebhookEndpointsEndpointIdRotateSecretRotateSecret",
        "parameters": [
          {
            "deprecated": false,
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Any unique string. A retry with the same key and body within 24 hours gets the first response again (Idempotent-Replayed: true) instead of acting twice.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointSecretOut"
                }
              }
            },
            "description": "Request fulfilled, document follows",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "Roll the signing secret",
        "tags": [
          "Webhooks"
        ]
      }
    },
    "/v1/webhook-endpoints/{endpoint_id}/test": {
      "post": {
        "deprecated": false,
        "operationId": "V1WebhookEndpointsEndpointIdTestSendTest",
        "parameters": [
          {
            "deprecated": false,
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Any unique string. A retry with the same key and body within 24 hours gets the first response again (Idempotent-Replayed: true) instead of acting twice.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryOut"
                }
              }
            },
            "description": "Request accepted, processing continues off-line",
            "headers": {}
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Validation Exception",
                  "examples": [
                    {
                      "detail": "Bad Request",
                      "extra": {},
                      "status_code": 400
                    }
                  ],
                  "properties": {
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "additionalProperties": {},
                      "type": [
                        "null",
                        "object",
                        "array"
                      ]
                    },
                    "status_code": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "detail",
                    "status_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bad request syntax or unsupported method"
          }
        },
        "summary": "Send a test event",
        "tags": [
          "Webhooks"
        ]
      }
    }
  },
  "security": [
    {
      "apiKey": []
    }
  ],
  "servers": [
    {
      "url": "https://api.podsworth.com"
    }
  ],
  "tags": [
    {
      "description": "Create a project, upload or import its files, submit it, follow it, download the result.",
      "name": "Projects"
    },
    {
      "description": "Endpoints we POST your account's events to, their deliveries, and the events feed.",
      "name": "Webhooks"
    },
    {
      "description": "Who a key is, the account's credits and their history, buying credits.",
      "name": "Account"
    }
  ]
}
