# JobDocument (/api/reference/objects/job-document)

A file uploaded to a job: a job spec, an info document, call notes. Each one is read by a model and merged into the job's brief, and deleting it takes out only what it added.

```graphql
type JobDocument {
  downloadUrl: String
  filename: String!
  id: ID!
  isProcessing: Boolean!
  kind: JobDocumentKind!
  mimeType: String
  previewUrl: String
  sizeBytes: Int
  summary: String
  text: String
  uploadedAt: DateTime!
  uploadedBy: User
}
```

### Fields [#fields]

#### [`JobDocument.downloadUrl`](#download-url) · [`String`](/api/reference/scalars/string) `scalar` [#download-url]
A link that downloads the file, valid for two minutes. Ask for it when someone clicks, not with the list. Null when the file is not held.

#### [`JobDocument.filename`](#filename) · [`String!`](/api/reference/scalars/string) `non-null` `scalar` [#filename]
The file's name, as uploaded.

#### [`JobDocument.id`](#id) · [`ID!`](/api/reference/scalars/id) `non-null` `scalar` [#id]
The document's id.

#### [`JobDocument.isProcessing`](#is-processing) · [`Boolean!`](/api/reference/scalars/boolean) `non-null` `scalar` [#is-processing]
True until the document has been read and merged into the brief. Poll while it is true. A document that could not be read stays true: there is no failed state.

#### [`JobDocument.kind`](#kind) · [`JobDocumentKind!`](/api/reference/enums/job-document-kind) `non-null` `enum` [#kind]
What kind of document the uploader said it is.

#### [`JobDocument.mimeType`](#mime-type) · [`String`](/api/reference/scalars/string) `scalar` [#mime-type]
The file's media type, such as `application/pdf`.

#### [`JobDocument.previewUrl`](#preview-url) · [`String`](/api/reference/scalars/string) `scalar` [#preview-url]
A link that shows the file in the browser, valid for two minutes, for PDFs only. Null for any other type, and when the file is not held.

#### [`JobDocument.sizeBytes`](#size-bytes) · [`Int`](/api/reference/scalars/int) `scalar` [#size-bytes]
The file's size in bytes. May be null until the document has been read.

#### [`JobDocument.summary`](#summary) · [`String`](/api/reference/scalars/string) `scalar` [#summary]
One or two sentences on what the document says. Null while `isProcessing`.

#### [`JobDocument.text`](#text) · [`String`](/api/reference/scalars/string) `scalar` [#text]
The document's text, as extracted from the file. May be long. Null while `isProcessing`.

#### [`JobDocument.uploadedAt`](#uploaded-at) · [`DateTime!`](/api/reference/scalars/date-time) `non-null` `scalar` [#uploaded-at]
When it was uploaded.

#### [`JobDocument.uploadedBy`](#uploaded-by) · [`User`](/api/reference/objects/user) `object` [#uploaded-by]
Who uploaded it. Null for a document that arrived by email or whose uploader has left.

### Member Of [#member-of]

[`JobDocumentEdge`](/api/reference/objects/job-document-edge)  `object`