Space content

Import, export, and search content in a space.

Handle your space content programmatically by creating, updating, or listing pages and files. Ideal for bulk operations or synchronizing with external systems.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Query parameters
querystring · max: 512Required
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

Responses
200

OK

application/json
Responseall of
get
/spaces/{spaceId}/search
200

OK

Get a space current revision

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Query parameters
metadatabooleanOptional

If false is passed, "git" mutable metadata will not returned. Passing false can optimize performances of the lookup.

Default: true
computedbooleanOptional

If false is passed, content will not be computed

Default: true
Responses
200

OK

application/json
Responseone of
or
or
or
or
get
/spaces/{spaceId}/content
200

OK

Apply a template to a space.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Body
anyOptional
Responses
post
/spaces/{spaceId}/content/template
201

Template applied to space.

No content

List all space pages

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Query parameters
metadatabooleanOptional

If false is passed, "git" mutable metadata will not returned. Passing false can optimize performances of the lookup.

Default: true
computedbooleanOptional

If false is passed, content will not be computed

Default: true
Responses
200

OK

application/json
get
/spaces/{spaceId}/content/pages
200

OK

List all space files

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

metadatabooleanOptional

If false is passed, "git" mutable metadata will not returned. Passing false can optimize performances of the lookup.

Default: true
computedbooleanOptional

If false is passed, content will not be computed

Default: true
Responses
200

OK

application/json
Responseall of
get
/spaces/{spaceId}/content/files
200

OK

Get a space file by its ID

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

fileIdstringRequired

The unique id of the file

Query parameters
metadatabooleanOptional

If false is passed, "git" mutable metadata will not returned. Passing false can optimize performances of the lookup.

Default: true
computedbooleanOptional

If false is passed, content will not be computed

Default: true
Responses
200

OK

application/json
get
/spaces/{spaceId}/content/files/{fileId}
200

OK

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

fileIdstringRequired

The unique id of the file

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

Responses
200

OK

application/json
Responseall of
get
/spaces/{spaceId}/content/files/{fileId}/backlinks
200

OK

Get a space page by its ID

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

pageIdstringRequired

The unique id of the page

Query parameters
formatstring · enumOptional

Output format for the content.

Possible values:
evaluatedone ofOptional

Controls whether the document should be evaluated.

  • When set to true, the entire document will be evaluated.
  • When set to deterministic-only, only expressions that depend exclusively on deterministic inputs will be evaluated.
Default: false
booleanOptional
or
string · enumOptionalPossible values:
dereferencedone ofOptional

Controls whether the document should be deferenced (eference to other content will be resolved and expanded).

  • When set to true, the entire document will be deferenced
  • When set to reusable-contents, only reusable contents will be deferenced.
Default: false
booleanOptional
or
string · enumOptionalPossible values:
metadatabooleanOptional

If false is passed, "git" mutable metadata will not returned. Passing false can optimize performances of the lookup.

Default: true
computedbooleanOptional

If false is passed, content will not be computed

Default: true
Responses
200

OK

application/json
Responseone of
anyOptional
and
anyOptional
or
or
object · EmptyOptional
and
and
anyOptional
or
or
or
or
get
/spaces/{spaceId}/content/page/{pageId}
200

OK

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

pageIdstringRequired

The unique id of the page

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

statusstring · enumOptional

Text to display to represent the reference. Possible values include:

  • ok - No problems detected for this content reference.
  • broken - The target does not exist in the revision.
  • in-app - The target is a URL link pointing to an internal location in the app.
Possible values:
Responses
200

OK

application/json
Responseall of
get
/spaces/{spaceId}/content/page/{pageId}/links
200

OK

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

pageIdstringRequired

The unique id of the page

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

Responses
200

OK

application/json
Responseall of
get
/spaces/{spaceId}/content/page/{pageId}/backlinks
200

OK

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

pageIdstringRequired

The unique id of the page

Responses
200

OK

application/json
get
/spaces/{spaceId}/content/page/{pageId}/meta-links
200

OK

Get a space page by its path

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

pagePathstringRequired

The path of the page in the revision.

Query parameters
formatstring · enumOptional

Output format for the content.

Possible values:
evaluatedone ofOptional

Controls whether the document should be evaluated.

  • When set to true, the entire document will be evaluated.
  • When set to deterministic-only, only expressions that depend exclusively on deterministic inputs will be evaluated.
Default: false
booleanOptional
or
string · enumOptionalPossible values:
dereferencedone ofOptional

Controls whether the document should be deferenced (eference to other content will be resolved and expanded).

  • When set to true, the entire document will be deferenced
  • When set to reusable-contents, only reusable contents will be deferenced.
