{
  "createSend": {
    "post": {
      "operationId": "createSend",
      "tags": ["Sends"],
      "summary": "Submit a URL or text for parsing",
      "description": "Requires sends:create or equivalent write access. The receipt contains the pending send record. Read that record to check parse status and results, which reference canonical record IDs. A retry references an extraction-failed send created by this connection. Supply a new idempotency key and reuse it when repeating that retry request. A committed retry replays its receipt without looking up the earlier failed send. The combined URL or text and optional note must fit in the retry state budget.",
      "parameters": [
        {"$ref": "../components/parameters.yaml#/UuidIdempotencyKey"}
      ],
      "requestBody": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {"$ref": "../components/schemas.yaml#/SendInput"}
          }
        }
      },
      "x-route-error-codes": {"400": ["invalid_idempotency_key"], "403": ["namespace_denied"], "404": ["not_found"], "409": ["pigeon_owner_mapping_required", "reuse_check_required", "send_not_retryable", "source_check_failed", "source_identity_conflict", "source_withdrawn"], "413": ["body_too_large", "send_input_too_large", "reference_work_exceeded"], "422": ["body_invalid", "dangling_reference", "idempotency_key_reused", "invalid_body", "invalid_request", "invalid_url", "unsupported_schema"], "503": ["ledger_unavailable"]},
      "responses": {
        "200": {
          "description": "Successful receipt. When fair use is enabled the receipt also includes delayed (boolean) and estimate_seconds (integer or null), including on idempotent replay." ,
          "headers": {
            "request-id": {"$ref": "../components/headers.yaml#/RequestId"},
            "Cache-Control": {"$ref": "../components/headers.yaml#/CacheControl"}
          },
          "content": {"application/json": {"schema": {"$ref": "../components/schemas.yaml#/SendReceipt"}}}
        },
        "400": {
          "description": "The request could not be parsed or contains an invalid parameter.",
          "headers": {"request-id": {"$ref": "../components/headers.yaml#/RequestId"}, "Cache-Control": {"$ref": "../components/headers.yaml#/CacheControl"}},
          "content": {"application/problem+json": {"schema": {"$ref": "../components/schemas.yaml#/Problem"}}},
          "x-error-codes": ["invalid_idempotency_key", "invalid_json"]
        },
        "401": {
          "description": "The credential is missing, invalid or tied to a superseded grant.",
          "headers": {"request-id": {"$ref": "../components/headers.yaml#/RequestId"}, "Cache-Control": {"$ref": "../components/headers.yaml#/CacheControl"}},
          "content": {"application/problem+json": {"schema": {"$ref": "../components/schemas.yaml#/Problem"}}},
          "x-error-codes": ["episode_superseded", "unauthorized"]
        },
        "403": {
          "description": "The active credential or configuration does not permit this action.",
          "headers": {"request-id": {"$ref": "../components/headers.yaml#/RequestId"}, "Cache-Control": {"$ref": "../components/headers.yaml#/CacheControl"}},
          "content": {"application/problem+json": {"schema": {"$ref": "../components/schemas.yaml#/Problem"}}},
          "x-error-codes": ["connection_disconnected", "connection_paused", "connection_required", "namespace_denied", "pro_required", "sapphire_account_required", "scope_denied"]
        },
        "404": {
          "description": "The send referenced for retry could not be found.",
          "headers": {"request-id": {"$ref": "../components/headers.yaml#/RequestId"}, "Cache-Control": {"$ref": "../components/headers.yaml#/CacheControl"}},
          "content": {"application/problem+json": {"schema": {"$ref": "../components/schemas.yaml#/Problem"}}},
          "x-error-codes": ["not_found"]
        },
        "409": {
          "description": "The request conflicts with the current state.",
          "headers": {"request-id": {"$ref": "../components/headers.yaml#/RequestId"}, "Cache-Control": {"$ref": "../components/headers.yaml#/CacheControl"}},
          "content": {"application/problem+json": {"schema": {"$ref": "../components/schemas.yaml#/Problem"}}},
          "x-error-codes": ["pigeon_data_deleting", "pigeon_owner_mapping_required", "reuse_check_required", "send_not_retryable", "source_check_failed", "source_identity_conflict", "source_withdrawn"]
        },
        "410": {
          "description": "The account, snapshot, cursor or history is no longer available.",
          "headers": {"request-id": {"$ref": "../components/headers.yaml#/RequestId"}, "Cache-Control": {"$ref": "../components/headers.yaml#/CacheControl"}},
          "content": {"application/problem+json": {"schema": {"$ref": "../components/schemas.yaml#/Problem"}}},
          "x-error-codes": ["account_deleted"]
        },
        "413": {
          "description": "The request or its resulting work exceeds a size limit.",
          "headers": {"request-id": {"$ref": "../components/headers.yaml#/RequestId"}, "Cache-Control": {"$ref": "../components/headers.yaml#/CacheControl"}},
          "content": {"application/problem+json": {"schema": {"$ref": "../components/schemas.yaml#/Problem"}}},
          "x-error-codes": ["body_too_large", "operation_too_large", "reference_work_exceeded", "response_too_large", "send_input_too_large"]
        },
        "422": {
          "description": "The request violates a protocol or data rule.",
          "headers": {"request-id": {"$ref": "../components/headers.yaml#/RequestId"}, "Cache-Control": {"$ref": "../components/headers.yaml#/CacheControl"}},
          "content": {"application/problem+json": {"schema": {"$ref": "../components/schemas.yaml#/Problem"}}},
          "x-error-codes": ["body_invalid", "dangling_reference", "idempotency_key_reused", "invalid_body", "invalid_request", "invalid_url", "unsupported_schema"]
        },
        "429": {
          "description": "The sponsoring account has reached its waiting-job cap or explicit retry limit.",
          "headers": {"request-id": {"$ref": "../components/headers.yaml#/RequestId"}, "Cache-Control": {"$ref": "../components/headers.yaml#/CacheControl"}, "Retry-After": {"$ref": "../components/headers.yaml#/RetryAfter"}},
          "content": {"application/problem+json": {"schema": {"$ref": "../components/schemas.yaml#/Problem"}}},
          "x-error-codes": ["rate_limited"]
        },
        "503": {
          "description": "The hub or an operation dependency is unavailable.",
          "headers": {"request-id": {"$ref": "../components/headers.yaml#/RequestId"}, "Cache-Control": {"$ref": "../components/headers.yaml#/CacheControl"}, "Retry-After": {"$ref": "../components/headers.yaml#/RetryAfter"}},
          "content": {"application/problem+json": {"schema": {"$ref": "../components/schemas.yaml#/Problem"}}},
          "x-error-codes": ["hub_not_ready", "identity_unavailable", "internal_error", "ledger_unavailable"]
        }
      }
    }
  }
}
