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 andhttpslinks 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. ThemessageofPUT /share/disableis 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/keyno longer returns usable key values:idis now the key’s record identifier, and the key value is returned only once, byPOST /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 theidfromGET /api/key, and an unknown key now gets404RESOURCE:NOT_FOUNDinstead of400. Send a session token or API key of the key’s owner with the request.
Definitions
- Document definitions no longer contain
wizardMode. This affectsGET /definitionsandGET /definitions/documents. Stop reading the field.
Documents
-
The expiration date of a document moves from the
GF_EXPIRATIONmetadata field to a new top-levelexpiresOnfield, andGF_EXPIRATIONis removed from the document definitions. Documents no longer returnGF_EXPIRATION, report rows no longer include the expiration date, a search onGF_EXPIRATIONsilently matches nothing, and documentalertson it are deleted. Read, filter and sort onexpiresOninstead.POST /documentsstill acceptsGF_EXPIRATIONand stores it asexpiresOn. 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 with400VALIDATION:INPUT_INVALID, naming the field indetails.signFieldId. This affectsPUT /documents/annotate/{version}andPUT /documents/sign/{version}. Size sign fields for the text that will fill them. -
Annotations, signatures and sign fields now have input limits:
fontSizefrom 4 to 100,textup to 10,000 characters,linkup to 2048,tooltipup to 255,numberOfLinesup to 100 andpagesup to 5000 entries. Values outside them are refused with400. 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
400VALIDATION:RULE_VIOLATEDinstead of404. This affectsPUT /documents/sign/{version},PUT /documents/annotate/{version}andPOST /share. -
useTsa: truenow adds timestamps also for callers without theset_tsaright, who previously got none, and these timestamps count against the subscription. The right is now needed only to choose a timestamp server withtsaServer. This affectsPUT /documents/sign/{version}andPOST /share. Stop sendinguseTsa: truewhere no timestamp is wanted.
Login
- The
rightsarray returned byPOST /loginandGET /loginno longer containsuse_document_management,use_file_managementand other retired rights, and no endpoint requires them any more. Do not treat their absence as missing access.
Search
- When
tags.andis 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 affectsPOST /search,POST /search/reportsandPOST /export. Send"and": trueto keep requiring every tag.
Share
- Taking the share token of your own external recipient’s share through
GET /share/{shareId}/validatenow requires the Business edition. Start and Pro users now get409SHARE:STATE_CONFLICT. Let Circularo deliver the link to the recipient, or move to the Business edition.
Templates
-
Locking or unlocking a template through
isLockednow requires thelock_templatesright. Without it,POST /templatesis refused with403AUTH:ACCESS_INSUFFICIENT_RIGHTS, andPUT /templatesreports 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 /templatesreplaces a template’sfilewithout sendingsignFields, it now silently clears the template’s sign fields. SendsignFieldstogether with the new file to keep them. -
Templates are now held to the limits of documents: at most 1000
signFields,maxCharactersfrom 1 to 256, signature fields for at most 100 recipients with at most 10 signatures each, and recipientfullnameup to 255 characters. Requests over a limit are refused with400VALIDATION:RULE_VIOLATED, andPUT /templatesreports the template as failed. This affectsPOST /templatesandPUT /templates. -
customTemplateonPOST /documentsandtemplateIdonPOST /sharemust now name a template the caller can view;POST /sharestill accepts the template the document is bound to. Any other template is refused with404RESOURCE:NOT_FOUND.
Webhooks
POST /webhooksno longer accepts credentials incallbackUrl(https://user:password@example.com/webhook) and refuses them with400VALIDATION:RULE_VIOLATED. Send them in the newbasicAuthobject (username,password) instead.GET /webhooksandPOST /webhooksreturncallbackUrlwithout credentials, andbasicAuthwith the user name only. Existing webhooks are moved tobasicAuthautomatically.callbackUrlis now limited to 2048 characters andhmacSecretto 255.
Added
-
Documents can carry a contract term.
POST /documentsacceptsexpiresOnand atermobject with reminders, renewal and non-fixed terms; sendingtermrequires theuse_document_termsright. Documents return both, together with a derivedtermType, andPOST /searchcan filter on them. WithextractTermDates,POST /files/saveFilesuggests the term dates found in an uploaded PDF intermSuggestions. -
sealProvideronPUT /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}andPUT /documents/seal/{version}take an optionaltsaServernaming the timestamp server; choosing one requires theset_tsaright.POST /loginandGET /loginlist the choices inavailableSealProvidersandavailableTsaServers. -
With
checkSignFields,POST /files/saveFilealso detects signature fields written as{{cir:...}}text tags. It reports markers it cannot use in a newfaultySignFieldsarray. -
Templates can carry document defaults:
documentCategory,documentFolder,documentNameFormat,documentValues,tags,term,signatureProvider,tsaTypeandattachments.POST /templatesandPUT /templatescan also join several files into the template’s main file withmergeandconvert. Affected endpoints:POST /templates,PUT /templates,GET /templates/{id},POST /templates/search. -
A document created with
customTemplaterecords that template assourceTemplate, andbindToTemplatebinds the new document to a locked template.POST /shareacceptsreleaseDeletedTemplateto send a document whose bound template was deleted. Affected endpoints:POST /documents,GET /documents/{id},POST /search,POST /share.