Default: false
booleanOptional
or
string · enumOptionalPossible values:
metadatabooleanOptional

If false is passed, "git" mutable metadata will not returned. Passing false can optimize performances of the lookup.

Default: true
computedbooleanOptional

If false is passed, content will not be computed

Default: true
Responses
200

OK

application/json
Responseone of
anyOptional
and
anyOptional
or
or
object · EmptyOptional
and
and
anyOptional
or
or
get
/spaces/{spaceId}/content/path/{pagePath}
200

OK

Get a space reusable content by its ID

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

reusableContentIdstringRequired

The unique id of the reusable content

Query parameters
metadatabooleanOptional

If false is passed, "git" mutable metadata will not returned. Passing false can optimize performances of the lookup.

Default: true
computedbooleanOptional

If false is passed, content will not be computed

Default: true
Responses
200

OK

application/json
Responseall of
and
anyOptional
or
get
/spaces/{spaceId}/content/reusable-contents/{reusableContentId}
200

OK

Get a space computed document

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Query parameters
schemastring · enumOptional

Version of the schema used for the document.

Possible values:
Body
sourceone ofRequired
or
or
seedstringRequired

Seed to use for the generation of IDs.

Responses
200

Document computed

application/json
post
/spaces/{spaceId}/content/computed/document
200

Document computed

Get a space computed revision

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Body
sourceone ofRequired
or
or
seedstringRequired

Seed to use for the generation of IDs.

Responses
200

Computed pages and files

application/json
post
/spaces/{spaceId}/content/computed/revision
200

Computed pages and files

Get a space document by its ID

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

documentIdstringRequired

ID of the document in the space

Query parameters
schemastring · enumOptional

Version of the schema used for the document.

Possible values:
Responses
200

Document

application/json
get
/spaces/{spaceId}/documents/{documentId}
200

Document

Get a space revision

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

revisionIdstringRequired

The unique id of the revision

Query parameters
metadatabooleanOptional

If false is passed, "git" mutable metadata will not returned. Passing false can optimize performances of the lookup.

Default: true
computedbooleanOptional

If false is passed, content will not be computed

Default: true
Responses
200

OK

application/json
Responseone of
or
or
or
or
get
/spaces/{spaceId}/revisions/{revisionId}
200

OK

Get space revision semantic changes

get

Return the semantic changes between a revision and its parent.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

revisionIdstringRequired

The unique id of the revision

Query parameters
metadatabooleanOptional

If false is passed, "git" mutable metadata will not returned. Passing false can optimize performances of the lookup.

Default: true
computedbooleanOptional

If false is passed, content will not be computed

Default: true
limitnumberOptional

Limit the number of changes returned

Default: 10
Responses
200

OK

application/json
get
/spaces/{spaceId}/revisions/{revisionId}/changes
200

OK

List all pages in a space revision

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

revisionIdstringRequired

The unique id of the revision

Query parameters
metadatabooleanOptional

If false is passed, "git" mutable metadata will not returned. Passing false can optimize performances of the lookup.

Default: true
computedbooleanOptional

If false is passed, content will not be computed

Default: true
Responses
200

OK

application/json
get
/spaces/{spaceId}/revisions/{revisionId}/pages
200

OK

List all space revision files

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

revisionIdstringRequired

The unique id of the revision

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

metadatabooleanOptional

If false is passed, "git" mutable metadata will not returned. Passing false can optimize performances of the lookup.

Default: true
computedbooleanOptional

If false is passed, content will not be computed

Default: true
Responses
200

OK

application/json
Responseall of
get
/spaces/{spaceId}/revisions/{revisionId}/files
200

OK

Get a space revision file by its ID

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

revisionIdstringRequired

The unique id of the revision

fileIdstringRequired

The unique id of the file

Query parameters
metadatabooleanOptional

If false is passed, "git" mutable metadata will not returned. Passing false can optimize performances of the lookup.

Default: true
computedbooleanOptional

If false is passed, content will not be computed

Default: true
Responses
200

OK

application/json
get
/spaces/{spaceId}/revisions/{revisionId}/files/{fileId}
200

OK

Get a space revision page by its ID

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

revisionIdstringRequired

The unique id of the revision

pageIdstringRequired

The unique id of the page

Query parameters
formatstring · enumOptional

Output format for the content.

Possible values:
evaluatedone ofOptional

Controls whether the document should be evaluated.

  • When set to true, the entire document will be evaluated.
  • When set to deterministic-only, only expressions that depend exclusively on deterministic inputs will be evaluated.
