A publication is a document or a set of files from a Space that people can open with a link. You can use these endpoints to publish a finished report for a client, change who can open it, or take it down.
Reading publications requires the Publications area, which Full access and Read-only both include. Publishing requires Full access or Publications set to Read and write. Every time you publish something or change who can open it, a person has to approve the change in the app, even if it is only for your own team. For more details, see Publishing and sharing.
Use GET /publications and GET /publications/{id} to read existing publications. Use POST /publications to publish one of two things:
- A version of a document: set
source_typetoartifact, and pass theartifact_idandversion_idfrom Artifacts. - Files from a Space: set
source_typetofolder, and pass thespace_idalong with thepathsyou want to include.
Include an audience to control who can open the link: private, team, space, link, named_recipients, or public, depending on what your plan allows. You can also call POST /publications/{id}/actions with make_live, audience, revoke_recipient, or unpublish, which waits for the same approval in the app.
For general API details, see The REST API. If you prefer working from a terminal, see svanja publish.