Last updated Jul 16, 2025

Document

The Document object type represents a document object. atlassian:document should be used to ingest document-specific fields.

Payload structure

1
2
  objects {}
  ├─ schemaVersion (string) [Required]
  ├─ id (string) [Required]
  ├─ updateSequenceNumber (long) [Required]
  ├─ displayName (string) [Required]
  ├─ description (string) [Optional]
  ├─ url (string) [Required]
  ├─ createdAt (Instant (ISO8601 / RFC3339)) [Required]
  └─ createdBy [] [Optional]
      ├─ accountId (string)
      └─ ari (string)
  └─ lastUpdatedAt (Instant (ISO8601 / RFC3339)) [Required]
  └─ lastUpdatedBy [] [Required]
      ├─accountId (string)
      └─ ari
  └─ permissions 
      └─ accessControls
         └─ principals
            └─type
  └─ associations [] [Optional]
      ├─ associationType (string)
      └─ values []
      
  atlassian:document
  ├─ type (DocumentType) [Required]
      ├─ category (string) [Required]
      ├─ mimeType (string) [Required]
      ├─ iconUrl (string) [Optional]
      └─ fileExtension (string) [Optional]
  ├─ content (DocumentContent) [Required]
      ├─ mimeType (string) [Required]
      ├─ binary (string) [Optional]
      └─ text (string) [Optional]
  ├─ collaborators (List<UserReference>) [Optional]
      ├─ accountId (string) [Optional]
      ├─ email (string) [Optional]
      ├─ externalId (string) [Optional]
      ├─ ari (string) [Optional]
      ├─ name (string) [Optional]
      ├─ userName (string) [Optional]
      ├─ avatar (string) [Optional]
      └─ url (string) [Optional]
  ├─ byteSize (integer) [Optional]
  ├─ exportLinks (List<ExportLink>) [Optional]
      ├─ mimeType (string) [Optional]
      ├─ url (string) [Required]
  ├─ labels (List<string>) [Optional]
  └─ reactions (List<Reaction>) [Optional]
      ├─ reactionType (string) [Required]
      └─ total (integer) [Required]

Common properties

PropertyTypeRequiredDescription
schemaVersion

string

YesThe schema version of the object.
id

string

YesThe ID of the object in the source system.
updateSequenceNumberlongYesA sequence number to compare when writing to the database. Objects are written following a last write wins strategy, therefore an object with a greater UpdateSequenceNumber is considered a more recently updated object.
displayNamestringYesThe display name of the object.
descriptionstringNoThe description of the object.
urlstringYesThe URL from the provider which the object is accessible from.
createdAtstringYes

The date the object was created.

Format: Instant (ISO8601 / RFC3339)

createdByuserNo

The user that created the object.

See User to learn more.

lastUpdatedAtstringYes

The date the object was last updated.

Format: Instant (ISO8601 / RFC3339)

lastUpdatedByuserNo

The user that last updated the object.

See User to learn more.

ownerslist<User>NoList of users that own the object.
thumbnailthumbnailNo

The thumbnail of the object.

See Thumbnail to learn more.

parentKeyentityKeyNo

The ID of the parent object. If null, it is a standalone object.

See Entity key to learn more.

containerKeyentityKeyNo

The container identifier that this object belongs to.

See Entity key to learn more.

permissionslist<Permissions>Yes

The permissions configuration of the object.

See Permissions to learn more.

associationsassociationNo

List of objects associated with the object. Generally used to link an external object to a Atlassian object.

See Association to learn more.

Document properties

PropertyTypeRequiredDescription
type

DocumentType

Yes

The type information for the document.

type.categorystringYes

The category of the document.

Allowed values:

  • folder
  • document
  • presentation
  • spreadsheet
  • image
  • audio
  • video
  • pdf
  • shortcut
  • code
  • archive
  • form
  • web_page
  • page
  • blogpost
  • other
type.mimeTypestringYes

The MIME type of the document.

type.iconUrlstringNo

The URL for the document type's icon.

type.fileExtensionstringNo

The file extension for the document type.

content

DocumentContent

Yes

The content information for the document.

content.mimeTypestringYes

The MIME type of the document content.

content.binarystringNo

The binary content of the document (base64 encoded). Either text or binary is required.

content.textstringNo

The text content of the document. Either text or binary is required.

collaborators

List<UserReference>

No

List of collaborators on the document.

byteSizeintegerNo

The size of the document in bytes.

exportLinks

List<ExportLink>

No

List of export links for the document.

exportLinks.mimeTypestringNo

The MIME type of the export link.

exportLinks.urlstringYes

The URL for the export link.

labels

List<string>

No

List of labels associated with the document.

reactions

List<Reaction>

No

List of reactions to the document.

reactions.reactionTypestringYes

The type of reaction.

Allowed values: like

reactions.totalintegerYes

The total number of this reaction type.

Example payload

1
2
{
  "objects" : [ {
    "schemaVersion" : "1.0",
    "id" : "my-document",
    "updateSequenceNumber" : 123,
    "displayName" : "My Document",
    "url" : "https://document.com",
    "thumbnail" : {
      "externalUrl" : "https://document-thumbnail.com"
    },
    "createdAt" : "2024-04-16T09:01:32+00:00",
    "parentKey" : {
      "type" : "atlassian:document",
      "value" : {
        "entityId" : "another-document"
      }
    },
    "permissions" : [ {
      "action" : "read",
      "accessControls" : [ {
        "principals" : [ {
          "type" : "EVERYONE"
        } ]
      } ]
    } ],
    "atlassian:document" : {
      "type" : {
        "category" : "document",
        "iconUrl" : "http://example-icon.com/icon/111"
      },
      "content" : {
        "mimeType" : "text/plain",
        "text" : "Really large content here..."
      },
      "byteSize" : 456,
      "labels" : [ "label1", "label2" ],
      "reactions" : [ {
        "type" : "LIKE",
        "total" : 1
      } ],
      "exportLinks" : [ {
        "mimeType" : "text/plain",
        "url" : "http://localhost"
      } ]
    },
    "containerKey" : {
      "type" : "atlassian:space",
      "value" : {
        "entityId" : "CFG3W7TKJ"
      }
    }
  } ],
  "operationType" : "NORMAL"
}

Rate this page: