Docs

Templates

List templates

Every template you have saved, most recently updated first.

GET/v1/templates

Templates come without their fields here; get a template for those. A document uploaded once with a pact is not a template and is not listed.

Authorization

Authorizationstringheaderrequired
Bearer followed by your API key: Bearer sgk_…. The key also works in an X-Api-Key header. See Authentication.

Response

200 OKA list. There is no paging: every template comes back.
dataarray of objects
The templates, without fields.
ShowHide template attributes
uidstring
The template's id: 8 letters and digits.
namestring
Your name for it (150 characters at most). Defaults to the file name.
source_namestring
The uploaded file's name.
source_typestring
What was uploaded. Word documents are converted to PDF on upload.
One of pdf docx
page_countinteger
Pages in the document.
signer_countinteger
Signers the glyphs call for: the highest glyph number.
field_countinteger
Fields found in the document.
date_createdstring (date-time)
When it was uploaded.
date_updatedstring (date-time)
When it last changed.
totalinteger
How many there are.

Errors

StatusWhen
401 UnauthorizedThe API key is missing, wrong or revoked.
403 ForbiddenThe account's plan does not include API access (Pro and Business do).

Every error body is { "error": "message" }. See Errors.