{
  "openapi": "3.1.1",
  "info": {
    "title": "RowScribe API",
    "description": "Generate documents from your data with your RowScribe templates. Authenticate with an API key in the X-API-Key header; create keys on the Developers page (/developers). Each key holds scopes, and each operation names the scope it needs. Guide: /developers/api",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://rowscribe.com/"
    }
  ],
  "paths": {
    "/api/v1/datasets": {
      "get": {
        "tags": [
          "Datasets"
        ],
        "summary": "List datasets",
        "description": "The workspace's datasets, most recently changed first. Rows aren't included; read one dataset for them.\n\nRequired scope: `datasets:read`.",
        "operationId": "DatasetsV1_List",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Results per page.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "search",
            "in": "query",
            "description": "Filters the results by this text.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1PageOfApiV1Dataset"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "datasets:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      },
      "post": {
        "tags": [
          "Datasets"
        ],
        "summary": "Create a dataset",
        "description": "Creates a dataset from columns and rows, with an optional row key.\n\nRequired scope: `datasets:write`.",
        "operationId": "DatasetsV1_Create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1CreateDatasetRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Dataset"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed` `row_cap_exceeded`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`duplicate_row_key` `limit_reached` `idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "duplicate_row_key",
                  "message": "Two rows would have the same row key. The message names them. To change a row that's already there, send it to PATCH /datasets/{id}/rows."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "datasets:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "row_cap_exceeded",
          "duplicate_row_key",
          "limit_reached",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "row_cap_exceeded",
          "duplicate_row_key",
          "limit_reached"
        ]
      }
    },
    "/api/v1/datasets/{id}": {
      "get": {
        "tags": [
          "Datasets"
        ],
        "summary": "Retrieve a dataset",
        "description": "One dataset with its rows.\n\nRequired scope: `datasets:read`.",
        "operationId": "DatasetsV1_Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The dataset's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Dataset"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "datasets:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      },
      "put": {
        "tags": [
          "Datasets"
        ],
        "summary": "Replace a dataset",
        "description": "Replaces the whole dataset: name, columns, row key and rows.\n\nRequired scope: `datasets:write`.",
        "operationId": "DatasetsV1_Update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The dataset's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1UpdateDatasetRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Dataset"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed` `row_cap_exceeded`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`edit_conflict` `duplicate_row_key`",
            "content": {
              "application/json": {
                "example": {
                  "code": "edit_conflict",
                  "message": "Someone changed this since you read it. Read it again and reapply your change with the new revision."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "datasets:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "row_cap_exceeded",
          "edit_conflict",
          "duplicate_row_key",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "row_cap_exceeded",
          "edit_conflict",
          "duplicate_row_key"
        ]
      },
      "delete": {
        "tags": [
          "Datasets"
        ],
        "summary": "Delete a dataset",
        "description": "Deletes a dataset no schedule reads.\n\nRequired scope: `datasets:write`.",
        "operationId": "DatasetsV1_Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The dataset's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": { }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`in_use`",
            "content": {
              "application/json": {
                "example": {
                  "code": "in_use",
                  "message": "Something still uses this (a schedule, for example). The message says what."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "datasets:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "in_use",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "in_use"
        ]
      }
    },
    "/api/v1/datasets/{id}/rows": {
      "post": {
        "tags": [
          "Datasets"
        ],
        "summary": "Add rows to a dataset",
        "description": "Adds rows after the existing ones. With a row key, a row whose key is already in the dataset is\n    refused; to add or update by key, use PATCH.\n\nRequired scope: `datasets:write`.",
        "operationId": "DatasetsV1_AppendRows",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The dataset's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1DatasetRowsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1DatasetRowsResult"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed` `row_cap_exceeded`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`edit_conflict` `duplicate_row_key` `idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "edit_conflict",
                  "message": "Someone changed this since you read it. Read it again and reapply your change with the new revision."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "datasets:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "row_cap_exceeded",
          "edit_conflict",
          "duplicate_row_key",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "row_cap_exceeded",
          "edit_conflict",
          "duplicate_row_key"
        ]
      },
      "put": {
        "tags": [
          "Datasets"
        ],
        "summary": "Replace a dataset's rows",
        "description": "Replaces all of the dataset's rows with the ones sent. Rows aren't matched or merged: every existing row is removed, the new ones are kept in the order sent, and the columns stay. To change some rows, add or update them by key with PATCH.\n\nRequired scope: `datasets:write`.",
        "operationId": "DatasetsV1_ReplaceRows",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The dataset's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1DatasetRowsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1DatasetRowsResult"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed` `row_cap_exceeded`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`edit_conflict` `duplicate_row_key`",
            "content": {
              "application/json": {
                "example": {
                  "code": "edit_conflict",
                  "message": "Someone changed this since you read it. Read it again and reapply your change with the new revision."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "datasets:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "row_cap_exceeded",
          "edit_conflict",
          "duplicate_row_key",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "row_cap_exceeded",
          "edit_conflict",
          "duplicate_row_key"
        ]
      },
      "patch": {
        "tags": [
          "Datasets"
        ],
        "summary": "Add or update rows by key",
        "description": "Finds each row sent by the dataset's row key. A row already there takes the columns sent and keeps the\n    rest, so sending only Email and Amount changes only the amount; a row that isn't there is added at the end.\n    The dataset needs a row key, and each row sent needs a value in every key column.\n\nRequired scope: `datasets:write`.",
        "operationId": "DatasetsV1_UpsertRows",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The dataset's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1UpsertDatasetRowsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1DatasetRowsResult"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed` `row_cap_exceeded`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`edit_conflict` `duplicate_row_key`",
            "content": {
              "application/json": {
                "example": {
                  "code": "edit_conflict",
                  "message": "Someone changed this since you read it. Read it again and reapply your change with the new revision."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "datasets:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "row_cap_exceeded",
          "edit_conflict",
          "duplicate_row_key",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "row_cap_exceeded",
          "edit_conflict",
          "duplicate_row_key"
        ]
      }
    },
    "/api/v1/datasets/{id}/rows/delete": {
      "post": {
        "tags": [
          "Datasets"
        ],
        "summary": "Delete rows by key",
        "description": "Removes the rows with these key values; the others keep their order. A key that matches no row is\n    skipped, so sending the same delete twice is safe. The dataset needs a row key.\n\nRequired scope: `datasets:write`.",
        "operationId": "DatasetsV1_DeleteRows",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The dataset's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1DeleteDatasetRowsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1DatasetRowsResult"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`edit_conflict` `idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "edit_conflict",
                  "message": "Someone changed this since you read it. Read it again and reapply your change with the new revision."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "datasets:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "edit_conflict",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "edit_conflict"
        ]
      }
    },
    "/api/v1/datasets/{id}/csv": {
      "get": {
        "tags": [
          "Datasets"
        ],
        "summary": "Export a dataset as CSV",
        "description": "The rows as CSV.\n\nRequired scope: `datasets:read`.",
        "operationId": "DatasetsV1_ExportCsv",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The dataset's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": { },
              "text/csv": { }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "datasets:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/documents": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Create a document",
        "description": "Queues one document from one row and answers at once with its job. Follow the job, or\n    name a webhook endpoint in the delivery to be told when it completes (a failed job sends no\n    event).\n\nRequired scope: `jobs:write`.",
        "operationId": "DocumentsV1_Create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1CreateDocumentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Queued. The Location header is the job; download it once completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Job"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed` `missing_merge_field` `recipient_not_verified` `connection_expired` `endpoint_not_found` `endpoint_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "402": {
            "description": "`allowance_exceeded`",
            "content": {
              "application/json": {
                "example": {
                  "code": "allowance_exceeded",
                  "message": "The monthly document allowance and any document packs can't cover this many documents."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`concurrent_job_limit` `rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "concurrent_job_limit",
                  "message": "This key already has the maximum number of jobs waiting or running. Retry after one finishes."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`service_busy` `maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "service_busy",
                  "message": "RowScribe is busy accepting other jobs. Retry after the Retry-After seconds."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "missing_merge_field",
          "recipient_not_verified",
          "connection_expired",
          "endpoint_not_found",
          "endpoint_paused",
          "allowance_exceeded",
          "idempotency_conflict",
          "idempotency_in_progress",
          "concurrent_job_limit",
          "rate_limited",
          "service_busy",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "missing_merge_field",
          "recipient_not_verified",
          "connection_expired",
          "endpoint_not_found",
          "endpoint_paused",
          "allowance_exceeded",
          "concurrent_job_limit",
          "service_busy"
        ]
      }
    },
    "/api/v1/jobs": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "summary": "List jobs",
        "description": "The workspace's jobs, newest first.\n\nRequired scope: `jobs:read`.",
        "operationId": "JobsV1_List",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Results per page.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "search",
            "in": "query",
            "description": "Filters the results by this text.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "pending, scheduled, processing, completed, failed or cancelled.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Only jobs created on or after this day (UTC).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Only jobs created on or before this day (UTC).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1PageOfApiV1JobSummary"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      },
      "post": {
        "tags": [
          "Jobs"
        ],
        "summary": "Create a job",
        "description": "Creates a job from rows in the body, or from a dataset, URL or Google Sheet.\n\nRequired scope: `jobs:write`.",
        "operationId": "JobsV1_Create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1CreateJobRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Job"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed` `missing_merge_field` `row_cap_exceeded` `recipient_not_verified` `connection_expired` `endpoint_not_found` `endpoint_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "402": {
            "description": "`allowance_exceeded`",
            "content": {
              "application/json": {
                "example": {
                  "code": "allowance_exceeded",
                  "message": "The monthly document allowance and any document packs can't cover this many documents."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`concurrent_job_limit` `rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "concurrent_job_limit",
                  "message": "This key already has the maximum number of jobs waiting or running. Retry after one finishes."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`service_busy` `maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "service_busy",
                  "message": "RowScribe is busy accepting other jobs. Retry after the Retry-After seconds."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "missing_merge_field",
          "row_cap_exceeded",
          "recipient_not_verified",
          "connection_expired",
          "endpoint_not_found",
          "endpoint_paused",
          "allowance_exceeded",
          "idempotency_conflict",
          "idempotency_in_progress",
          "concurrent_job_limit",
          "rate_limited",
          "service_busy",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "missing_merge_field",
          "row_cap_exceeded",
          "recipient_not_verified",
          "connection_expired",
          "endpoint_not_found",
          "endpoint_paused",
          "allowance_exceeded",
          "concurrent_job_limit",
          "service_busy"
        ]
      }
    },
    "/api/v1/jobs/{id}": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "summary": "Retrieve a job",
        "description": "One job: its status, progress, place in the queue and what it counted.\n\nRequired scope: `jobs:read`.",
        "operationId": "JobsV1_Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The job's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Job"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      },
      "delete": {
        "tags": [
          "Jobs"
        ],
        "summary": "Delete a job",
        "description": "Deletes a finished job, its data and its files. Its documents still count this period.\n\nRequired scope: `jobs:write`.",
        "operationId": "JobsV1_Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The job's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": { }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/jobs/upload": {
      "post": {
        "tags": [
          "Jobs"
        ],
        "summary": "Create a job from a file",
        "description": "Creates a job from an uploaded CSV, XLSX or JSON file (multipart/form-data).\n\nRequired scope: `jobs:write`.",
        "operationId": "JobsV1_Upload",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "allOf": [
                  {
                    "type": "object",
                    "properties": {
                      "file": {
                        "$ref": "#/components/schemas/IFormFile"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "templateId": {
                        "type": "string",
                        "format": "uuid"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "delivery": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "exportOptions": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "columnMapping": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "sheetName": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "scheduledFor": {
                        "type": "string",
                        "format": "date-time"
                      }
                    }
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Job"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed` `missing_merge_field` `row_cap_exceeded` `recipient_not_verified` `connection_expired` `endpoint_not_found` `endpoint_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "402": {
            "description": "`allowance_exceeded`",
            "content": {
              "application/json": {
                "example": {
                  "code": "allowance_exceeded",
                  "message": "The monthly document allowance and any document packs can't cover this many documents."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`concurrent_job_limit` `rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "concurrent_job_limit",
                  "message": "This key already has the maximum number of jobs waiting or running. Retry after one finishes."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`service_busy` `maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "service_busy",
                  "message": "RowScribe is busy accepting other jobs. Retry after the Retry-After seconds."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "missing_merge_field",
          "row_cap_exceeded",
          "recipient_not_verified",
          "connection_expired",
          "endpoint_not_found",
          "endpoint_paused",
          "allowance_exceeded",
          "idempotency_conflict",
          "idempotency_in_progress",
          "concurrent_job_limit",
          "rate_limited",
          "service_busy",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "missing_merge_field",
          "row_cap_exceeded",
          "recipient_not_verified",
          "connection_expired",
          "endpoint_not_found",
          "endpoint_paused",
          "allowance_exceeded",
          "concurrent_job_limit",
          "service_busy"
        ]
      }
    },
    "/api/v1/jobs/combined": {
      "post": {
        "tags": [
          "Jobs"
        ],
        "summary": "Create emails with PDF attachments",
        "description": "Emails from an email template, each with a PDF attachment from a PDF template.\n\nRequired scope: `jobs:write`.",
        "operationId": "JobsV1_CreateCombined",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1CreateCombinedJobRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Job"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed` `missing_merge_field` `row_cap_exceeded` `template_grouping_not_allowed` `recipient_not_verified` `connection_expired` `endpoint_not_found` `endpoint_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "402": {
            "description": "`allowance_exceeded`",
            "content": {
              "application/json": {
                "example": {
                  "code": "allowance_exceeded",
                  "message": "The monthly document allowance and any document packs can't cover this many documents."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`concurrent_job_limit` `rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "concurrent_job_limit",
                  "message": "This key already has the maximum number of jobs waiting or running. Retry after one finishes."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`service_busy` `maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "service_busy",
                  "message": "RowScribe is busy accepting other jobs. Retry after the Retry-After seconds."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "missing_merge_field",
          "row_cap_exceeded",
          "template_grouping_not_allowed",
          "recipient_not_verified",
          "connection_expired",
          "endpoint_not_found",
          "endpoint_paused",
          "allowance_exceeded",
          "idempotency_conflict",
          "idempotency_in_progress",
          "concurrent_job_limit",
          "rate_limited",
          "service_busy",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "missing_merge_field",
          "row_cap_exceeded",
          "template_grouping_not_allowed",
          "recipient_not_verified",
          "connection_expired",
          "endpoint_not_found",
          "endpoint_paused",
          "allowance_exceeded",
          "concurrent_job_limit",
          "service_busy"
        ]
      }
    },
    "/api/v1/jobs/validate": {
      "post": {
        "tags": [
          "Jobs"
        ],
        "summary": "Validate a job",
        "description": "A dry run of POST /jobs: the counts, the cost against the allowance, and the data,\n    delivery and allowance problems the job would be refused for. The plan, the start time and\n    the per-key job limit are checked only when the job is created. Nothing is created and\n    nothing is counted.\n\nRequired scope: `jobs:write`.",
        "operationId": "JobsV1_Validate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1CreateJobRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1JobValidation"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed` `connection_expired`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "connection_expired",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "connection_expired"
        ]
      }
    },
    "/api/v1/jobs/upload/validate": {
      "post": {
        "tags": [
          "Jobs"
        ],
        "summary": "Validate a job from a file",
        "description": "A dry run of POST /jobs/upload, checking what POST /jobs/validate does.\n\nRequired scope: `jobs:write`.",
        "operationId": "JobsV1_ValidateUpload",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "allOf": [
                  {
                    "type": "object",
                    "properties": {
                      "file": {
                        "$ref": "#/components/schemas/IFormFile"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "templateId": {
                        "type": "string",
                        "format": "uuid"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "delivery": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "columnMapping": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "sheetName": {
                        "type": "string"
                      }
                    }
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1JobValidation"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/jobs/{id}/cancel": {
      "post": {
        "tags": [
          "Jobs"
        ],
        "summary": "Cancel a job",
        "description": "Stops a waiting or running job. Documents already made still count.\n\nRequired scope: `jobs:write`.",
        "operationId": "JobsV1_Cancel",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The job's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Job"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/jobs/{id}/rerun": {
      "post": {
        "tags": [
          "Jobs"
        ],
        "summary": "Re-run a job",
        "description": "Runs the job again with the same data and settings, as a new job.\n\nRequired scope: `jobs:write`.",
        "operationId": "JobsV1_ReRun",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The job's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Job"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed` `row_cap_exceeded` `endpoint_not_found` `endpoint_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "402": {
            "description": "`allowance_exceeded`",
            "content": {
              "application/json": {
                "example": {
                  "code": "allowance_exceeded",
                  "message": "The monthly document allowance and any document packs can't cover this many documents."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`concurrent_job_limit` `rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "concurrent_job_limit",
                  "message": "This key already has the maximum number of jobs waiting or running. Retry after one finishes."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`service_busy` `maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "service_busy",
                  "message": "RowScribe is busy accepting other jobs. Retry after the Retry-After seconds."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "row_cap_exceeded",
          "endpoint_not_found",
          "endpoint_paused",
          "allowance_exceeded",
          "idempotency_conflict",
          "idempotency_in_progress",
          "concurrent_job_limit",
          "rate_limited",
          "service_busy",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "row_cap_exceeded",
          "endpoint_not_found",
          "endpoint_paused",
          "allowance_exceeded",
          "concurrent_job_limit",
          "service_busy"
        ]
      }
    },
    "/api/v1/jobs/{id}/retry-failed": {
      "post": {
        "tags": [
          "Jobs"
        ],
        "summary": "Retry failed rows",
        "description": "A new job made of just the rows that failed.\n\nRequired scope: `jobs:write`.",
        "operationId": "JobsV1_RetryFailed",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The job's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Job"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed` `row_cap_exceeded` `endpoint_not_found` `endpoint_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "402": {
            "description": "`allowance_exceeded`",
            "content": {
              "application/json": {
                "example": {
                  "code": "allowance_exceeded",
                  "message": "The monthly document allowance and any document packs can't cover this many documents."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`concurrent_job_limit` `rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "concurrent_job_limit",
                  "message": "This key already has the maximum number of jobs waiting or running. Retry after one finishes."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`service_busy` `maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "service_busy",
                  "message": "RowScribe is busy accepting other jobs. Retry after the Retry-After seconds."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "row_cap_exceeded",
          "endpoint_not_found",
          "endpoint_paused",
          "allowance_exceeded",
          "idempotency_conflict",
          "idempotency_in_progress",
          "concurrent_job_limit",
          "rate_limited",
          "service_busy",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "row_cap_exceeded",
          "endpoint_not_found",
          "endpoint_paused",
          "allowance_exceeded",
          "concurrent_job_limit",
          "service_busy"
        ]
      }
    },
    "/api/v1/jobs/{id}/download": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "summary": "Download a job's output",
        "description": "The finished output: one merged PDF, or a ZIP of the documents.\n\nRequired scope: `jobs:read`.",
        "operationId": "JobsV1_Download",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The job's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": { },
              "application/pdf": { },
              "application/zip": { }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`job_not_completed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "job_not_completed",
                  "message": "The job hasn't finished, or finished without a file to download. Check its status first."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "job_not_completed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "job_not_completed"
        ]
      }
    },
    "/api/v1/jobs/{id}/failed-rows": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "summary": "List failed rows",
        "description": "The first 500 failed rows by row number, each with its reason and its data (the email\n    row's, for a combined job). Every failed row is in /failed-rows/csv.\n\nRequired scope: `jobs:read`.",
        "operationId": "JobsV1_FailedRows",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The job's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Results per page.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1PageOfApiV1FailedRow"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/jobs/{id}/failed-rows/csv": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "summary": "Export failed rows as CSV",
        "description": "Every failed row as CSV, with a column for the reason.\n\nRequired scope: `jobs:read`.",
        "operationId": "JobsV1_FailedRowsCsv",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The job's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": { },
              "text/csv": { }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/jobs/{id}/log": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "summary": "List a job's events",
        "description": "The job's progress events, as the app's job page streams them.\n\nRequired scope: `jobs:read`.",
        "operationId": "JobsV1_Log",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The job's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Results per page.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1PageOfApiV1JobEvent"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/jobs/{id}/source-file": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "summary": "Download a job's data",
        "description": "The data the job was made from, as the file it arrived in (JSON rows come back as CSV).\n\nRequired scope: `jobs:read`.",
        "operationId": "JobsV1_SourceFile",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The job's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": { },
              "text/csv": { },
              "application/octet-stream": { }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/jobs/{id}/attachment-source-file": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "summary": "Download a job's attachment data",
        "description": "A combined job's attachment data.\n\nRequired scope: `jobs:read`.",
        "operationId": "JobsV1_AttachmentSourceFile",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The job's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": { },
              "text/csv": { },
              "application/octet-stream": { }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/jobs/limits": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "summary": "Retrieve job limits",
        "description": "What a job has to fit inside: the row cap, the per-key limits and the documents left.\n\nRequired scope: `jobs:read`.",
        "operationId": "JobsV1_Limits",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1JobLimits"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/me": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Retrieve the current key",
        "description": "The key, its creator, its workspace and plan, and the documents left this period.\n\nRequired scope: none — any valid key.",
        "operationId": "MeV1_Get",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Me"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "any",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/recipient-lists": {
      "get": {
        "tags": [
          "Recipient lists"
        ],
        "summary": "List recipient lists",
        "description": "The workspace's recipient lists, most recently changed first.\n\nRequired scope: `recipients:read`.",
        "operationId": "RecipientListsV1_List",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Results per page.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "search",
            "in": "query",
            "description": "Filters the results by this text.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1PageOfApiV1RecipientList"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "recipients:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      },
      "post": {
        "tags": [
          "Recipient lists"
        ],
        "summary": "Create a recipient list",
        "description": "Creates a list. Addresses are checked and duplicates dropped.\n\nRequired scope: `recipients:write`.",
        "operationId": "RecipientListsV1_Create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1RecipientListRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1RecipientList"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "recipients:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/recipient-lists/{id}": {
      "get": {
        "tags": [
          "Recipient lists"
        ],
        "summary": "Retrieve a recipient list",
        "description": "One list with its addresses.\n\nRequired scope: `recipients:read`.",
        "operationId": "RecipientListsV1_Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The recipient list's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1RecipientList"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "recipients:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      },
      "put": {
        "tags": [
          "Recipient lists"
        ],
        "summary": "Replace a recipient list",
        "description": "Replaces the list's name, description and addresses.\n\nRequired scope: `recipients:write`.",
        "operationId": "RecipientListsV1_Update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The recipient list's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1RecipientListRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1RecipientList"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "recipients:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      },
      "delete": {
        "tags": [
          "Recipient lists"
        ],
        "summary": "Delete a recipient list",
        "description": "Deletes a list. Refused while a schedule or an unfinished job sends to it.\n\nRequired scope: `recipients:write`.",
        "operationId": "RecipientListsV1_Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The recipient list's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": { }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`in_use`",
            "content": {
              "application/json": {
                "example": {
                  "code": "in_use",
                  "message": "Something still uses this (a schedule, for example). The message says what."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "recipients:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "in_use",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "in_use"
        ]
      }
    },
    "/api/v1/recipient-lists/{id}/export": {
      "get": {
        "tags": [
          "Recipient lists"
        ],
        "summary": "Export a recipient list",
        "description": "The list as an export file another workspace can import in the app.\n\nRequired scope: `recipients:read`.",
        "operationId": "RecipientListsV1_Export",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The recipient list's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": { }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "recipients:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/schedules": {
      "get": {
        "tags": [
          "Schedules"
        ],
        "summary": "List schedules",
        "description": "The workspace's schedules with their last and next run.\n\nRequired scope: `schedules:read`.",
        "operationId": "SchedulesV1_List",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Results per page.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "search",
            "in": "query",
            "description": "Filters the results by this text.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1PageOfApiV1ScheduleSummary"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "schedules:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      },
      "post": {
        "tags": [
          "Schedules"
        ],
        "summary": "Create a schedule",
        "description": "Creates a schedule, enabled. Cron is validated with its timezone.\n\nRequired scope: `schedules:write`.",
        "operationId": "SchedulesV1_Create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1CreateScheduleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Schedule"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed` `recipient_not_verified` `connection_expired` `endpoint_not_found` `endpoint_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`limit_reached` `idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "limit_reached",
                  "message": "The workspace has reached a count limit (keys, webhook endpoints…). The message names it."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`service_busy` `maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "service_busy",
                  "message": "RowScribe is busy accepting other jobs. Retry after the Retry-After seconds."
                }
              }
            }
          }
        },
        "x-required-scope": "schedules:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "recipient_not_verified",
          "connection_expired",
          "endpoint_not_found",
          "endpoint_paused",
          "limit_reached",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "service_busy",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "recipient_not_verified",
          "connection_expired",
          "endpoint_not_found",
          "endpoint_paused",
          "limit_reached",
          "service_busy"
        ]
      }
    },
    "/api/v1/schedules/{id}": {
      "get": {
        "tags": [
          "Schedules"
        ],
        "summary": "Retrieve a schedule",
        "description": "One schedule, its plain-English summary and its next three run times within its start\n    and end dates.\n\nRequired scope: `schedules:read`.",
        "operationId": "SchedulesV1_Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The schedule's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Schedule"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "schedules:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      },
      "put": {
        "tags": [
          "Schedules"
        ],
        "summary": "Replace a schedule",
        "description": "Replaces the schedule's settings. Doesn't enable or disable it.\n\nRequired scope: `schedules:write`.",
        "operationId": "SchedulesV1_Update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The schedule's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1UpdateScheduleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Schedule"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed` `recipient_not_verified` `connection_expired` `endpoint_not_found` `endpoint_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`edit_conflict`",
            "content": {
              "application/json": {
                "example": {
                  "code": "edit_conflict",
                  "message": "Someone changed this since you read it. Read it again and reapply your change with the new revision."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`service_busy` `maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "service_busy",
                  "message": "RowScribe is busy accepting other jobs. Retry after the Retry-After seconds."
                }
              }
            }
          }
        },
        "x-required-scope": "schedules:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "recipient_not_verified",
          "connection_expired",
          "endpoint_not_found",
          "endpoint_paused",
          "edit_conflict",
          "rate_limited",
          "service_busy",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "recipient_not_verified",
          "connection_expired",
          "endpoint_not_found",
          "endpoint_paused",
          "edit_conflict",
          "service_busy"
        ]
      },
      "delete": {
        "tags": [
          "Schedules"
        ],
        "summary": "Delete a schedule",
        "description": "Deletes a schedule. Jobs it already made stay.\n\nRequired scope: `schedules:write`.",
        "operationId": "SchedulesV1_Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The schedule's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": { }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "schedules:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/schedules/{id}/enable": {
      "post": {
        "tags": [
          "Schedules"
        ],
        "summary": "Enable a schedule",
        "description": "Turns a schedule on. A one-time schedule whose time has passed needs a new time first.\n\nRequired scope: `schedules:write`.",
        "operationId": "SchedulesV1_Enable",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The schedule's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Schedule"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed` `schedule_spent`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`service_busy` `maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "service_busy",
                  "message": "RowScribe is busy accepting other jobs. Retry after the Retry-After seconds."
                }
              }
            }
          }
        },
        "x-required-scope": "schedules:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "schedule_spent",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "service_busy",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "schedule_spent",
          "service_busy"
        ]
      }
    },
    "/api/v1/schedules/{id}/disable": {
      "post": {
        "tags": [
          "Schedules"
        ],
        "summary": "Disable a schedule",
        "description": "Turns a schedule off. Its settings and run history stay.\n\nRequired scope: `schedules:write`.",
        "operationId": "SchedulesV1_Disable",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The schedule's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Schedule"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`service_busy` `maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "service_busy",
                  "message": "RowScribe is busy accepting other jobs. Retry after the Retry-After seconds."
                }
              }
            }
          }
        },
        "x-required-scope": "schedules:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "service_busy",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "service_busy"
        ]
      }
    },
    "/api/v1/schedules/{id}/run": {
      "post": {
        "tags": [
          "Schedules"
        ],
        "summary": "Run a schedule now",
        "description": "Queues a run now, outside the schedule, even while the schedule is disabled. The answer\n    only confirms it was queued; the run and its job appear in GET /schedules/{id}/runs.\n\nRequired scope: `schedules:write`.",
        "operationId": "SchedulesV1_RunNow",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The schedule's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": { }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "schedules:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/schedules/{id}/runs": {
      "get": {
        "tags": [
          "Schedules"
        ],
        "summary": "List a schedule's runs",
        "description": "The schedule's runs, newest first.\n\nRequired scope: `schedules:read`.",
        "operationId": "SchedulesV1_Runs",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The schedule's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Results per page.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1PageOfApiV1ScheduleRun"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "schedules:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/schedules/{id}/runs/{runId}/approve": {
      "post": {
        "tags": [
          "Schedules"
        ],
        "summary": "Approve a run",
        "description": "Approves a run of a schedule with requireApproval that is waiting for it (status awaiting_approval).\n    Its documents are set for the run's time, or start now if that has passed. Fill in the dataset's each-run\n    values first, for example with PATCH /datasets/{id}/rows. The key's creator must be able to edit the dataset.\n\nRequired scope: `runs:approve`.",
        "operationId": "SchedulesV1_ApproveRun",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The schedule's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "runId",
            "in": "path",
            "description": "The run's id, from GET /schedules/{id}/runs.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1ApproveRunRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1ApproveRunResult"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "runs:approve",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/templates": {
      "get": {
        "tags": [
          "Templates"
        ],
        "summary": "List templates",
        "description": "The workspace's templates. `archived=true` lists the archived ones instead.\n\nRequired scope: `templates:read`.",
        "operationId": "TemplatesV1_List",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Results per page.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "search",
            "in": "query",
            "description": "Filters the results by this text.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "archived",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1PageOfApiV1TemplateSummary"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "templates:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      },
      "post": {
        "tags": [
          "Templates"
        ],
        "summary": "Create a template from a starter",
        "description": "A new template from a starter.\n\nRequired scope: `templates:write`.",
        "operationId": "TemplatesV1_CreateFromStarter",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1CreateFromStarterRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Template"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`limit_reached` `idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "limit_reached",
                  "message": "The workspace has reached a count limit (keys, webhook endpoints…). The message names it."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "templates:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "limit_reached",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "limit_reached"
        ]
      }
    },
    "/api/v1/templates/{id}": {
      "get": {
        "tags": [
          "Templates"
        ],
        "summary": "Retrieve a template",
        "description": "One template: its merge fields, the data columns a job needs, and its revision.\n\nRequired scope: `templates:read`.",
        "operationId": "TemplatesV1_Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The template's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Template"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "templates:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      },
      "patch": {
        "tags": [
          "Templates"
        ],
        "summary": "Rename a template",
        "description": "Changes the name and description; a description left out is cleared. Never touches the\n    design; makes a version.\n\nRequired scope: `templates:write`.",
        "operationId": "TemplatesV1_Rename",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The template's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1RenameTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Template"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`edit_conflict`",
            "content": {
              "application/json": {
                "example": {
                  "code": "edit_conflict",
                  "message": "Someone changed this since you read it. Read it again and reapply your change with the new revision."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "templates:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "edit_conflict",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "edit_conflict"
        ]
      },
      "delete": {
        "tags": [
          "Templates"
        ],
        "summary": "Archive a template",
        "description": "Archives the template: it leaves the list, nothing is erased, and it can be\n    restored. Erasing it for good is done in the app.\n\nRequired scope: `templates:write`.",
        "operationId": "TemplatesV1_Archive",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The template's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": { }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "templates:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/templates/starters": {
      "get": {
        "tags": [
          "Templates"
        ],
        "summary": "List starters",
        "description": "The built-in starters a template can be created from.\n\nRequired scope: `templates:read`.",
        "operationId": "TemplatesV1_Starters",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Results per page.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1PageOfApiV1Starter"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "templates:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/templates/{id}/duplicate": {
      "post": {
        "tags": [
          "Templates"
        ],
        "summary": "Duplicate a template",
        "description": "A copy of a template, named \"… (Copy)\", with a number added if that name is taken.\n    An archived template answers 404.\n\nRequired scope: `templates:write`.",
        "operationId": "TemplatesV1_Duplicate",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The template's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Template"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`limit_reached` `idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "limit_reached",
                  "message": "The workspace has reached a count limit (keys, webhook endpoints…). The message names it."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "templates:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "limit_reached",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "limit_reached"
        ]
      }
    },
    "/api/v1/templates/{id}/restore": {
      "post": {
        "tags": [
          "Templates"
        ],
        "summary": "Restore a template",
        "description": "Brings an archived template back.\n\nRequired scope: `templates:write`.",
        "operationId": "TemplatesV1_Restore",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The template's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Template"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "templates:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/templates/{id}/versions": {
      "get": {
        "tags": [
          "Templates"
        ],
        "summary": "List a template's versions",
        "description": "The last ten versions, newest first. Each change made through the API or the\n    editor keeps the design it replaced.\n\nRequired scope: `templates:read`.",
        "operationId": "TemplatesV1_Versions",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The template's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Results per page.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1PageOfApiV1TemplateVersion"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "templates:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/templates/{id}/versions/{versionId}/restore": {
      "post": {
        "tags": [
          "Templates"
        ],
        "summary": "Restore a version",
        "description": "Puts a version back. The current design becomes a version first.\n\nRequired scope: `templates:write`.",
        "operationId": "TemplatesV1_RestoreVersion",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The template's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "versionId",
            "in": "path",
            "description": "The version's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1RestoreVersionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Template"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`edit_conflict` `idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "edit_conflict",
                  "message": "Someone changed this since you read it. Read it again and reapply your change with the new revision."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "templates:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "edit_conflict",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "edit_conflict"
        ]
      }
    },
    "/api/v1/templates/{id}/sample-file": {
      "get": {
        "tags": [
          "Templates"
        ],
        "summary": "Download a sample data file",
        "description": "A CSV (or `format=xlsx`) with the columns a job needs and no rows.\n\nRequired scope: `templates:read`.",
        "operationId": "TemplatesV1_SampleFile",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The template's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "csv"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": { },
              "text/csv": { },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": { }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "templates:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/templates/{id}/preview": {
      "post": {
        "tags": [
          "Templates"
        ],
        "summary": "Preview a PDF template",
        "description": "A PDF template rendered with sample data. For checking a layout — 10 a minute per\n    key; make real documents with POST /jobs or /documents. Not for email templates, or for\n    imported-PDF templates, which are previewed in the app.\n\nRequired scope: `templates:read`.",
        "operationId": "TemplatesV1_Preview",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The template's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/ApiV1PreviewRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": { },
              "application/pdf": { }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "templates:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/templates/{id}/send-test": {
      "post": {
        "tags": [
          "Templates"
        ],
        "summary": "Send a test email",
        "description": "Sends one copy of an email template to a workspace member or verified recipient.\n\nRequired scope: `templates:write`.",
        "operationId": "TemplatesV1_SendTest",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The template's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1SendTestEmailRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": { }
            }
          },
          "400": {
            "description": "`validation_failed` `recipient_not_verified`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`service_busy` `maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "service_busy",
                  "message": "RowScribe is busy accepting other jobs. Retry after the Retry-After seconds."
                }
              }
            }
          }
        },
        "x-required-scope": "templates:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "recipient_not_verified",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "service_busy",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "recipient_not_verified",
          "service_busy"
        ]
      }
    },
    "/api/v1/templates/{id}/export": {
      "get": {
        "tags": [
          "Templates"
        ],
        "summary": "Export a template",
        "description": "The template as an export file (formatVersion 2): its design, settings, and any\n    uploaded images and source PDF inline, ready to import into another workspace.\n\nRequired scope: `templates:read`.",
        "operationId": "TemplatesV1_Export",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The template's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": { }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "templates:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/templates/import": {
      "post": {
        "tags": [
          "Templates"
        ],
        "summary": "Import a template",
        "description": "Creates a template from an export file (multipart/form-data, field `file`).\n    Every format version RowScribe has written imports; a broken merge tag is refused.\n\nRequired scope: `templates:write`.",
        "operationId": "TemplatesV1_Import",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "$ref": "#/components/schemas/IFormFile"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1Template"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed` `invalid_merge_tag`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`limit_reached` `idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "limit_reached",
                  "message": "The workspace has reached a count limit (keys, webhook endpoints…). The message names it."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "templates:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "invalid_merge_tag",
          "limit_reached",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "invalid_merge_tag",
          "limit_reached"
        ]
      }
    },
    "/api/v1/webhook-endpoints": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "summary": "List webhook endpoints",
        "description": "The workspace's webhook endpoints. Secrets are never included.\n\nRequired scope: `webhooks:read`.",
        "operationId": "WebhookEndpointsV1_List",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Results per page.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1PageOfApiV1WebhookEndpoint"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "webhooks:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      },
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Create a webhook endpoint",
        "description": "Creates an endpoint and returns its signing secret — the only time it's shown.\n\nRequired scope: `webhooks:write`.",
        "operationId": "WebhookEndpointsV1_Create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1WebhookEndpointRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1WebhookEndpointWithSecret"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`limit_reached` `idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "limit_reached",
                  "message": "The workspace has reached a count limit (keys, webhook endpoints…). The message names it."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "webhooks:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "limit_reached",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "limit_reached"
        ]
      }
    },
    "/api/v1/webhook-endpoints/{id}": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Retrieve a webhook endpoint",
        "description": "One webhook endpoint, including whether it is paused and why.\n\nRequired scope: `webhooks:read`.",
        "operationId": "WebhookEndpointsV1_Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The webhook endpoint's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1WebhookEndpoint"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "webhooks:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      },
      "put": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Replace a webhook endpoint",
        "description": "Replaces name, description, URL and headers. A header sent with an empty value keeps\n    its stored value while the URL stays on the same site; leaving headers out removes them\n    all.\n\nRequired scope: `webhooks:write`.",
        "operationId": "WebhookEndpointsV1_Update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The webhook endpoint's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiV1WebhookEndpointRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1WebhookEndpoint"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "webhooks:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      },
      "delete": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Delete a webhook endpoint",
        "description": "Deletes an endpoint no schedule or unfinished job uses.\n\nRequired scope: `webhooks:write`.",
        "operationId": "WebhookEndpointsV1_Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The webhook endpoint's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": { }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`in_use`",
            "content": {
              "application/json": {
                "example": {
                  "code": "in_use",
                  "message": "Something still uses this (a schedule, for example). The message says what."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "webhooks:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "in_use",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [
          "in_use"
        ]
      }
    },
    "/api/v1/webhook-endpoints/{id}/rotate-secret": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Rotate the signing secret",
        "description": "A new signing secret. For 24 hours deliveries are signed with both, so a\n    receiver can switch over.\n\nRequired scope: `webhooks:write`.",
        "operationId": "WebhookEndpointsV1_RotateSecret",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The webhook endpoint's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1WebhookEndpointWithSecret"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "webhooks:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/jobs/{jobId}/webhook-deliveries": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "summary": "List a job's webhook deliveries",
        "description": "Every delivery attempt for a job, newest first.\n\nRequired scope: `jobs:read`.",
        "operationId": "WebhookEndpointsV1_Deliveries",
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "description": "The job's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Results per page.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1PageOfApiV1WebhookDelivery"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/jobs/{jobId}/webhook-deliveries/{deliveryId}/send-again": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Send a delivery again",
        "description": "Sends the job's delivery again now, to the endpoint as it's set up today, with the same\n    webhook-id. At most 10 an hour, automatic retries not counted; refused once the job's documents have expired.\n\nRequired scope: `jobs:write`.",
        "operationId": "WebhookEndpointsV1_SendAgain",
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "description": "The job's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "deliveryId",
            "in": "path",
            "description": "The delivery's id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1WebhookDelivery"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `legal_acceptance_required` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict` `idempotency_in_progress`",
            "content": {
              "application/json": {
                "example": {
                  "code": "idempotency_conflict",
                  "message": "This Idempotency-Key was already used with a different request body."
                }
              }
            }
          },
          "413": {
            "description": "`file_too_large`",
            "content": {
              "application/json": {
                "example": {
                  "code": "file_too_large",
                  "message": "The upload or request body is over the size limit."
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`",
            "content": {
              "application/json": {
                "example": {
                  "code": "unsupported_media_type",
                  "message": "The body's Content-Type isn't one this operation accepts."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`maintenance` `api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "maintenance",
                  "message": "RowScribe is in maintenance mode; changes are paused for a few minutes. Reads still work."
                }
              }
            }
          }
        },
        "x-required-scope": "jobs:write",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "legal_acceptance_required",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "unsupported_media_type",
          "file_too_large",
          "idempotency_conflict",
          "idempotency_in_progress",
          "rate_limited",
          "maintenance",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/workspace/members": {
      "get": {
        "tags": [
          "Workspace"
        ],
        "summary": "List members",
        "description": "The workspace's members and their roles.\n\nRequired scope: `workspace:read`.",
        "operationId": "WorkspaceV1_Members",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Results per page.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1PageOfApiV1Member"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "workspace:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/workspace/connected-accounts": {
      "get": {
        "tags": [
          "Workspace"
        ],
        "summary": "List connected accounts",
        "description": "The key creator's connected Gmail, Outlook and Google accounts. Never their tokens.\n\nRequired scope: `workspace:read`.",
        "operationId": "WorkspaceV1_ConnectedAccounts",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Results per page.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1PageOfApiV1ConnectedAccount"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "workspace:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    },
    "/api/v1/workspace/verified-recipients": {
      "get": {
        "tags": [
          "Workspace"
        ],
        "summary": "List verified recipients",
        "description": "Addresses outside the workspace that may receive email sent from RowScribe's own address,\n    including ones still awaiting confirmation (verified: false), which can't receive it yet.\n\nRequired scope: `workspace:read`.",
        "operationId": "WorkspaceV1_VerifiedRecipients",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Results per page.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1PageOfApiV1VerifiedRecipient"
                }
              }
            }
          },
          "400": {
            "description": "`validation_failed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "validation_failed",
                  "message": "The request was refused; the message says why."
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key` `invalid_api_key` `api_key_revoked` `api_key_expired` `unauthorized`",
            "content": {
              "application/json": {
                "example": {
                  "code": "missing_api_key",
                  "message": "No X-API-Key header was sent."
                }
              }
            }
          },
          "403": {
            "description": "`account_suspended` `email_not_verified` `api_access_disabled` `api_access_not_allowed` `plan_required` `insufficient_scope` `forbidden`",
            "content": {
              "application/json": {
                "example": {
                  "code": "account_suspended",
                  "message": "The account that created the key is suspended."
                }
              }
            }
          },
          "404": {
            "description": "`not_found`",
            "content": {
              "application/json": {
                "example": {
                  "code": "not_found",
                  "message": "No such resource in the key's workspace. Ids from another workspace answer this too."
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`",
            "content": {
              "application/json": {
                "example": {
                  "code": "method_not_allowed",
                  "message": "The route exists but not with this HTTP method."
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`",
            "content": {
              "application/json": {
                "example": {
                  "code": "rate_limited",
                  "message": "Too many requests for this key. Wait for the Retry-After seconds."
                }
              }
            }
          },
          "500": {
            "description": "`internal_error`",
            "content": {
              "application/json": {
                "example": {
                  "code": "internal_error",
                  "message": "Something went wrong on our side. It has been reported."
                }
              }
            }
          },
          "503": {
            "description": "`api_paused`",
            "content": {
              "application/json": {
                "example": {
                  "code": "api_paused",
                  "message": "The API is paused for a short while. Retry later."
                }
              }
            }
          }
        },
        "x-required-scope": "workspace:read",
        "x-error-codes": [
          "missing_api_key",
          "invalid_api_key",
          "api_key_revoked",
          "api_key_expired",
          "unauthorized",
          "account_suspended",
          "email_not_verified",
          "api_access_disabled",
          "api_access_not_allowed",
          "plan_required",
          "insufficient_scope",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "validation_failed",
          "rate_limited",
          "api_paused",
          "internal_error"
        ],
        "x-operation-error-codes": [ ]
      }
    }
  },
  "components": {
    "schemas": {
      "ApiV1Allowance": {
        "required": [
          "documentsIncluded",
          "documentsUsed",
          "documentsRemaining",
          "packDocumentsRemaining",
          "nextPackExpiryAt",
          "periodStart",
          "periodEnd"
        ],
        "type": "object",
        "properties": {
          "documentsIncluded": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "The plan's monthly documents; null when unlimited.",
            "format": "int32"
          },
          "documentsUsed": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Used against the monthly allowance this period.",
            "format": "int32"
          },
          "documentsRemaining": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "packDocumentsRemaining": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Documents left in one-time packs, used after the allowance.",
            "format": "int32"
          },
          "nextPackExpiryAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "periodStart": {
            "type": "string",
            "format": "date-time"
          },
          "periodEnd": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "ApiV1ApproveRunRequest": {
        "type": "object",
        "properties": {
          "holdBlankRows": {
            "type": "boolean",
            "description": "Leave out anyone whose each-run values are still blank and send to the rest. Off,\n            approval is refused while any is blank.",
            "default": true
          }
        }
      },
      "ApiV1ApproveRunResult": {
        "required": [
          "run",
          "sending",
          "held"
        ],
        "type": "object",
        "properties": {
          "run": {
            "description": "The run as it is now: queued, with its job set for the run time (or started, if that has passed).",
            "$ref": "#/components/schemas/ApiV1ScheduleRun"
          },
          "sending": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Documents the run will make.",
            "format": "int32"
          },
          "held": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Rows left out because an each-run value was blank.",
            "format": "int32"
          }
        }
      },
      "ApiV1ConnectedAccount": {
        "required": [
          "id",
          "provider",
          "email",
          "status",
          "canSendEmail",
          "hasSheetsAccess",
          "createdAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "provider": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "connected or needs_reconnect."
          },
          "canSendEmail": {
            "type": "boolean"
          },
          "hasSheetsAccess": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiV1CreateCombinedJobRequest": {
        "required": [
          "emailTemplateId",
          "emailRows",
          "attachmentTemplateId",
          "attachmentRows",
          "delivery"
        ],
        "type": "object",
        "properties": {
          "emailTemplateId": {
            "type": "string",
            "description": "The email template, one email per row.",
            "format": "uuid"
          },
          "emailRows": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "The data for each email."
          },
          "attachmentTemplateId": {
            "type": "string",
            "description": "The PDF template attached to each email.",
            "format": "uuid"
          },
          "attachmentRows": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "The data for each attachment, in the same order as `emailRows`."
          },
          "delivery": {
            "description": "How the emails go out, addressed per row: connected_email, from a mailbox the key's\n            creator connected.",
            "$ref": "#/components/schemas/ApiV1Delivery"
          },
          "scheduledFor": {
            "type": [
              "null",
              "string"
            ],
            "description": "Start at this time (UTC) instead of now.",
            "format": "date-time"
          }
        },
        "description": "Emails from an email template, each with a PDF attachment from a PDF template.\n            Rows are paired by position, so both lists have the same length."
      },
      "ApiV1CreateDatasetRequest": {
        "required": [
          "name",
          "description",
          "columns"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1DatasetColumn"
            },
            "description": "The dataset's columns, in order."
          },
          "rows": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "object"
            },
            "description": "One object per row, keyed by column name. Values may be strings, numbers, booleans or null.\n            Keys that aren't one of the columns are ignored."
          },
          "keyColumns": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            },
            "description": "Optional. Up to three of the columns to use as the row key, such as [\"Email\"]. Needed\n            to update or delete rows by key."
          }
        }
      },
      "ApiV1CreateDocumentRequest": {
        "required": [
          "templateId",
          "data"
        ],
        "type": "object",
        "properties": {
          "templateId": {
            "type": "string",
            "description": "The template to fill.",
            "format": "uuid"
          },
          "data": {
            "type": "object",
            "description": "The one row, keyed by column name."
          },
          "delivery": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Where the document goes. Download when left out, for a PDF template; an email template\n            must name connected_email.",
                "$ref": "#/components/schemas/ApiV1Delivery"
              }
            ]
          },
          "exportOptions": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "PDF options: flatten, password, mergeOutputs. Without `mergeOutputs: true` the\n            download is a ZIP holding the one PDF.",
                "$ref": "#/components/schemas/ApiV1ExportOptions"
              }
            ]
          }
        },
        "description": "One document from one row: a one-row job, answered at once with the job to follow."
      },
      "ApiV1CreateFromStarterRequest": {
        "required": [
          "starterKey"
        ],
        "type": "object",
        "properties": {
          "starterKey": {
            "type": "string",
            "description": "From GET /templates/starters."
          },
          "name": {
            "type": [
              "null",
              "string"
            ],
            "description": "The new template's name; the starter's when left out."
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ApiV1CreateJobRequest": {
        "required": [
          "templateId"
        ],
        "type": "object",
        "properties": {
          "templateId": {
            "type": "string",
            "description": "The PDF or email template to fill.",
            "format": "uuid"
          },
          "rows": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "object"
            },
            "description": "One object per document, keyed by column name. Leave out when `source` is set."
          },
          "source": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Read the rows from a dataset, URL or Google Sheet instead of `rows`.",
                "$ref": "#/components/schemas/ApiV1JobSource"
              }
            ]
          },
          "delivery": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Where the documents go. Download when left out, for a PDF template; an email template\n            must name connected_email.",
                "$ref": "#/components/schemas/ApiV1Delivery"
              }
            ]
          },
          "exportOptions": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "PDF options: flatten, password, one merged file.",
                "$ref": "#/components/schemas/ApiV1ExportOptions"
              }
            ]
          },
          "scheduledFor": {
            "type": [
              "null",
              "string"
            ],
            "description": "Start at this time (UTC) instead of now.",
            "format": "date-time"
          },
          "columnMapping": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "string"
            },
            "description": "Template field → data column, for data whose columns are named differently."
          },
          "timezone": {
            "type": [
              "null",
              "string"
            ],
            "description": "IANA timezone for the date tags in a URL source; UTC when left out."
          }
        },
        "description": "A job: rows in the body, or a ApiV1JobSource. Row values may be strings,\nnumbers, booleans or null; a line-item list is a JSON array. `columnMapping` maps a\ntemplate field to the data column that fills it, for data whose columns are named\ndifferently."
      },
      "ApiV1CreateScheduleRequest": {
        "required": [
          "name",
          "templateId",
          "source"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Shown in the schedules list."
          },
          "templateId": {
            "type": "string",
            "description": "The template each run fills.",
            "format": "uuid"
          },
          "source": {
            "description": "Where each run reads its rows: dataset, url or google_sheet.",
            "$ref": "#/components/schemas/ApiV1JobSource"
          },
          "delivery": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Where each run's documents go. Download when left out.",
                "$ref": "#/components/schemas/ApiV1Delivery"
              }
            ]
          },
          "cron": {
            "type": [
              "null",
              "string"
            ],
            "description": "5-part cron, e.g. \"0 9 * * 1\" for Mondays at 9:00, or Quartz form with seconds. At most once an\n            hour. Leave out for a one-time schedule."
          },
          "timezone": {
            "type": [
              "null",
              "string"
            ],
            "description": "IANA timezone the cron runs in, e.g. America/New_York; UTC when left out."
          },
          "runAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "For a one-time schedule: when it runs.",
            "format": "date-time"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "attachmentTemplateId": {
            "type": [
              "null",
              "string"
            ],
            "description": "With an email template: a PDF template attached to each email.",
            "format": "uuid"
          },
          "exportOptions": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ApiV1ExportOptions"
              }
            ]
          },
          "columnMapping": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "string"
            }
          },
          "skipIfSourceUnchanged": {
            "type": "boolean",
            "description": "Skip a run when the rows are the same as the last run's.",
            "default": false
          },
          "maxRowsPerRun": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "A run with more rows than this fails instead of sending anything.",
            "format": "int32"
          },
          "startsAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "No runs before this time.",
            "format": "date-time"
          },
          "endsAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "No runs after this time.",
            "format": "date-time"
          },
          "requireApproval": {
            "type": "boolean",
            "description": "Each run waits until someone fills in the dataset's each-run values and approves it in\n            the app, which is asked by email ApprovalLeadDays before the run. Needs a dataset source.",
            "default": false
          },
          "approvalLeadDays": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "How many days before each run the approval request goes out, 1 to 14.",
            "format": "int32",
            "default": 3
          },
          "approverUserIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Workspace members asked to approve each run; they get the emails. Left out, the key's\n            creator. A workspace Owner or Admin can approve too."
          },
          "requireAllApprovers": {
            "type": "boolean",
            "description": "Every approver must approve before a run goes out. Off, any one approval sends it.",
            "default": false
          }
        },
        "description": "Either `cron` (with an IANA `timezone`) or `runAtUtc` for a one-time\n            run. A schedule's rows come from a source (dataset, url or google_sheet), read at each run."
      },
      "ApiV1Dataset": {
        "required": [
          "id",
          "name",
          "description",
          "columns",
          "keyColumns",
          "rowCount",
          "revision",
          "usedBySchedules",
          "rows",
          "createdByUserId",
          "createdAt",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1DatasetColumn"
            }
          },
          "keyColumns": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The row key: the columns, up to three, whose values tell rows apart, such as\n            [\"Email\"]. Every row has a value in each and no two rows share them (compared ignoring case and\n            surrounding spaces). Rows are updated and deleted by it. Empty when the dataset has no key."
          },
          "rowCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "revision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "usedBySchedules": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            },
            "description": "The schedules that read the dataset. Filled in lists only."
          },
          "rows": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            },
            "description": "Only GET /datasets/{id} includes them; lists and write responses leave them out."
          },
          "createdByUserId": {
            "type": "string",
            "format": "uuid"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiV1DatasetColumn": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The column name merge tags refer to, e.g. FirstName for {{ FirstName }}."
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "An optional note about the column, up to 500 characters."
          },
          "fillEachRun": {
            "type": [
              "null",
              "string"
            ],
            "description": "For a value that changes every run, such as this month's amount: \"keep_last\" to start\n            each run from the last value, or \"start_blank\" to clear it so last run's can't go out again. Null for a\n            column that stays the same. Not allowed on a key column."
          },
          "isActiveColumn": {
            "type": "boolean",
            "description": "Makes this the dataset's Active column: a row whose value is No (or false, 0, off,\n            paused) is left out of jobs and schedules. Blank counts as active. At most one per dataset.",
            "default": false
          }
        }
      },
      "ApiV1DatasetRowsRequest": {
        "required": [
          "rows",
          "revision"
        ],
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "revision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "The dataset's revision as you read it.",
            "format": "int32"
          }
        },
        "description": "Rows to add to, or put in place of, a dataset's rows. Keys must be the dataset's columns."
      },
      "ApiV1DatasetRowsResult": {
        "required": [
          "datasetId",
          "revision",
          "rowCount",
          "added",
          "updated",
          "deleted",
          "rows"
        ],
        "type": "object",
        "properties": {
          "datasetId": {
            "type": "string",
            "format": "uuid"
          },
          "revision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "The dataset's revision after the write.",
            "format": "int32"
          },
          "rowCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "added": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "updated": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "deleted": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            },
            "description": "The rows this write added or updated, or for a delete the rows removed, as they are now."
          }
        },
        "description": "What a write did to a dataset's rows."
      },
      "ApiV1DeleteDatasetRowsRequest": {
        "required": [
          "keys"
        ],
        "type": "object",
        "properties": {
          "keys": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "One object per row, with a value for each key column, e.g. { \"Email\": \"jane@example.com\" }."
          },
          "revision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Optional, as for adding or updating rows by key.",
            "format": "int32"
          }
        },
        "description": "The rows to delete, each named by its values in the key columns."
      },
      "ApiV1Delivery": {
        "type": "object",
        "properties": {
          "method": {
            "type": "string",
            "description": "download (the default), email, connected_email, webhook or storage. Email templates and\n            combined jobs must use connected_email; anything else, the default included, is refused.",
            "default": "download"
          },
          "to": {
            "type": [
              "null",
              "string"
            ],
            "description": "Recipients, comma-separated. On an email template it must be a column tag such as {{ Email }}.\n            Ignored when `recipientListId` is set."
          },
          "cc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Cc addresses, comma-separated; tags allowed on an email template."
          },
          "subject": {
            "type": [
              "null",
              "string"
            ],
            "description": "The email's subject. Tags allowed. On an email template it overrides the template's\n            subject; for a PDF template it defaults to the template's name."
          },
          "fromName": {
            "type": [
              "null",
              "string"
            ],
            "description": "The sender name shown to recipients. Email templates and combined jobs only."
          },
          "body": {
            "type": [
              "null",
              "string"
            ],
            "description": "The email's text when a PDF template's documents are sent from a connected mailbox. Plain text."
          },
          "recipientListId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Send to every address on this saved list instead of `to`. PDF templates only.",
            "format": "uuid"
          },
          "ccRecipientListId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Cc every address on this saved list instead of `cc`.",
            "format": "uuid"
          },
          "connectedAccountId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Required for connected_email: the Gmail or Outlook mailbox to send from, one the\n            key's creator connected (GET /workspace/connected-accounts).",
            "format": "uuid"
          },
          "endpointId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Required for webhook: one of the workspace's webhook endpoints.",
            "format": "uuid"
          },
          "storageUrl": {
            "type": [
              "null",
              "string"
            ],
            "description": "Required for storage: a pre-signed PUT URL the output is uploaded to. Never returned."
          },
          "fileNamePattern": {
            "type": [
              "null",
              "string"
            ],
            "description": "Names each PDF from its row, e.g. \"Invoice-{{ InvoiceNumber }}\". \".pdf\" is added; a blank value falls back to the template name and row number."
          }
        },
        "description": "Where a job's documents go. `method`: download, email (RowScribe sends the documents),\nconnected_email (sent from a Gmail or Outlook mailbox the key's creator connected), webhook\n(a signed job.completed event to one of the workspace's endpoints) or storage (a pre-signed\nupload URL). An email template, or a combined job, must use connected_email.\nFor an email template, To/Cc/Subject address one email per row and use {{ Column }} tags.\nFor a PDF template, a To with a {{ Column }} tag sends each row its own email from the\nconnected mailbox; a typed address or a recipient list gets one email with all the documents."
      },
      "ApiV1ExportOptions": {
        "type": "object",
        "properties": {
          "flatten": {
            "type": "boolean",
            "description": "Turns fillable form fields into plain content, so the values can't be edited.",
            "default": false
          },
          "password": {
            "type": [
              "null",
              "string"
            ],
            "description": "Encrypts each PDF with this password. Write-only: never returned. On a schedule update,\n            leaving it out keeps the stored password; send `exportOptions: null` to remove it."
          },
          "mergeOutputs": {
            "type": "boolean",
            "description": "One merged PDF instead of a ZIP with one PDF per row.",
            "default": false
          }
        },
        "description": "Options for the PDFs a job makes."
      },
      "ApiV1FailedRow": {
        "required": [
          "row",
          "error",
          "failedAt",
          "data"
        ],
        "type": "object",
        "properties": {
          "row": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "0-based index of the row in the job's data.",
            "format": "int32"
          },
          "error": {
            "type": "string"
          },
          "failedAt": {
            "type": "string",
            "format": "date-time"
          },
          "data": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "ApiV1GoogleSheetSource": {
        "required": [
          "connectedAccountId",
          "spreadsheetId"
        ],
        "type": "object",
        "properties": {
          "connectedAccountId": {
            "type": "string",
            "description": "The Google account, from GET /workspace/connected-accounts.",
            "format": "uuid"
          },
          "spreadsheetId": {
            "type": "string",
            "description": "The id in the sheet's URL, between /d/ and /edit."
          },
          "sheetName": {
            "type": [
              "null",
              "string"
            ],
            "description": "The tab to read; the first when left out."
          },
          "firstRowHeaders": {
            "type": "boolean",
            "description": "The first row names the columns.",
            "default": true
          }
        },
        "description": "A spreadsheet in a Google account the key's creator has connected in the app.\n            Only spreadsheets picked in the app's Google Picker are readable."
      },
      "ApiV1InvalidRecipient": {
        "required": [
          "row",
          "value",
          "reason"
        ],
        "type": "object",
        "properties": {
          "row": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "The spreadsheet line number, with the header as line 1 (so the first data row is 2). With\n            grouped line items, the document's first line.",
            "format": "int32"
          },
          "value": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        }
      },
      "ApiV1Job": {
        "required": [
          "id",
          "status",
          "templateId",
          "templateName",
          "templateType",
          "attachmentTemplateId",
          "origin",
          "apiKeyName",
          "totalRows",
          "processedRows",
          "failedRows",
          "documentsCounted",
          "delivery",
          "createdAt",
          "completedAt",
          "scheduledFor",
          "error",
          "scheduleId",
          "jobsAhead",
          "cancellationRequested",
          "sourceFileName",
          "createdByUserId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "description": "pending, scheduled, processing, completed, failed or cancelled."
          },
          "templateId": {
            "type": "string",
            "format": "uuid"
          },
          "templateName": {
            "type": "string"
          },
          "templateType": {
            "type": "string",
            "description": "pdf or email."
          },
          "attachmentTemplateId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "origin": {
            "type": "string",
            "description": "immediate, scheduled_once, from_schedule or api."
          },
          "apiKeyName": {
            "type": [
              "null",
              "string"
            ],
            "description": "The key that created the job, when an API key did."
          },
          "totalRows": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Documents in the job.",
            "format": "int32"
          },
          "processedRows": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Rows finished so far, including failed ones.",
            "format": "int32"
          },
          "failedRows": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Rows that failed. A failed row is never counted.",
            "format": "int32"
          },
          "documentsCounted": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Documents the job counted, including any covered by document packs.",
            "format": "int32"
          },
          "delivery": {
            "$ref": "#/components/schemas/ApiV1Delivery"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "completedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "scheduledFor": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "error": {
            "type": [
              "null",
              "string"
            ]
          },
          "scheduleId": {
            "type": [
              "null",
              "string"
            ],
            "description": "The schedule that made the job, if one did.",
            "format": "uuid"
          },
          "jobsAhead": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "While waiting: how many jobs start before this one.",
            "format": "int32"
          },
          "cancellationRequested": {
            "type": "boolean"
          },
          "sourceFileName": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdByUserId": {
            "type": "string",
            "format": "uuid"
          },
          "downloadUrl": {
            "type": [
              "null",
              "string"
            ],
            "description": "Where to GET the output with your key once the job has completed: one PDF, or a\n            ZIP. Null until then, and for a job with no file: an email-template job sent from a connected mailbox with no\n            PDF attached, or output deleted under retention."
          }
        }
      },
      "ApiV1JobEvent": {
        "required": [
          "event",
          "data"
        ],
        "type": "object",
        "properties": {
          "event": {
            "type": "string",
            "description": "RowCompleted, JobProgress, JobDone or JobFailed."
          },
          "data": {
            "$ref": "#/components/schemas/JsonElement"
          }
        }
      },
      "ApiV1JobLimits": {
        "required": [
          "maxRowsPerJob",
          "maxActiveJobsPerKey",
          "rateLimits",
          "allowance"
        ],
        "type": "object",
        "properties": {
          "maxRowsPerJob": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "maxActiveJobsPerKey": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Jobs one key may have queued or running at once. Jobs set for a later time\n            don't count.",
            "format": "int32"
          },
          "rateLimits": {
            "$ref": "#/components/schemas/ApiV1RateLimits"
          },
          "allowance": {
            "$ref": "#/components/schemas/ApiV1Allowance"
          }
        }
      },
      "ApiV1JobSource": {
        "required": [
          "type"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "dataset, url or google_sheet. Fill in the matching field."
          },
          "datasetId": {
            "type": [
              "null",
              "string"
            ],
            "description": "For dataset: the stored dataset to read.",
            "format": "uuid"
          },
          "url": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "For url: where to fetch the rows.",
                "$ref": "#/components/schemas/ApiV1UrlSource"
              }
            ]
          },
          "googleSheet": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "For google_sheet: which spreadsheet and tab.",
                "$ref": "#/components/schemas/ApiV1GoogleSheetSource"
              }
            ]
          }
        },
        "description": "Where rows come from instead of the request body. `type`: dataset, url or google_sheet."
      },
      "ApiV1JobSummary": {
        "required": [
          "id",
          "status",
          "templateName",
          "templateType",
          "deliveryMethod",
          "origin",
          "apiKeyName",
          "totalRows",
          "processedRows",
          "failedRows",
          "createdAt",
          "completedAt",
          "scheduledFor",
          "scheduleId",
          "outputsExpired",
          "createdByUserId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string"
          },
          "templateName": {
            "type": "string"
          },
          "templateType": {
            "type": "string"
          },
          "deliveryMethod": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "apiKeyName": {
            "type": [
              "null",
              "string"
            ]
          },
          "totalRows": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "processedRows": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "failedRows": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "completedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "scheduledFor": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "scheduleId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "outputsExpired": {
            "type": "boolean"
          },
          "createdByUserId": {
            "type": "string",
            "format": "uuid"
          }
        }
      },
      "ApiV1JobValidation": {
        "required": [
          "valid",
          "rows",
          "sourceLines",
          "documentsRequired",
          "documentsRemaining",
          "packDocumentsForThisJob",
          "hasSufficientCapacity",
          "errors",
          "warnings",
          "invalidRecipients"
        ],
        "type": "object",
        "properties": {
          "valid": {
            "type": "boolean"
          },
          "rows": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Documents the job would make (after line items are grouped).",
            "format": "int32"
          },
          "sourceLines": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Lines in the data, when line items were grouped into documents.",
            "format": "int32"
          },
          "documentsRequired": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "documentsRemaining": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "packDocumentsForThisJob": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "hasSufficientCapacity": {
            "type": "boolean"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "invalidRecipients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1InvalidRecipient"
            }
          }
        },
        "description": "A dry run: what the job would cost and what's wrong with it. Nothing is created."
      },
      "ApiV1Me": {
        "required": [
          "workspace",
          "user",
          "key",
          "allowance"
        ],
        "type": "object",
        "properties": {
          "workspace": {
            "$ref": "#/components/schemas/ApiV1MeWorkspace"
          },
          "user": {
            "$ref": "#/components/schemas/ApiV1MeUser"
          },
          "key": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "The key making the request; null for a signed-in browser session.",
                "$ref": "#/components/schemas/ApiV1MeKey"
              }
            ]
          },
          "allowance": {
            "$ref": "#/components/schemas/ApiV1Allowance"
          }
        }
      },
      "ApiV1MeKey": {
        "required": [
          "id",
          "name",
          "prefix",
          "scopes",
          "expiresAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "prefix": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "What this key may do."
          },
          "expiresAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "ApiV1Member": {
        "required": [
          "userId",
          "name",
          "email",
          "role",
          "joinedAt"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "joinedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiV1MeUser": {
        "required": [
          "id",
          "name",
          "email",
          "role"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "description": "The key creator's role in the workspace: owner, admin or member."
          }
        }
      },
      "ApiV1MeWorkspace": {
        "required": [
          "id",
          "name",
          "plan"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "plan": {
            "type": "string"
          }
        }
      },
      "ApiV1PageOfApiV1ConnectedAccount": {
        "required": [
          "data",
          "page",
          "pageSize",
          "total"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1ConnectedAccount"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Every list: one page of results and where it sits."
      },
      "ApiV1PageOfApiV1Dataset": {
        "required": [
          "data",
          "page",
          "pageSize",
          "total"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1Dataset"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Every list: one page of results and where it sits."
      },
      "ApiV1PageOfApiV1FailedRow": {
        "required": [
          "data",
          "page",
          "pageSize",
          "total"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1FailedRow"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Every list: one page of results and where it sits."
      },
      "ApiV1PageOfApiV1JobEvent": {
        "required": [
          "data",
          "page",
          "pageSize",
          "total"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1JobEvent"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Every list: one page of results and where it sits."
      },
      "ApiV1PageOfApiV1JobSummary": {
        "required": [
          "data",
          "page",
          "pageSize",
          "total"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1JobSummary"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Every list: one page of results and where it sits."
      },
      "ApiV1PageOfApiV1Member": {
        "required": [
          "data",
          "page",
          "pageSize",
          "total"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1Member"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Every list: one page of results and where it sits."
      },
      "ApiV1PageOfApiV1RecipientList": {
        "required": [
          "data",
          "page",
          "pageSize",
          "total"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1RecipientList"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Every list: one page of results and where it sits."
      },
      "ApiV1PageOfApiV1ScheduleRun": {
        "required": [
          "data",
          "page",
          "pageSize",
          "total"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1ScheduleRun"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Every list: one page of results and where it sits."
      },
      "ApiV1PageOfApiV1ScheduleSummary": {
        "required": [
          "data",
          "page",
          "pageSize",
          "total"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1ScheduleSummary"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Every list: one page of results and where it sits."
      },
      "ApiV1PageOfApiV1Starter": {
        "required": [
          "data",
          "page",
          "pageSize",
          "total"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1Starter"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Every list: one page of results and where it sits."
      },
      "ApiV1PageOfApiV1TemplateSummary": {
        "required": [
          "data",
          "page",
          "pageSize",
          "total"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1TemplateSummary"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Every list: one page of results and where it sits."
      },
      "ApiV1PageOfApiV1TemplateVersion": {
        "required": [
          "data",
          "page",
          "pageSize",
          "total"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1TemplateVersion"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Every list: one page of results and where it sits."
      },
      "ApiV1PageOfApiV1VerifiedRecipient": {
        "required": [
          "data",
          "page",
          "pageSize",
          "total"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1VerifiedRecipient"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Every list: one page of results and where it sits."
      },
      "ApiV1PageOfApiV1WebhookDelivery": {
        "required": [
          "data",
          "page",
          "pageSize",
          "total"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1WebhookDelivery"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Every list: one page of results and where it sits."
      },
      "ApiV1PageOfApiV1WebhookEndpoint": {
        "required": [
          "data",
          "page",
          "pageSize",
          "total"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1WebhookEndpoint"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Every list: one page of results and where it sits."
      },
      "ApiV1PreviewRequest": {
        "type": "object",
        "properties": {
          "sampleData": {
            "type": [
              "null",
              "object"
            ],
            "description": "Values for the merge fields. Left out or empty, every tag shows its own name."
          }
        }
      },
      "ApiV1RateLimits": {
        "required": [
          "requests",
          "previews",
          "documents"
        ],
        "type": "object",
        "properties": {
          "requests": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "previews": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "documents": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Requests a minute, per key."
      },
      "ApiV1RecipientList": {
        "required": [
          "id",
          "name",
          "description",
          "emailCount",
          "emails",
          "createdByUserId",
          "createdAt",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "emailCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "emails": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            },
            "description": "The addresses, lowercased. Left out of lists."
          },
          "createdByUserId": {
            "type": "string",
            "format": "uuid"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiV1RecipientListRequest": {
        "required": [
          "name",
          "description",
          "emails"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "emails": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The addresses. Invalid ones are refused with the reason; duplicates are dropped."
          }
        },
        "description": "Addresses are checked (syntax and a mail server for the domain) and de-duplicated.\n            A refused list answers 400 with every rejected address and its reason in `details.rejected`."
      },
      "ApiV1RenameTemplateRequest": {
        "required": [
          "name",
          "description",
          "revision"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Replaces the description; null or left out clears it."
          },
          "revision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "The template's revision as you read it.",
            "format": "int32"
          }
        }
      },
      "ApiV1RestoreVersionRequest": {
        "required": [
          "revision"
        ],
        "type": "object",
        "properties": {
          "revision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "The template's current revision as you read it.",
            "format": "int32"
          }
        }
      },
      "ApiV1Schedule": {
        "required": [
          "id",
          "name",
          "description",
          "templateId",
          "templateName",
          "attachmentTemplateId",
          "cron",
          "timezone",
          "summary",
          "nextRunsUtc",
          "enabled",
          "oneTime",
          "runAtUtc",
          "startsAtUtc",
          "endsAtUtc",
          "source",
          "delivery",
          "exportOptions",
          "skipIfSourceUnchanged",
          "maxRowsPerRun",
          "lastRunAt",
          "lastRunStatus",
          "lastJobId",
          "consecutiveFailures",
          "revision",
          "createdByUserId",
          "createdAt",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "templateId": {
            "type": "string",
            "format": "uuid"
          },
          "templateName": {
            "type": "string"
          },
          "attachmentTemplateId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "cron": {
            "type": [
              "null",
              "string"
            ],
            "description": "5-part (m h dom mon dow) or Quartz (with seconds); null for a one-time schedule."
          },
          "timezone": {
            "type": "string"
          },
          "summary": {
            "type": "string",
            "description": "The schedule in words, e.g. \"Every Monday at 9:00 AM — Eastern Time\"."
          },
          "nextRunsUtc": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "date-time"
            },
            "description": "The next three run times, within the start and end dates. Empty while disabled; at most\n            one for a one-time schedule."
          },
          "enabled": {
            "type": "boolean"
          },
          "oneTime": {
            "type": "boolean"
          },
          "runAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "startsAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "endsAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "source": {
            "$ref": "#/components/schemas/ApiV1JobSource"
          },
          "delivery": {
            "$ref": "#/components/schemas/ApiV1Delivery"
          },
          "exportOptions": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ApiV1ExportOptions"
              }
            ]
          },
          "skipIfSourceUnchanged": {
            "type": "boolean"
          },
          "maxRowsPerRun": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "lastRunAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lastRunStatus": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastJobId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "consecutiveFailures": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "revision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "createdByUserId": {
            "type": "string",
            "format": "uuid"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "requireApproval": {
            "type": "boolean",
            "default": false
          },
          "approvalLeadDays": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 3
          },
          "approverUserIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "requireAllApprovers": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "ApiV1ScheduleRun": {
        "required": [
          "id",
          "startedAt",
          "completedAt",
          "status",
          "jobId",
          "rows",
          "error"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Empty in the answer to Run now, which only queues the run; GET /schedules/{id}/runs has it.",
            "format": "uuid"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time"
          },
          "completedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "description": "resolving, queued, running, completed, failed, skipped, or awaiting_approval for a schedule that\n            asks for approval before each run."
          },
          "jobId": {
            "type": [
              "null",
              "string"
            ],
            "description": "The job the run made. Null when it made none, or when the key's owner is a Member\n            who can't see that job: someone else's, when their permission set doesn't include View all jobs.",
            "format": "uuid"
          },
          "rows": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "error": {
            "type": [
              "null",
              "string"
            ]
          },
          "dueAt": {
            "type": [
              "null",
              "string"
            ],
            "description": "For a schedule that asks for approval: the run time this run is for.",
            "format": "date-time"
          }
        }
      },
      "ApiV1ScheduleSummary": {
        "required": [
          "id",
          "name",
          "templateId",
          "templateName",
          "cron",
          "timezone",
          "summary",
          "enabled",
          "oneTime",
          "runAtUtc",
          "deliveryMethod",
          "lastRunAt",
          "nextRunAt",
          "lastRunStatus",
          "consecutiveFailures",
          "createdByUserId",
          "createdAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "templateId": {
            "type": "string",
            "format": "uuid"
          },
          "templateName": {
            "type": "string"
          },
          "cron": {
            "type": [
              "null",
              "string"
            ]
          },
          "timezone": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "oneTime": {
            "type": "boolean"
          },
          "runAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "deliveryMethod": {
            "type": "string"
          },
          "lastRunAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "nextRunAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lastRunStatus": {
            "type": [
              "null",
              "string"
            ]
          },
          "consecutiveFailures": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "createdByUserId": {
            "type": "string",
            "format": "uuid"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiV1SendTestEmailRequest": {
        "required": [
          "to"
        ],
        "type": "object",
        "properties": {
          "to": {
            "type": "string",
            "description": "A workspace member or a verified recipient."
          },
          "sampleData": {
            "type": [
              "null",
              "object"
            ]
          }
        }
      },
      "ApiV1Starter": {
        "required": [
          "key",
          "name",
          "description",
          "type",
          "orientation"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "type": {
            "type": "string"
          },
          "orientation": {
            "type": "string"
          }
        }
      },
      "ApiV1Template": {
        "required": [
          "id",
          "name",
          "description",
          "type",
          "orientation",
          "mergeFields",
          "dataColumns",
          "revision",
          "importedPdf",
          "createdByUserId",
          "createdAt",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "type": {
            "type": "string"
          },
          "orientation": {
            "type": "string"
          },
          "mergeFields": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The {{ tags }} the design uses."
          },
          "dataColumns": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The columns a job's data needs — the merge fields, with a grouped\n            line-item list swapped for its item columns."
          },
          "revision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Send it back when you rename the template or restore a version; a stale one answers\n            409 edit_conflict.",
            "format": "int32"
          },
          "importedPdf": {
            "type": "boolean"
          },
          "createdByUserId": {
            "type": "string",
            "format": "uuid"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "A template's metadata. The design itself is never part of the API: build and edit\n            it in the editor, move it between workspaces with the export file."
      },
      "ApiV1TemplateSummary": {
        "required": [
          "id",
          "name",
          "description",
          "type",
          "mergeFieldCount",
          "archived",
          "createdByUserId",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "type": {
            "type": "string"
          },
          "mergeFieldCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Null for an archived template.",
            "format": "int32"
          },
          "archived": {
            "type": "boolean"
          },
          "createdByUserId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Null for an archived template.",
            "format": "uuid"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiV1TemplateVersion": {
        "required": [
          "id",
          "version",
          "name",
          "description",
          "createdAt",
          "editedBySupport",
          "changedByApiKey"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "version": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "editedBySupport": {
            "type": "boolean"
          },
          "changedByApiKey": {
            "type": [
              "null",
              "string"
            ],
            "description": "The key whose change replaced this version, when it came\n            through the API."
          }
        }
      },
      "ApiV1UpdateDatasetRequest": {
        "required": [
          "name",
          "description",
          "columns",
          "rows",
          "revision"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV1DatasetColumn"
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Every row; they replace the existing ones."
          },
          "revision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "The dataset's revision as you read it.",
            "format": "int32"
          },
          "keyColumns": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            },
            "description": "Up to three of the columns to use as the row key. Left out, the dataset has none."
          }
        }
      },
      "ApiV1UpdateScheduleRequest": {
        "required": [
          "name",
          "source",
          "revision"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Shown in the schedules list."
          },
          "source": {
            "description": "Where each run reads its rows: dataset, url or google_sheet.",
            "$ref": "#/components/schemas/ApiV1JobSource"
          },
          "revision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "The schedule's revision as you read it.",
            "format": "int32"
          },
          "delivery": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Where each run's documents go. Download when left out.",
                "$ref": "#/components/schemas/ApiV1Delivery"
              }
            ]
          },
          "cron": {
            "type": [
              "null",
              "string"
            ],
            "description": "5-part cron, e.g. \"0 9 * * 1\" for Mondays at 9:00, or Quartz form with seconds. At most once an\n            hour. Leave out for a one-time schedule."
          },
          "timezone": {
            "type": [
              "null",
              "string"
            ],
            "description": "IANA timezone the cron runs in, e.g. America/New_York; UTC when left out."
          },
          "runAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "For a one-time schedule: when it runs.",
            "format": "date-time"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "attachmentTemplateId": {
            "type": [
              "null",
              "string"
            ],
            "description": "With an email template: a PDF template attached to each email.",
            "format": "uuid"
          },
          "exportOptions": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ApiV1ExportOptions"
              }
            ]
          },
          "columnMapping": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "string"
            }
          },
          "skipIfSourceUnchanged": {
            "type": "boolean",
            "description": "Skip a run when the rows are the same as the last run's.",
            "default": false
          },
          "maxRowsPerRun": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "A run with more rows than this fails instead of sending anything.",
            "format": "int32"
          },
          "startsAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "No runs before this time.",
            "format": "date-time"
          },
          "endsAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "No runs after this time.",
            "format": "date-time"
          },
          "requireApproval": {
            "type": "boolean",
            "description": "Each run waits until someone fills in the dataset's each-run values and approves it in\n            the app, which is asked by email ApprovalLeadDays before the run. Needs a dataset source.",
            "default": false
          },
          "approvalLeadDays": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "How many days before each run the approval request goes out, 1 to 14.",
            "format": "int32",
            "default": 3
          },
          "approverUserIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Workspace members asked to approve each run; they get the emails. Left out, the key's\n            creator. A workspace Owner or Admin can approve too."
          },
          "requireAllApprovers": {
            "type": "boolean",
            "default": false
          }
        },
        "description": "The whole schedule, as on create, with the `revision` you read. Enabled isn't\n            part of an update: use enable and disable. The template can't be changed. Reads leave out\n            credentials, so a storageUrl, a source's bearerToken and its header values must be sent again;\n            an echoed read would clear them."
      },
      "ApiV1UpsertDatasetRowsRequest": {
        "required": [
          "rows"
        ],
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "revision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Optional. The dataset's revision as you read it: sent, the change is refused if\n            anything changed the dataset since. Left out, it's applied to the dataset as it is, so changes made\n            to other rows at the same time are kept.",
            "format": "int32"
          }
        },
        "description": "Rows to add or update by the dataset's row key. Keys must be the dataset's columns, and every\n            row must have a value in each key column."
      },
      "ApiV1UrlSource": {
        "required": [
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "An http or https URL. On a schedule it may use {{ run_date:yyyy-MM-dd }}, {{ previous_month }},\n            {{ year }}, {{ month }} and {{ day }}, worked out in the schedule's timezone."
          },
          "format": {
            "type": "string",
            "description": "csv, json or xlsx.",
            "default": "csv"
          },
          "jsonRowsPath": {
            "type": [
              "null",
              "string"
            ],
            "description": "For json: the dotted path to the array of rows, e.g. \"data.items\". The top level when left out."
          },
          "sheetName": {
            "type": [
              "null",
              "string"
            ],
            "description": "For xlsx: the worksheet to read; the first when left out."
          },
          "headers": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "string"
            },
            "description": "Extra request headers. Their values are never returned."
          },
          "bearerToken": {
            "type": [
              "null",
              "string"
            ],
            "description": "Write-only: sent as Authorization: Bearer, never returned. On a schedule update,\n            leaving it out removes the stored token."
          },
          "timeoutSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "How long to wait for the URL, 1 to 120 seconds; values outside are clamped.",
            "format": "int32",
            "default": 30
          }
        },
        "description": "Rows fetched from a URL when the job (or each schedule run) starts."
      },
      "ApiV1VerifiedRecipient": {
        "required": [
          "id",
          "email",
          "verified",
          "verifiedAt",
          "createdAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          },
          "verifiedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiV1WebhookDelivery": {
        "required": [
          "id",
          "jobId",
          "messageId",
          "url",
          "httpStatus",
          "status",
          "attempt",
          "error",
          "createdAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "messageId": {
            "type": "string",
            "description": "The webhook-id header: the same on every attempt for a job."
          },
          "url": {
            "type": "string"
          },
          "httpStatus": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "status": {
            "type": "string",
            "description": "pending, delivered or failed."
          },
          "attempt": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "error": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiV1WebhookEndpoint": {
        "required": [
          "id",
          "name",
          "description",
          "url",
          "headerNames",
          "paused",
          "previousSecretExpiresAt",
          "createdByUserId",
          "createdAt",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "url": {
            "type": "string"
          },
          "headerNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Custom headers sent with each delivery; their values are never returned."
          },
          "paused": {
            "type": "boolean",
            "description": "Paused by RowScribe support: nothing is sent until it's resumed."
          },
          "previousSecretExpiresAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "createdByUserId": {
            "type": "string",
            "format": "uuid"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "pausedReason": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ApiV1WebhookEndpointRequest": {
        "required": [
          "name",
          "description",
          "url"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "url": {
            "type": "string",
            "description": "An http or https address on the public internet; private and local addresses are refused."
          },
          "headers": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "string"
            },
            "description": "Sent with every delivery, e.g. an Authorization header. Stored encrypted; values are never returned."
          }
        }
      },
      "ApiV1WebhookEndpointWithSecret": {
        "required": [
          "endpoint",
          "signingSecret"
        ],
        "type": "object",
        "properties": {
          "endpoint": {
            "$ref": "#/components/schemas/ApiV1WebhookEndpoint"
          },
          "signingSecret": {
            "type": "string",
            "description": "whsec_… — verify each delivery's webhook-signature with it."
          }
        },
        "description": "An endpoint with its signing secret, returned once: on create and on rotate."
      },
      "IFormFile": {
        "type": "string",
        "format": "binary"
      },
      "JsonElement": { }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "description": "Your API key, rsc_…",
        "name": "X-API-Key",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "ApiKey": [ ]
    }
  ],
  "tags": [
    {
      "name": "Account",
      "description": "Check a key: its scopes, its workspace and plan, and the documents left this period."
    },
    {
      "name": "Jobs",
      "description": "Generate documents in bulk from rows, a stored dataset, a URL, a Google Sheet or an uploaded file."
    },
    {
      "name": "Documents",
      "description": "Queue one document from one row, and follow its job like any other."
    },
    {
      "name": "Templates",
      "description": "List, read, export, import, preview and version your PDF and email templates."
    },
    {
      "name": "Datasets",
      "description": "Stored data a job or schedule can run from: add, update or delete rows by their key columns, or replace them all."
    },
    {
      "name": "Schedules",
      "description": "Recurring or one-time jobs: a template, a data source, a time and a delivery."
    },
    {
      "name": "Recipient lists",
      "description": "Saved lists of email addresses for To and Cc."
    },
    {
      "name": "Webhooks",
      "description": "Addresses RowScribe posts signed job.completed events to, and their delivery history."
    },
    {
      "name": "Workspace",
      "description": "Read-only: the workspace's members and verified recipients, and the accounts the key's creator has connected."
    }
  ]
}