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

# Upload and process a document

> Creates a document from either a file upload or URL. For file uploads, use multipart/form-data. For URLs, use application/json with a URL field.

## Upload and process a document

Creates a document from either a file upload or URL. For file uploads, use multipart/form-data. For URLs, use application/json with a URL field.

### Response

<ResponseField name="data" type="object">
  The response data for this endpoint.
</ResponseField>

<ResponseExample>
  ```json
  {
    "job_status_id": 123,
    "status": "string",
    "error_message": {},
    "document_id": {}
  }
  ```
</ResponseExample>