Default: false
booleanOptional
or
string · enumOptionalPossible values:
dereferencedone ofOptional

Controls whether the document should be deferenced (eference to other content will be resolved and expanded).

  • When set to true, the entire document will be deferenced
  • When set to reusable-contents, only reusable contents will be deferenced.
Default: false
booleanOptional
or
string · enumOptionalPossible values:
metadatabooleanOptional

If false is passed, "git" mutable metadata will not returned. Passing false can optimize performances of the lookup.

Default: true
computedbooleanOptional

If false is passed, content will not be computed

Default: true
Responses
200

OK

application/json
Responseone of
anyOptional
and
anyOptional
or
or
object · EmptyOptional
and
and
anyOptional
or
or
or
or
get
/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}
200

OK

Get the document of a page in a revision

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

revisionIdstringRequired

The unique id of the revision

pageIdstringRequired

The unique id of the page

Query parameters
evaluatedone ofOptional

Controls whether the document should be evaluated.

  • When set to true, the entire document will be evaluated.
  • When set to deterministic-only, only expressions that depend exclusively on deterministic inputs will be evaluated.
Default: false
booleanOptional
or
string · enumOptionalPossible values:
dereferencedone ofOptional

Controls whether the document should be deferenced (eference to other content will be resolved and expanded).

  • When set to true, the entire document will be deferenced
  • When set to reusable-contents, only reusable contents will be deferenced.
Default: false
booleanOptional
or
string · enumOptionalPossible values:
Responses
200

OK

application/json
get
/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/document
200

OK

Get a space revision page by its path

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

revisionIdstringRequired

The unique id of the revision

pagePathstringRequired

The path of the page in the revision.

Query parameters
formatstring · enumOptional

Output format for the content.

Possible values:
evaluatedone ofOptional

Controls whether the document should be evaluated.

  • When set to true, the entire document will be evaluated.
  • When set to deterministic-only, only expressions that depend exclusively on deterministic inputs will be evaluated.
Default: false
booleanOptional
or
string · enumOptionalPossible values:
dereferencedone ofOptional

Controls whether the document should be deferenced (eference to other content will be resolved and expanded).

  • When set to true, the entire document will be deferenced
  • When set to reusable-contents, only reusable contents will be deferenced.
Default: false
booleanOptional
or
string · enumOptionalPossible values:
metadatabooleanOptional

If false is passed, "git" mutable metadata will not returned. Passing false can optimize performances of the lookup.

Default: true
computedbooleanOptional

If false is passed, content will not be computed

Default: true
Responses
200

OK

application/json
Responseone of
anyOptional
and
anyOptional
or
or
object · EmptyOptional
and
and
anyOptional
or
or
get
/spaces/{spaceId}/revisions/{revisionId}/path/{pagePath}
200

OK

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

revisionIdstringRequired

The unique id of the revision

pageIdstringRequired

The unique id of the page

Responses
200

OK

application/json
get
/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/meta-links
200

OK

Get a space revision reusable content by its ID

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

revisionIdstringRequired

The unique id of the revision

reusableContentIdstringRequired

The unique id of the reusable content

Query parameters
metadatabooleanOptional

If false is passed, "git" mutable metadata will not returned. Passing false can optimize performances of the lookup.

Default: true
computedbooleanOptional

If false is passed, content will not be computed

Default: true
Responses
200

OK

application/json
Responseall of
and
anyOptional
or
get
/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}
200

OK

Get the document of a reusable content in a revision

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

revisionIdstringRequired

The unique id of the revision

reusableContentIdstringRequired

The unique id of the reusable content

Query parameters
evaluatedone ofOptional

Controls whether the document should be evaluated.

  • When set to true, the entire document will be evaluated.
  • When set to deterministic-only, only expressions that depend exclusively on deterministic inputs will be evaluated.
Default: false
booleanOptional
or
string · enumOptionalPossible values:
dereferencedone ofOptional

Controls whether the document should be deferenced (eference to other content will be resolved and expanded).

  • When set to true, the entire document will be deferenced
  • When set to reusable-contents, only reusable contents will be deferenced.
Default: false
booleanOptional
or
string · enumOptionalPossible values:
Responses
200

OK

application/json
get
/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}/document
200

OK

Get a URL of the content of a space as PDF

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Query parameters
onlybooleanOptional

Generate a PDF only for the provided page.

pagestringOptional

ID of a specific page to generate a PDF for.

Responses
200

URL of the PDF

application/json
get
/spaces/{spaceId}/pdf
200

URL of the PDF

Last updated

Was this helpful?