> ## Documentation Index
> Fetch the complete documentation index at: https://www.octoparse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate a .dataapp package (deprecated)

> Upload a .dataapp zip for validation only. No write. Replaced by the contract path.

<Warning>
  **Deprecated.** The contract path replaces the `.dataapp` package flow: self-check with Assemble a contract folder, then submit through the portal contract import wizard. This endpoint remains for the built-in console and existing tests; removal is scheduled separately.
</Warning>

**`POST`** `https://api-datahub.octoparse.com/v1/data-apps/package`

Authentication: API key required (`Authorization: Bearer <API Key>`).

Upload a raw zip body as a `.dataapp` package → unpack → same validation pipeline; nothing is persisted. Validation only, and unpacked files are echoed back: **after a pass you still must call the one-shot publish endpoint** (two-phase publish is unchanged; upload is not a bypass). The package may include one wrapping directory.

## Request

### Example request

```bash theme={null}
curl -X POST \
  -H "Authorization: Bearer $OCTOPARSE_API_KEY" \
  "https://api-datahub.octoparse.com/v1/data-apps/package"
```

## Response

### 200 success

```json theme={null}
{
  "data": {
    "valid": false,
    "errors": [
      {
        "path": "string",
        "message": "string"
      }
    ],
    "card": {},
    "manifest": "",
    "files": {}
  }
}
```

The payload is wrapped in `data`. Fields:

<ResponseField name="valid" type="boolean" required>
  Whether validation passed.
</ResponseField>

<ResponseField name="errors" type="object[]">
  Issue list.

  <Expandable title="fields">
    <ResponseField name="path" type="string" required>
      —
    </ResponseField>

    <ResponseField name="message" type="string" required>
      —
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="card" type="object">
  Preview card.
</ResponseField>

<ResponseField name="manifest" type="string">
  —
</ResponseField>

<ResponseField name="files" type="object">
  Unpacked filename list.
</ResponseField>

### Errors

| HTTP | `code`              | `category`      | Description                                            |
| ---- | ------------------- | --------------- | ------------------------------------------------------ |
| 401  | `unauthorized`      | `forbidden`     | Missing or invalid API key.                            |
| 422  | `invalid-manifest`  | `invalid_input` | Manifest failed validation; `issues[]` lists problems. |
| 413  | `payload-too-large` | `invalid_input` | Request body exceeds the size limit.                   |

Error responses use `{"error": {code, category, message, retryable}}`. See <a href="/docs/en/datahub/api/reference/introduction#errors">Errors</a>.

## Client libraries

The Python and JavaScript SDKs do not wrap this endpoint yet. Call REST directly.
