Skip to main content
This release changes how API keys are listed and deleted, how webhooks carry credentials, where documents keep their expiration date and who can use templates. Several changes require updates to integrations.

Breaking changes

Across the API

  • Credentials issued from this release on (session tokens, API keys, share tokens and public file links) have the form cir_<id>.<secret> instead of a hexadecimal string. Values issued earlier keep working. Treat credentials as opaque strings, and allow _, . and - in them wherever you store them or pass them in a URL. Affected endpoints: POST /login, POST /api/key, POST /share/permanent, GET /share/{shareId}/validate, POST /files/saveFile.
  • Comments in a document’s history (workflow[].history[].comment) and share messages (message, privateMessage) are now sanitized HTML: bold, italic, underline, bullet lists, line breaks and https links are kept, other markup is removed, and &, < and > are returned as HTML entities. Comments stored earlier are converted the same way. Render these fields as HTML, or strip the tags and decode the entities to show them as plain text. The message of PUT /share/disable is now limited to 2000 characters. Affected endpoints: POST /documents, GET /documents/{id}, POST /search, POST /share, GET /share/{shareId}/validate, PUT /share/disable.

API Keys

  • GET /api/key no longer returns usable key values: id is now the key’s record identifier, and the key value is returned only once, by POST /api/key. Store the value when you create a key. Keys created earlier keep working.
  • DELETE /api/key/{key} now requires authentication and deletes only the caller’s own keys. It accepts the id from GET /api/key, and an unknown key now gets 404 RESOURCE:NOT_FOUND instead of 400. Send a session token or API key of the key’s owner with the request.

Definitions

  • Document definitions no longer contain wizardMode. This affects GET /definitions and GET /definitions/documents. Stop reading the field.

Documents

  • The expiration date of a document moves from the GF_EXPIRATION metadata field to a new top-level expiresOn field, and GF_EXPIRATION is removed from the document definitions. Documents no longer return GF_EXPIRATION, report rows no longer include the expiration date, a search on GF_EXPIRATION silently matches nothing, and document alerts on it are deleted. Read, filter and sort on expiresOn instead. POST /documents still accepts GF_EXPIRATION and stores it as expiresOn. Affected endpoints: POST /documents, GET /documents/{id}, POST /search, POST /search/reports, GET /definitions, GET /definitions/documents.
  • Annotation text is now wrapped to the width of its box, and the box grows by whole lines. Text that needs more lines than the field’s numberOfLines, that does not fit a read-only field, or that would run past the bottom of the page is refused with 400 VALIDATION:INPUT_INVALID, naming the field in details.signFieldId. This affects PUT /documents/annotate/{version} and PUT /documents/sign/{version}. Size sign fields for the text that will fill them.
  • Annotations, signatures and sign fields now have input limits: fontSize from 4 to 100, text up to 10,000 characters, link up to 2048, tooltip up to 255, numberOfLines up to 100 and pages up to 5000 entries. Values outside them are refused with 400. Affected endpoints: POST /documents, PUT /documents/annotate/{version}, PUT /documents/sign/{version}, POST /share, POST /templates, PUT /templates.
  • A signature, annotation or image that references a file that does not exist is now refused with 400 VALIDATION:RULE_VIOLATED instead of 404. This affects PUT /documents/sign/{version}, PUT /documents/annotate/{version} and POST /share.
  • useTsa: true now adds timestamps also for callers without the set_tsa right, who previously got none, and these timestamps count against the subscription. The right is now needed only to choose a timestamp server with tsaServer. This affects PUT /documents/sign/{version} and POST /share. Stop sending useTsa: true where no timestamp is wanted.

Login

  • The rights array returned by POST /login and GET /login no longer contains use_document_management, use_file_management and other retired rights, and no endpoint requires them any more. Do not treat their absence as missing access.
  • When tags.and is left out, a document search now matches documents that carry any one of the tags listed in a group. Before, it silently required every listed tag. This affects POST /search, POST /search/reports and POST /export. Send "and": true to keep requiring every tag.

Share

  • Taking the share token of your own external recipient’s share through GET /share/{shareId}/validate now requires the Business edition. Start and Pro users now get 409 SHARE:STATE_CONFLICT. Let Circularo deliver the link to the recipient, or move to the Business edition.

Templates

  • Locking or unlocking a template through isLocked now requires the lock_templates right. Without it, POST /templates is refused with 403 AUTH:ACCESS_INSUFFICIENT_RIGHTS, and PUT /templates reports the template as failed with that error. Sending the value the template already has needs no right.
  • Templates stored without an owner now belong to the user who created them. Other users of the tenant no longer find, read, update or delete them unless the owner shares the templates with them. Affected endpoints: GET /templates/{id}, POST /templates/search, PUT /templates, DELETE /templates.
  • When PUT /templates replaces a template’s file without sending signFields, it now silently clears the template’s sign fields. Send signFields together with the new file to keep them.
  • Templates are now held to the limits of documents: at most 1000 signFields, maxCharacters from 1 to 256, signature fields for at most 100 recipients with at most 10 signatures each, and recipient fullname up to 255 characters. Requests over a limit are refused with 400 VALIDATION:RULE_VIOLATED, and PUT /templates reports the template as failed. This affects POST /templates and PUT /templates.
  • customTemplate on POST /documents and templateId on POST /share must now name a template the caller can view; POST /share still accepts the template the document is bound to. Any other template is refused with 404 RESOURCE:NOT_FOUND.

Webhooks

  • POST /webhooks no longer accepts credentials in callbackUrl (https://user:password@example.com/webhook) and refuses them with 400 VALIDATION:RULE_VIOLATED. Send them in the new basicAuth object (username, password) instead. GET /webhooks and POST /webhooks return callbackUrl without credentials, and basicAuth with the user name only. Existing webhooks are moved to basicAuth automatically. callbackUrl is now limited to 2048 characters and hmacSecret to 255.

Added

  • Documents can carry a contract term. POST /documents accepts expiresOn and a term object with reminders, renewal and non-fixed terms; sending term requires the use_document_terms right. Documents return both, together with a derived termType, and POST /search can filter on them. With extractTermDates, POST /files/saveFile suggests the term dates found in an uploaded PDF in termSuggestions.
  • sealProvider on PUT /documents/seal/{version} now takes the name of any seal provider available to the account, including an organization’s own I.CA RemoteSeal qualified seal. PUT /documents/sign/{version} and PUT /documents/seal/{version} take an optional tsaServer naming the timestamp server; choosing one requires the set_tsa right. POST /login and GET /login list the choices in availableSealProviders and availableTsaServers.
  • With checkSignFields, POST /files/saveFile also detects signature fields written as {{cir:...}} text tags. It reports markers it cannot use in a new faultySignFields array.
  • Templates can carry document defaults: documentCategory, documentFolder, documentNameFormat, documentValues, tags, term, signatureProvider, tsaType and attachments. POST /templates and PUT /templates can also join several files into the template’s main file with merge and convert. Affected endpoints: POST /templates, PUT /templates, GET /templates/{id}, POST /templates/search.
  • A document created with customTemplate records that template as sourceTemplate, and bindToTemplate binds the new document to a locked template. POST /share accepts releaseDeletedTemplate to send a document whose bound template was deleted. Affected endpoints: POST /documents, GET /documents/{id}, POST /search, POST /share.