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

# Format Document

### Body

<ParamField body="file" type="string" required>
  The file url
</ParamField>

<ParamField body="format" type="enum" required>
  The format to convert the document to. Options are: `text`, `markdown`. More soon.
</ParamField>

### Response

<ResponseField name="id" type="string">
  The unique id of the formatting job.
</ResponseField>

<ResponseField name="createdAt" type="string">
  Date and time when the job was created.
</ResponseField>

<ResponseField name="status" type="string">
  Status of the job.
</ResponseField>

<ResponseField name="pages" type="number">
  Number of pages in the document processed.
</ResponseField>

<ResponseField name="fileName" type="string">
  The file URL.
</ResponseField>

<ResponseField name="type" type="string" default="formatting">
  The type of job.
</ResponseField>

<ResponseField name="formats" type="object">
  Result of the formatting job.
</ResponseField>
