forms
PATCH
https://hermeticor.com /v1/forms/{id} Parameters
idstringpathrequiredRequest body
application/json
namestringdefinitionobjectShow child parameters
captchaobjectShow child parameters
providerstringrequiredsiteKeystringrequiredactionsActionsItem3[]redirectsobjectShow child parameters
alreadySubscribedstringerrorstringpendingstringconfirmedstringprogressivestringkioskbooleanthemeobjectShow child parameters
primarystringbackgroundstringtextstringfontstringradiusintegerbuttonStylestringlogoUrlstringteaserobjectShow child parameters
textstringrequiredsidestringshowstringcountdownobjectShow child parameters
tostringrequiredlabelstringexpiredTextstringspinobjectShow child parameters
segmentsSegmentsItem[]requiredbarobjectShow child parameters
positionstringtextstringstepsStepsItem5[]requiredShow child parameters
titlestringfieldsFieldsItem[]requiredsubmitLabelstringoptionalbooleansaveEachStepbooleansuccessSuccessVariant | object | SuccessVariant2 | SuccessVariant3doubleOptInobjectShow child parameters
connectionIdstringrequiredsubjectstringttlHoursintegerbodystringtemplateIdstringtopicIdstringtagsstring[]listIdsstring[]progressiveLimitintegersubmissionLimitobjectShow child parameters
maxintegerrequiredmessagestringmaxPerIpPerDayintegermaxPerVisitorPerDayintegerlocalestringminFillMsintegerwelcomeEmailobjectShow child parameters
connectionIdstringrequiredsubjectstringrequiredtextstringrequiredalreadySubscribedEmailobjectShow child parameters
connectionIdstringrequiredsubjectstringrequiredtextstringrequiredblockFreeEmailbooleansubmitLabelstringfailureTextstringtargetingobjectShow child parameters
urlIncludestring[]urlExcludestring[]delaySecondsnumberscrollPercentnumberexitIntentbooleanmobileBackExitbooleaninactivitySecondsnumberdevicestringvisitorstringminPageViewsintegerfrequencyDaysnumberaudienceobjectShow child parameters
modestringlistIdsstring[]segmentIdsstring[]hideKnownSubscribersbooleancountriesstring[]countriesExcludestring[]utmobjectShow child parameters
sourcestringmediumstringcampaignstringreferrerIncludestring[]cartobjectShow child parameters
minValuenumberminItemsintegeremptybooleanproductPagestringadIdstring{
"name": "string",
"definition": {
"captcha": {
"provider": "turnstile",
"siteKey": "string"
},
"actions": [],
"redirects": {
"alreadySubscribed": "string",
"error": "string",
"pending": "string",
"confirmed": "string"
},
"progressive": "off",
"kiosk": false,
"theme": {
"primary": "#1f6feb",
"background": "#ffffff",
"text": "#111111",
"font": "system",
"radius": 8,
"buttonStyle": "solid",
"logoUrl": "string"
},
"teaser": {
"text": "string",
"side": "right",
"show": "instead"
},
"countdown": {
"to": "2024-01-01T00:00:00Z",
"label": "",
"expiredText": ""
},
"spin": {
"segments": [
{
"label": "string",
"weight": 0,
"poolId": "string"
}
]
},
"bar": {
"position": "bottom",
"text": ""
},
"steps": [
{
"title": "string",
"fields": [
{
"type": "email",
"key": "string",
"label": "",
"required": false,
"when": [
{
"field": "string",
"op": "eq",
"value": ""
}
],
"placeholder": "string",
"helpText": "string",
"className": "string",
"saveTo": "string",
"attributes": {},
"pattern": "string",
"validationMessage": "string",
"requiredMessage": "string",
"minLength": 0,
"maxLength": 0,
"always": true,
"readOnly": true,
"group": "string",
"groupCollapsed": true
}
],
"submitLabel": "string",
"optional": true
}
],
"saveEachStep": true,
"success": {
"type": "message",
"text": "Thanks!"
},
"doubleOptIn": {
"connectionId": "string",
"subject": "Please confirm your subscription",
"ttlHours": 72,
"body": "string",
"templateId": "string"
},
"topicId": "string",
"tags": [],
"listIds": [],
"progressiveLimit": 0,
"submissionLimit": {
"max": 0,
"message": "This form is no longer accepting responses."
},
"maxPerIpPerDay": 0,
"maxPerVisitorPerDay": 0,
"locale": "string",
"minFillMs": 1500,
"welcomeEmail": {
"connectionId": "string",
"subject": "string",
"text": "string"
},
"alreadySubscribedEmail": {
"connectionId": "string",
"subject": "string",
"text": "string"
},
"blockFreeEmail": false,
"submitLabel": "string",
"failureText": "string"
},
"targeting": {
"urlInclude": [
"string"
],
"urlExclude": [
"string"
],
"delaySeconds": 0,
"scrollPercent": 0,
"exitIntent": true,
"mobileBackExit": true,
"inactivitySeconds": 0,
"device": "all",
"visitor": "all",
"minPageViews": 0,
"frequencyDays": 0,
"audience": {
"mode": "show",
"listIds": [],
"segmentIds": []
},
"hideKnownSubscribers": true,
"countries": [
"string"
],
"countriesExclude": [
"string"
],
"utm": {
"source": "string",
"medium": "string",
"campaign": "string"
},
"referrerInclude": [
"string"
],
"cart": {
"minValue": 0,
"minItems": 0,
"empty": true
},
"productPage": "only"
},
"adId": "string"
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/forms/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","definition":{"captcha":{"provider":"turnstile","siteKey":"string"},"actions":[],"redirects":{"alreadySubscribed":"string","error":"string","pending":"string","confirmed":"string"},"progressive":"off","kiosk":false,"theme":{"primary":"#1f6feb","background":"#ffffff","text":"#111111","font":"system","radius":8,"buttonStyle":"solid","logoUrl":"string"},"teaser":{"text":"string","side":"right","show":"instead"},"countdown":{"to":"2024-01-01T00:00:00Z","label":"","expiredText":""},"spin":{"segments":[{"label":"string","weight":0,"poolId":"string"}]},"bar":{"position":"bottom","text":""},"steps":[{"title":"string","fields":[{"type":"email","key":"string","label":"","required":false,"when":[{"field":"string","op":"eq","value":""}],"placeholder":"string","helpText":"string","className":"string","saveTo":"string","attributes":{},"pattern":"string","validationMessage":"string","requiredMessage":"string","minLength":0,"maxLength":0,"always":true,"readOnly":true,"group":"string","groupCollapsed":true}],"submitLabel":"string","optional":true}],"saveEachStep":true,"success":{"type":"message","text":"Thanks!"},"doubleOptIn":{"connectionId":"string","subject":"Please confirm your subscription","ttlHours":72,"body":"string","templateId":"string"},"topicId":"string","tags":[],"listIds":[],"progressiveLimit":0,"submissionLimit":{"max":0,"message":"This form is no longer accepting responses."},"maxPerIpPerDay":0,"maxPerVisitorPerDay":0,"locale":"string","minFillMs":1500,"welcomeEmail":{"connectionId":"string","subject":"string","text":"string"},"alreadySubscribedEmail":{"connectionId":"string","subject":"string","text":"string"},"blockFreeEmail":false,"submitLabel":"string","failureText":"string"},"targeting":{"urlInclude":["string"],"urlExclude":["string"],"delaySeconds":0,"scrollPercent":0,"exitIntent":true,"mobileBackExit":true,"inactivitySeconds":0,"device":"all","visitor":"all","minPageViews":0,"frequencyDays":0,"audience":{"mode":"show","listIds":[],"segmentIds":[]},"hideKnownSubscribers":true,"countries":["string"],"countriesExclude":["string"],"utm":{"source":"string","medium":"string","campaign":"string"},"referrerInclude":["string"],"cart":{"minValue":0,"minItems":0,"empty":true},"productPage":"only"},"adId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"name": "string",
"kind": "embed",
"status": "draft"
}Schema
idstringrequirednamestringrequiredkindstringrequiredstatusstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/forms/{id}/publish Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/forms/{id}/publish" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string"
}Schema
idstringrequiredPOST
https://hermeticor.com /v1/forms/{id}/ab Parameters
idstringpathrequiredRequest body
application/json
namestringvariantsobject[]requiredShow child parameters
formIdstringrequiredweightintegerrequired{
"name": "string",
"variants": [
{
"formId": "string",
"weight": 0
}
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/forms/{id}/ab" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","variants":[{"formId":"string","weight":0}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/forms/{id}/ab-report Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/forms/{id}/ab-report" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
{}POST
https://hermeticor.com /v1/forms/{id}/ab-promote Parameters
idstringpathrequiredRequest body
application/json
winnerFormIdstringrequired{
"winnerFormId": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/forms/{id}/ab-promote" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"winnerFormId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/forms/{id}/unpublish Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/forms/{id}/unpublish" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated