> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.emtelligent.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.emtelligent.com/_mcp/server.

# Submit a document for processing

POST https://<your-prep-endpoint>/emtellisplit/v1/submit
Content-Type: application/json

Submit a document, starting a job that will process them.

Reference: https://docs.emtelligent.com/prep/api/jobs/submit-a-document-for-processing

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.
- `x-api-key` header (required) — API keys will be provided by Emtelligent; contact us for key management. Keys will consist of only printable ASCII characters, and leading and trailing whitespace is insignificant.

## Request

### Body (application/json)

This endpoint expects an object.

- `cloud_provider` (enum, required)
  - Allowed values: `s3`, `azure`
- `user_creds` (V1SubmitPostRequestBodyContentApplicationJsonSchemaUserCreds, required) — Credentials the service uses to read your input container and write your output container. These are the cloud provider's own parameter names, `aws_` prefix included, because they are passed straight through to that provider's client. Sending `access_key_id` and `secret_access_key` without the prefix is rejected with `Invalid cred format for s3`.
- `input_object_keys` (V1SubmitPostRequestBodyContentApplicationJsonSchemaInputObjectKeys, required)
- `input_bucket` (string, required) — The name of your cloud container where the input object keys exist
- `output_bucket` (string, required) — The name of your cloud container where the server will write outputs into
- `output_bucket_prefix` (string, optional) — Prefix the server writes this job's output under, as `<output_bucket_prefix>/<job_id>/`. Omit it and the output is written at the root of the container, under `<job_id>/`. Note that the Python SDK does not omit it for you: through 1.1.3 it sends the literal string `unused` unless you pass something, which is why output turns up under an `unused/` folder nobody asked for.

## Response

### 200

Accepted, returning job information.

- `job_id` (string, required) — Unique ID for a Job. Use it to check Job status or cancel a job, and to find this job's output in your container once it has succeeded: the output is written under `<output_bucket_prefix>/<job_id>/`, so the job ID is the whole path only when you submitted no prefix.

## Errors

### 400 Bad Request Error

Invalid request.

- `any`

### 403 Forbidden Error

Not authorized to make this request.

- `error` (string, required)

### 500 Internal Server Error

Internal server error.

- `error` (string, required)

## Types

### V1SubmitPostRequestBodyContentApplicationJsonSchemaUserCreds

Credentials the service uses to read your input container and write your output container. These are the cloud provider's own parameter names, `aws_` prefix included, because they are passed straight through to that provider's client. Sending `access_key_id` and `secret_access_key` without the prefix is rejected with `Invalid cred format for s3`.

- V1SubmitPostRequestBodyContentApplicationJsonSchemaUserCreds0
- V1SubmitPostRequestBodyContentApplicationJsonSchemaUserCreds1

### V1SubmitPostRequestBodyContentApplicationJsonSchemaInputObjectKeys

- `document` (string, required) — The object key of a file that has already been uploaded to your input bucket.

### V1SubmitPostRequestBodyContentApplicationJsonSchemaUserCreds0

- `aws_access_key_id` (string, required)
- `aws_secret_access_key` (string, required)
- `aws_session_token` (string, optional) — Required only when using temporary credentials.

### V1SubmitPostRequestBodyContentApplicationJsonSchemaUserCreds1

- `account_name` (string, required)
- `account_primary_access_key` (string, optional)
- `sas_token` (string, optional)

## Examples

**Request**

```json
{
  "cloud_provider": "s3",
  "user_creds": {
    "aws_access_key_id": "string",
    "aws_secret_access_key": "string"
  },
  "input_object_keys": {
    "document": "subdir/my_document.pdf"
  },
  "input_bucket": "emtellisplit-input",
  "output_bucket": "emtellisplit-output"
}
```

**Response**

```json
{
  "job_id": "2b871be2f8d244d2b5bde184fb317657"
}
```

**SDK Code**

```python
import requests

url = "https://api.example.com/v1/submit"

payload = {
    "cloud_provider": "s3",
    "user_creds": {
        "aws_access_key_id": "string",
        "aws_secret_access_key": "string"
    },
    "input_object_keys": { "document": "subdir/my_document.pdf" },
    "input_bucket": "emtellisplit-input",
    "output_bucket": "emtellisplit-output"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.example.com/v1/submit';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"cloud_provider":"s3","user_creds":{"aws_access_key_id":"string","aws_secret_access_key":"string"},"input_object_keys":{"document":"subdir/my_document.pdf"},"input_bucket":"emtellisplit-input","output_bucket":"emtellisplit-output"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/v1/submit"

	payload := strings.NewReader("{\n  \"cloud_provider\": \"s3\",\n  \"user_creds\": {\n    \"aws_access_key_id\": \"string\",\n    \"aws_secret_access_key\": \"string\"\n  },\n  \"input_object_keys\": {\n    \"document\": \"subdir/my_document.pdf\"\n  },\n  \"input_bucket\": \"emtellisplit-input\",\n  \"output_bucket\": \"emtellisplit-output\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.example.com/v1/submit")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"cloud_provider\": \"s3\",\n  \"user_creds\": {\n    \"aws_access_key_id\": \"string\",\n    \"aws_secret_access_key\": \"string\"\n  },\n  \"input_object_keys\": {\n    \"document\": \"subdir/my_document.pdf\"\n  },\n  \"input_bucket\": \"emtellisplit-input\",\n  \"output_bucket\": \"emtellisplit-output\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.example.com/v1/submit")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"cloud_provider\": \"s3\",\n  \"user_creds\": {\n    \"aws_access_key_id\": \"string\",\n    \"aws_secret_access_key\": \"string\"\n  },\n  \"input_object_keys\": {\n    \"document\": \"subdir/my_document.pdf\"\n  },\n  \"input_bucket\": \"emtellisplit-input\",\n  \"output_bucket\": \"emtellisplit-output\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.example.com/v1/submit', [
  'body' => '{
  "cloud_provider": "s3",
  "user_creds": {
    "aws_access_key_id": "string",
    "aws_secret_access_key": "string"
  },
  "input_object_keys": {
    "document": "subdir/my_document.pdf"
  },
  "input_bucket": "emtellisplit-input",
  "output_bucket": "emtellisplit-output"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.example.com/v1/submit");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"cloud_provider\": \"s3\",\n  \"user_creds\": {\n    \"aws_access_key_id\": \"string\",\n    \"aws_secret_access_key\": \"string\"\n  },\n  \"input_object_keys\": {\n    \"document\": \"subdir/my_document.pdf\"\n  },\n  \"input_bucket\": \"emtellisplit-input\",\n  \"output_bucket\": \"emtellisplit-output\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "cloud_provider": "s3",
  "user_creds": [
    "aws_access_key_id": "string",
    "aws_secret_access_key": "string"
  ],
  "input_object_keys": ["document": "subdir/my_document.pdf"],
  "input_bucket": "emtellisplit-input",
  "output_bucket": "emtellisplit-output"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/v1/submit")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```