Document Processing

Process Document

Process a document using either a URL or base64-encoded file content.

The request can include:

  • document_type: Type of document to process
  • metadata.url: URL to a remote document
  • metadata.file_bytes: Base64-encoded file content
  • metadata.filename: Original filename (when using file_bytes)
  • metadata.content_type: Content type of the file (when using file_bytes)

Set AI_only=True to skip human review and mark the job as completed once the AI result is available.

post/api/v1/process

Request

  • Base URL: https://api.usesieve.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.usesieve.com/api/v1/process
  • Auth: HTTP bearer

Request body

document_type'pdf' | 'sec' | 'credit_card' | 'lease' | 'earnings_search' | 'website' | 'csv' | 'excel' | 'revenue_segmentation_table_extraction' | 'text_classification' | 'chart_data_extraction' | 'receipt_mapping' | 'pos_mapping' | 'custom_prompt' required
metadataobject nullable
callback_urlstring nullable
notify_on_ai_completionboolean
AI_onlyboolean nullable
expires_atstring date-time nullable
ttl_secondsinteger nullable
extraction_keystring nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.