forms
POST
https://hermeticor.com /p/f/{ref}/upload Upload a file for a file field of a published form; the returned URL is the answer to submit
Parameters
refstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/p/f/{ref}/upload"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"url": "string",
"filename": "string",
"bytes": 0
}Schema
urlstringrequiredfilenamestringrequiredbytesintegerrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /ingest/v1/forms/{id}/upload Same as the hosted upload, for embedded forms (site key)
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/ingest/v1/forms/{id}/upload" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /ingest/v1/forms/{id}/submit Parameters
idstringpathrequiredRequest body
application/json
dataobjectrequiredstartedAtintegerwebsitestringanonymousIdstringpageUrlstringturnstileTokenstringcaptchaTokenstringprefillTokenstringstepintegerstepTokenstring{
"data": {},
"startedAt": 0,
"website": "string",
"anonymousId": "string",
"pageUrl": "string",
"turnstileToken": "string",
"captchaToken": "string",
"prefillToken": "string",
"step": 0,
"stepToken": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/ingest/v1/forms/{id}/submit" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"data":{},"startedAt":0,"website":"string","anonymousId":"string","pageUrl":"string","turnstileToken":"string","captchaToken":"string","prefillToken":"string","step":0,"stepToken":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true,
"success": {
"type": "message",
"text": "string",
"title": "string"
},
"pendingConfirmation": true,
"outcome": "success",
"spin": {
"index": 0
},
"stepToken": "string"
}Schema
okbooleanrequiredsuccessSuccessVariant4 | SuccessVariant5 | SuccessVariant6 | SuccessVariant7requiredpendingConfirmationbooleanrequiredoutcomestringspinobjectShow child parameters
indexintegerrequiredstepTokenstringGET
https://hermeticor.com /ingest/v1/forms Parameters
vstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/ingest/v1/forms" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"forms": [
{
"id": "string"
}
]
}Schema
formsobject[]requiredShow child parameters
idstringrequiredGET
https://hermeticor.com /p/f/{ref} Hosted form page (`pp` = signed progressive-profiling token)
Parameters
ppstringqueryrefstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/p/f/{ref}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
POST
https://hermeticor.com /p/f/{ref}/submit Parameters
refstringpathrequiredRequest body
application/json
dataobjectrequiredstartedAtintegerwebsitestringanonymousIdstringpageUrlstringturnstileTokenstringcaptchaTokenstringprefillTokenstringstepintegerstepTokenstring{
"data": {},
"startedAt": 0,
"website": "string",
"anonymousId": "string",
"pageUrl": "string",
"turnstileToken": "string",
"captchaToken": "string",
"prefillToken": "string",
"step": 0,
"stepToken": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/p/f/{ref}/submit" \
-H "Content-Type: application/json" \
-d '{"data":{},"startedAt":0,"website":"string","anonymousId":"string","pageUrl":"string","turnstileToken":"string","captchaToken":"string","prefillToken":"string","step":0,"stepToken":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /p/c/{*} Double opt-in confirmation page (does not change state)
Parameters
*stringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/p/c/{*}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
POST
https://hermeticor.com /p/c/{*} Confirm double opt-in; idempotent
Parameters
*stringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/p/c/{*}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
GET
https://hermeticor.com /v1/forms/{id}/captcha-secret Whether a captcha secret is stored (the secret itself is never returned)
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/forms/{id}/captcha-secret" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"configured": true
}Schema
configuredbooleanrequiredPUT
https://hermeticor.com /v1/forms/{id}/captcha-secret Store (or clear with null) the sealed secret for the form captcha provider
Parameters
idstringpathrequiredRequest body
application/json
secretstringrequired{
"secret": "string"
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/forms/{id}/captcha-secret" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"secret":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPOST
https://hermeticor.com /v1/forms/{id}/prefill-link Signed link that shows the hosted form to a known contact with known fields hidden or pre-filled
Parameters
idstringpathrequiredRequest body
application/json
profileIdstringrequiredttlHoursinteger{
"profileId": "string",
"ttlHours": 72
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/forms/{id}/prefill-link" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"profileId":"string","ttlHours":72}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"token": "string",
"url": "string"
}Schema
tokenstringrequiredurlstringrequiredUpdated