Create a document. It is created with an empty draft (version 1.0) and is not used in production until it has been published. The template content (sections) is designed on the Root dashboard.
Documents are shared by your sandbox and production environments, so changing one with an API key requires a production API key. A sandbox API key can read documents but gets 403 here.
Documents are opt-in per organization: unless the org_documents feature flag is enabled for your organization this endpoint returns 404.
400Validation error, for example a key containing spaces or hyphens.
403The request used a sandbox API key, or the caller is missing the communications:create permission.
404Documents are not enabled for the organization.
409A document with this key already exists in the organization.