REST API

Doc Gen offers both webhooks and a REST API for integrating with other systems. Authentication is OAuth 2.0, with mTLS available on top if you need it. Keys are managed at customer level, so storing and protecting them is your side of the arrangement.

The REST API is also available from inside Workflow when the built-in actions are not enough.

Every host on this page follows the environment you pick here. The choice sticks as you move between pages.

Available APIs

SolutionReference
Smartforms (Studio)https://smartforms.metaforce.net/documentation-api
Digital Signinghttps://digitalsigning.metaforce.net/documentation-api
Archivehttps://archive.metaforce.net/documentation-api
Pages v3 (webeditor)https://webeditor.metaforce.net/documentation-api
Pages v4 (webeditor-v4)https://webeditor-v4.metaforce.net/documentation-api
ViewPointhttps://viewpoint.metaforce.net/documentation-api. ViewPoint’s API is the backend of the ViewPoint application, so this reference is short and most calls are not listed.
AuditNo public reference page. The call that posts events is described in Audit API.

The reference pages above list the public calls of each API. The pages in this section explain how to use them, with examples:

SolutionGuide
SmartformsCreate a Smartform, PDF, Read and delete forms
Text LibraryText Library API
Digital SigningDigital Signing API
ArchiveArchive API
PagesCreate documents, PDF and other outputs, Distribute and archive, Store and find documents
AuditAudit API
StatisticsStatistics API

Which client do I need

Every call needs a bearer token from an API client. The client type decides which APIs the token reaches:

Client typeUse it for
StandardSmartforms, Text Library and Pages.
External SystemThird party systems such as Salesforce, with a limited scope.
AuditPosting audit events, see Audit API.
MetaToolCreating MetaTool documents.

The scope names and the steps to create a client are in Authentication.

Environment in the URL

Some APIs take the environment as part of the path, so one host serves Development, Test and Production versions of your content.

APIWhere the environment goesValues
Smartforms/{environment}/Integrations/..., or the environment field in the request bodyDevelopment, Test, PreProduction, Production, in any case
ArchiveAn optional segment after the name: /Archive/{environment}/..., or the x-centerpoint-environment header, which wins when both are sentDevelopment, Test, PreProduction, Production, with exactly this case
Pages/{customerEnvironment}/..., alwaysDevelopment, Test, Test1 to Test5, IntegrationTest, AcceptanceTest, Production

Each guide page says which calls accept the environment.

What’s in this section