Get a form
Returns one form with its full definition: steps, fields, branching rules, visibility conditions and branding. Returns 404 when the form does not exist in the company or is deleted.
Returns one form with its full definition: steps, fields, branching rules, visibility conditions and branding. Returns 404 when the form does not exist in the company or is deleted.
Authorization
x-api-key Company API key, created under Settings > API Keys.
In: header
Path Parameters
The form id.
Header Parameters
Optional with an API key or OAuth token: leave it out and the company the key or token belongs to is used. If sent, it must be that same company, otherwise the request is refused with 403 API_KEY_WRONG_COMPANY or OAUTH_WRONG_COMPANY.
^[0-9a-fA-F]{24}$Response Body
application/json
curl -X GET "https://example.com/forms/string"{ "archivedAt": "2019-08-24T14:15:22Z", "brandingConfig": { "logoUrl": "string", "redirectUrl": "string", "thankYouMessage": "string" }, "chainSourceFormId": "string", "companyId": "string", "createdAt": "2019-08-24T14:15:22Z", "createdByUserId": "string", "deletedAt": "2019-08-24T14:15:22Z", "distributionMaxReassignments": 0, "distributionOverrideEnabled": true, "distributionPreTargetCompanyId": "string", "distributionResponseTimeoutMinutes": 0, "distributionStrategy": "Park", "id": "string", "isPubliclyDiscoverable": true, "leadTargetPipelineId": "string", "name": "string", "paused": true, "publishedAt": "2019-08-24T14:15:22Z", "purpose": "FEEDBACK", "recaptchaThreshold": 0, "slug": "string", "status": "ARCHIVED", "steps": [ { "branchingRules": [ { "combinator": "string", "conditions": [ { "fieldId": "string", "operator": "contains", "value": "string" } ], "targetStepId": "string" } ], "fields": [ { "crmMappedTo": "string", "defaultValue": "string", "helpText": "string", "id": "string", "isRequired": true, "label": "string", "mappedTo": "string", "optionsConfig": [ { "label": "string", "value": "string" } ], "placeholder": "string", "sortOrder": 0, "type": "string", "validationConfig": { "acceptedFormats": [ "string" ], "allowedExtensions": "string", "description": "string", "futureOnly": true, "integerOnly": true, "maxDate": "string", "maxDurationMinutes": 0, "maxFileSizeMB": 0, "maxFiles": 0, "maxImages": 0, "maxLength": 0, "maxSelections": 0, "maxValue": 0, "minDate": "string", "minLength": 0, "minSelections": 0, "minValue": 0, "pastOnly": true, "pattern": "string", "patternMessage": "string", "title": "string" }, "visibilityConditions": { "combinator": "AND", "conditions": [ { "fieldId": "string", "operator": "contains", "value": "string" } ] } } ], "id": "string", "name": "string", "sortOrder": 0 } ], "updatedAt": "2019-08-24T14:15:22Z"}Update a CRM company PATCH
Changes the company's name or registry fields. Only the fields you send change. An org number another company already has returns `status` `duplicate` and saves nothing, unless you send `force: true`.
Get a form submission GET
Returns one submission with every answer and the request details captured when it was sent: IP address, user agent, referrer, reCAPTCHA score and time spent per step.