curl --request GET \
--url https://app.hookie.ai/v1/forms/{workspace}/{project}/{slug}const options = {method: 'GET'};
fetch('https://app.hookie.ai/v1/forms/{workspace}/{project}/{slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/v1/forms/{workspace}/{project}/{slug}"
response = requests.get(url)
print(response.text){
"schema_version": 1,
"action": "<string>",
"fields": [
{}
],
"title": "<string>",
"description": "<string>",
"submit_label": "<string>",
"success_message": "<string>",
"redirect": true,
"honeypot": "<string>",
"turnstile_site_key": "<string>",
"theme": {
"accent": "<string>",
"font": "system",
"corners": "square",
"color_scheme": "auto"
}
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"max_projects": 123,
"projects": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true,
"feature": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"max_projects": 123,
"projects": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true,
"feature": "<string>"
}A form's public schema: fields, display text, Turnstile site key and theme
Public and unauthenticated, like the endpoint URL it describes (its three segments are the endpoint URL’s path). What a hosted form page, an embed or a renderer draws the form from. Carries no ids, dataset, destinations or secrets. Cached for 60 seconds; a change to the endpoint clears it in the data centre that served the change. Answers 404 for an unknown, disabled or suspended endpoint and for one that declares no form_fields and no form_settings. Any origin may read it (Access-Control-Allow-Origin: *). Cache misses are limited per client IP before database lookup (best effort, 60 per minute); cached schemas do not consume this allowance. URL rotation invalidates superseded schemas in the serving data centre; other data centres can retain them for the remaining 60-second cache lifetime.
curl --request GET \
--url https://app.hookie.ai/v1/forms/{workspace}/{project}/{slug}const options = {method: 'GET'};
fetch('https://app.hookie.ai/v1/forms/{workspace}/{project}/{slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/v1/forms/{workspace}/{project}/{slug}"
response = requests.get(url)
print(response.text){
"schema_version": 1,
"action": "<string>",
"fields": [
{}
],
"title": "<string>",
"description": "<string>",
"submit_label": "<string>",
"success_message": "<string>",
"redirect": true,
"honeypot": "<string>",
"turnstile_site_key": "<string>",
"theme": {
"accent": "<string>",
"font": "system",
"corners": "square",
"color_scheme": "auto"
}
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"max_projects": 123,
"projects": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true,
"feature": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"max_projects": 123,
"projects": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true,
"feature": "<string>"
}Response
The form's schema