Create Parser
Reference for the POST /v1/parsers endpoint.
POST /v1/parsers
Creates a new parser template. If fields is omitted or empty, a blank parser container is created.
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | ✅ | Unique name for the parser (max 100 chars). |
description | string | ❌ | Human-readable description. |
result_mode | string | ❌ | one_per_file (default) or one_per_page. |
fields | array | ❌ | List of field definitions containing name (required), type (optional), and description (optional). |
Response 201 Created
Common Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
400 | INVALID_PAYLOAD | Request body validation failed or malformed JSON. |
401 | UNAUTHORIZED | Invalid or missing API key. |
409 | CONFLICT | A parser with this name already exists. |