> ## 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.

# Validar un manifest

> Valida por completo un manifest sin escribir nada. Devuelve incidencias y una tarjeta de vista previa.

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

Autenticación: se requiere API key (`Authorization: Bearer <API Key>`).

Etapa uno de la publicación en dos fases: validación completa de estructura, reglas cruzadas entre bloques, reglas de self-publish y entrega. No escribe nada. Preferible al sugar one-shot deprecado.

## Solicitud

### Cuerpo de la solicitud

<ParamField body="manifest" type="string" required>
  Texto fuente del manifest como cadena YAML o JSON.
</ParamField>

<ParamField body="files" type="object">
  Archivos adjuntos. Claves = rutas relativas; valores = texto (tipo código o cuando hay README).
</ParamField>

<ParamField body="secrets" type="object">
  Mapa de nombre de secreto a texto plano. El endpoint de validación no los guarda.
</ParamField>

### Ejemplo de solicitud

```bash theme={null}
curl -X POST \
  -H "Authorization: Bearer $OCTOPARSE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"manifest": "spec_version: \"0.2\"\nidentity:\n  app_name: reviews-query\n  name: Product review lookup\n  …"}' \
  "https://api-datahub.octoparse.com/v1/data-apps/validate"
```

## Respuesta

### 200 correcto

```json theme={null}
{
  "data": {
    "valid": false,
    "errors": [
      {
        "path": "$",
        "message": "'identity' is a required property"
      },
      {
        "path": "$",
        "message": "'input' is a required property"
      },
      "…"
    ],
    "card": null
  }
}
```

La carga útil va envuelta en `data`. Campos:

<ResponseField name="valid" type="boolean" required>
  Si la validación pasó.
</ResponseField>

<ResponseField name="errors" type="object[]">
  Lista de incidencias. Cada ítem tiene `path` (ruta JSON) y `message`.

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

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

<ResponseField name="card" type="object">
  Tarjeta de vista previa si es válida; `null` si no.
</ResponseField>

### Errores

| HTTP | `code`         | `category`  | Descripción                  |
| ---- | -------------- | ----------- | ---------------------------- |
| 401  | `unauthorized` | `forbidden` | API key ausente o no válida. |

Las respuestas de error usan `{"error": {code, category, message, retryable}}`. Véase <a href="/docs/es/datahub/api/reference/introduction#errors">Errores</a>.

## Bibliotecas cliente

Los SDK de Python y JavaScript aún no encapsulan este endpoint. Llame a REST directamente.
