parseur.cli¶
Functions¶
|
|
|
Parseur CLI - manage Parseur.com from the command line. |
|
Initialize the CLI with your API token and optional base URL. |
|
List all mailboxes with optional filtering and sorting. |
|
Get details of a mailbox. |
|
Get schema of a mailbox. |
|
List all documents in a mailbox with optional filtering, sorting, and result inclusion. |
|
Get details of a document. |
|
Reprocess a document. |
|
Skip a document. |
|
Copy a document to another mailbox. |
|
Get logs of a document. |
|
Delete a document. |
|
Upload a document file to a mailbox. |
|
Upload all files from a glob path. |
|
Upload text content to a mailbox by email address. |
|
Create a new custom webhook for your Parseur account. |
|
Get details of a webhook. |
|
Delete a registered webhook by its ID. |
|
Enable a webhook for the specified mailbox. |
|
Pause a webhook for the specified mailbox. |
List all registered webhooks. |
|
|
Listen to a Parseur event in real time with a temporary webhook. |
Module Contents¶
- parseur.cli.init(api_key, api_base)[source]¶
Initialize the CLI with your API token and optional base URL.
- parseur.cli.list_mailboxes(search, order_by, descending)[source]¶
List all mailboxes with optional filtering and sorting.
- parseur.cli.list_documents(mailbox_id, search, order_by, descending, received_after, received_before, with_result)[source]¶
List all documents in a mailbox with optional filtering, sorting, and result inclusion.
- parseur.cli.copy_document(document_id, target_mailbox_id)[source]¶
Copy a document to another mailbox.
- parseur.cli.upload_text(recipient, subject, sender, body_html, body_plain)[source]¶
Upload text content to a mailbox by email address.
- parseur.cli.create_webhook(event, target_url, mailbox_id, table_field_id, header, name)[source]¶
Create a new custom webhook for your Parseur account.
- parseur.cli.delete_webhook(webhook_id)[source]¶
Delete a registered webhook by its ID.
This command permanently removes the webhook from your Parseur account.
- parseur.cli.enable_webhook(mailbox_id, webhook_id)[source]¶
Enable a webhook for the specified mailbox.
Activates the webhook by adding it to the mailbox.
- parseur.cli.pause_webhook(mailbox_id, webhook_id)[source]¶
Pause a webhook for the specified mailbox.
Removes the webhook from the mailbox without deleting it.
- parseur.cli.listen(event, mailbox_id, table_field_id, header, name, redirect_url, redirect_port, silent)[source]¶
Listen to a Parseur event in real time with a temporary webhook. Example:
parseur listen –event document.parsed_ok –mailbox-id 12345 parseur listen –event document.processed –mailbox-id 12345 –redirect-url http://localhost –redirect-port 8000