Retrieve a metadata definition
curl --request GET \
--url 'https://sandbox.circularo.com/api/v1/definitions/documents/{name}?token='import requests
url = "https://sandbox.circularo.com/api/v1/definitions/documents/{name}?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/definitions/documents/{name}?token=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v1/definitions/documents/{name}?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/definitions/documents/{name}?token="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/definitions/documents/{name}?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/definitions/documents/{name}?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"name": "d_default",
"backendHtmlRendering": true,
"barcode": "<string>",
"barcodeType": "qrcode",
"category": "Contracts",
"composePreview": true,
"contentFields": [
"D_DEFAULT_DESCRIPTION"
],
"contextAttachments": "bottom",
"contextFileChooser": true,
"defaultMode": "formMode",
"definitionSkin": "<string>",
"definitionType": [
"ext"
],
"description": "Standard contract for external partners.",
"detectSignFields": true,
"displayName": [
{
"language": "en",
"value": "Expiration date"
}
],
"dualMode": true,
"embedDocIdOnSign": true,
"expertMode": true,
"fields": [
{
"allowGroups": true,
"barcodeType": "<string>",
"class": "<string>",
"defaultValue": "PENDING",
"description": "<string>",
"disabled": true,
"disabledCondition": "model.GF_STATUS === 'closed'",
"displayName": [
{
"language": "en",
"value": "Expiration date"
}
],
"dynamic": true,
"formula": "{{ ('documents:' + form.name) | translate }} #{{id}}",
"formulaRefreshCondition": [
"edit",
"rework"
],
"groupFilter": "<string>",
"inline": true,
"inlineStyle": "{\"color\":\"#ff0000\",\"font-weight\":\"bold\"}",
"isContentDependent": true,
"isExportable": true,
"isFulltext": true,
"isGlobal": true,
"isIndex": true,
"isQuery": true,
"isRole": true,
"listKey": "priority",
"listName": "priorities",
"listTooltip": "description",
"maskRegex": "{\"selectedMask\":\"decimal\",\"alias\":\"decimal\",\"digits\":2}",
"maskResult": "unmasked",
"maxDate": "2026-12-31",
"maxValue": 123,
"minDate": "{{ sysdate }}",
"minValue": 123,
"multiselect": true,
"name": "D_DEFAULT_DESCRIPTION",
"options": [
"low",
"medium",
"high"
],
"order": 123,
"placeholder": "Document title",
"placeholder2": "Valid until",
"predefinedDateRanges": [
{
"endDate": "2025-12-31",
"name": "Fiscal year 2025",
"startDate": "2025-01-01"
}
],
"prefill": "<string>",
"prefilled": true,
"regex": "<string>",
"regexValue": "<string>",
"required": true,
"role": "<string>",
"searchType": "date",
"showInDetail": true,
"showInDetailCondition": "model.D_DEFAULT_DESCRIPTION",
"showInIndex": true,
"showInIndexCondition": "model.D_DEFAULT_CATEGORY === 'invoice'",
"showInQuery": true,
"showInQueryCondition": "<string>",
"showInTemplate": true,
"showLabel": true,
"showLabelInTemplate": true,
"type": "date",
"userFilter": "<string>",
"validation": [
{
"message": "required_standard",
"parameter": "^[A-Z]{2}[0-9]{6}$",
"type": "regexp"
}
]
}
],
"form": [
{
"displayName": [
{
"language": "en",
"value": "Expiration date"
}
],
"fields": [
{
"name": "D_DEFAULT_DESCRIPTION",
"size": 12
}
],
"inlineStyle": "{\"background-color\":\"#f5f5f5\",\"padding\":\"12px\"}",
"name": "d_default_section_0",
"showInIndex": true,
"showInIndexCondition": "model.D_DEFAULT_CATEGORY === 'invoice'",
"showLabel": true
}
],
"formMode": true,
"formulaFallback": true,
"hasStrictFolderPlacement": true,
"htmlFallback": true,
"inlineMode": true,
"inlineStyle": ".tpage-part { font-size: 12px; }",
"isPrivateByDefault": true,
"language": "en",
"mobileFriendly": true,
"organization": [
"acme_org"
],
"previewMode": "normal",
"sectionMode": true,
"showStepNumber": true,
"signType": "image",
"supportsBarcode": true,
"supportsSignature": true,
"system": true,
"template": {
"content": "<div class=\"tpage-part\"><div class=\"col-lg-12\"><strong>Title</strong>: <input type=\"text\" data-model=\"model.documentTitle\"/></div></div>",
"footer": "<string>",
"header": "<string>"
},
"templateFile": "5gxo31ldfut9ljmnhdb2oxvajf7qndd4vgamt5sla8iwxie0tvtsgu6ksrfpr3e4",
"thumbnails": "qrfn0kr47ftdnrqz0cpuiglwh1kdo0r7ohei3l4ajgmfa2j7nhfeawz5oyh170pc",
"workflow": "wf_archive"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Definitions
Retrieve a metadata definition
GET /definitions/documents/{name}
Returns one metadata definition in full - the fields of the document type, its form layout, the workflow it runs on and its processing options. This is what a client needs to render a form for that document type.
A definition the caller is not entitled to use is refused even though it exists.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
Retrieve a metadata definition
curl --request GET \
--url 'https://sandbox.circularo.com/api/v1/definitions/documents/{name}?token='import requests
url = "https://sandbox.circularo.com/api/v1/definitions/documents/{name}?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/definitions/documents/{name}?token=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v1/definitions/documents/{name}?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/definitions/documents/{name}?token="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/definitions/documents/{name}?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/definitions/documents/{name}?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"name": "d_default",
"backendHtmlRendering": true,
"barcode": "<string>",
"barcodeType": "qrcode",
"category": "Contracts",
"composePreview": true,
"contentFields": [
"D_DEFAULT_DESCRIPTION"
],
"contextAttachments": "bottom",
"contextFileChooser": true,
"defaultMode": "formMode",
"definitionSkin": "<string>",
"definitionType": [
"ext"
],
"description": "Standard contract for external partners.",
"detectSignFields": true,
"displayName": [
{
"language": "en",
"value": "Expiration date"
}
],
"dualMode": true,
"embedDocIdOnSign": true,
"expertMode": true,
"fields": [
{
"allowGroups": true,
"barcodeType": "<string>",
"class": "<string>",
"defaultValue": "PENDING",
"description": "<string>",
"disabled": true,
"disabledCondition": "model.GF_STATUS === 'closed'",
"displayName": [
{
"language": "en",
"value": "Expiration date"
}
],
"dynamic": true,
"formula": "{{ ('documents:' + form.name) | translate }} #{{id}}",
"formulaRefreshCondition": [
"edit",
"rework"
],
"groupFilter": "<string>",
"inline": true,
"inlineStyle": "{\"color\":\"#ff0000\",\"font-weight\":\"bold\"}",
"isContentDependent": true,
"isExportable": true,
"isFulltext": true,
"isGlobal": true,
"isIndex": true,
"isQuery": true,
"isRole": true,
"listKey": "priority",
"listName": "priorities",
"listTooltip": "description",
"maskRegex": "{\"selectedMask\":\"decimal\",\"alias\":\"decimal\",\"digits\":2}",
"maskResult": "unmasked",
"maxDate": "2026-12-31",
"maxValue": 123,
"minDate": "{{ sysdate }}",
"minValue": 123,
"multiselect": true,
"name": "D_DEFAULT_DESCRIPTION",
"options": [
"low",
"medium",
"high"
],
"order": 123,
"placeholder": "Document title",
"placeholder2": "Valid until",
"predefinedDateRanges": [
{
"endDate": "2025-12-31",
"name": "Fiscal year 2025",
"startDate": "2025-01-01"
}
],
"prefill": "<string>",
"prefilled": true,
"regex": "<string>",
"regexValue": "<string>",
"required": true,
"role": "<string>",
"searchType": "date",
"showInDetail": true,
"showInDetailCondition": "model.D_DEFAULT_DESCRIPTION",
"showInIndex": true,
"showInIndexCondition": "model.D_DEFAULT_CATEGORY === 'invoice'",
"showInQuery": true,
"showInQueryCondition": "<string>",
"showInTemplate": true,
"showLabel": true,
"showLabelInTemplate": true,
"type": "date",
"userFilter": "<string>",
"validation": [
{
"message": "required_standard",
"parameter": "^[A-Z]{2}[0-9]{6}$",
"type": "regexp"
}
]
}
],
"form": [
{
"displayName": [
{
"language": "en",
"value": "Expiration date"
}
],
"fields": [
{
"name": "D_DEFAULT_DESCRIPTION",
"size": 12
}
],
"inlineStyle": "{\"background-color\":\"#f5f5f5\",\"padding\":\"12px\"}",
"name": "d_default_section_0",
"showInIndex": true,
"showInIndexCondition": "model.D_DEFAULT_CATEGORY === 'invoice'",
"showLabel": true
}
],
"formMode": true,
"formulaFallback": true,
"hasStrictFolderPlacement": true,
"htmlFallback": true,
"inlineMode": true,
"inlineStyle": ".tpage-part { font-size: 12px; }",
"isPrivateByDefault": true,
"language": "en",
"mobileFriendly": true,
"organization": [
"acme_org"
],
"previewMode": "normal",
"sectionMode": true,
"showStepNumber": true,
"signType": "image",
"supportsBarcode": true,
"supportsSignature": true,
"system": true,
"template": {
"content": "<div class=\"tpage-part\"><div class=\"col-lg-12\"><strong>Title</strong>: <input type=\"text\" data-model=\"model.documentTitle\"/></div></div>",
"footer": "<string>",
"header": "<string>"
},
"templateFile": "5gxo31ldfut9ljmnhdb2oxvajf7qndd4vgamt5sla8iwxie0tvtsgu6ksrfpr3e4",
"thumbnails": "qrfn0kr47ftdnrqz0cpuiglwh1kdo0r7ohei3l4ajgmfa2j7nhfeawz5oyh170pc",
"workflow": "wf_archive"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Path Parameters
Response
Returns the metadata definition.