{
"error": "Name can't be blank",
"error_details": [
{
"attribute": "name",
"message": "can't be blank"
}
]
}
Entries
Submit an entry
Create an entry on a form owned by the current user. A field_values key that is not a
writable field of the form, or a value of the wrong shape, is rejected with 422 listing
every offending key; missing required fields produce a validation error.
{
"error": "Name can't be blank",
"error_details": [
{
"attribute": "name",
"message": "can't be blank"
}
]
}
Authorizations
Authorization
string
header
required
Personal Access Token prefixed with fh_. Sent as Authorization: Bearer fh_xxx.
The scope required by each endpoint is listed in that endpoint's description.
Scopes
entry:write
Path Parameters
form_token
string
required
Form token
Body
application/json
field_values
object
required
Map keyed by field api_code. A key that is not a writable field of the form, or a value of the wrong shape, is rejected with 422 listing every offending key; GET /api/v1/forms/{form_token}/entry_schema serves the accepted shapes as a JSON Schema. Fields with private: true may be submitted; a private field's predefined_value applies only when the field is not submitted.
Example:
{ "field_1": "Jane Doe" }
Response
Created
data
object
required
A submitted entry. In addition to the fixed fields below, every field of the
parent form appears as a top-level key on the entry under its api_code. The
JSON value type for each such key is determined by the corresponding field's
type.
Field value shapes
Each field of the parent form appears as a top-level key on the entry, keyed by its
api_code. The JSON shape of the value depends on the field's type. On write, a key
that is not a writable field of the form is rejected, while read-only values (computed or recorded),
server-derived keys and the entry's own keys (serial_number, token, created_at, info_*, ...)
are accepted and ignored, so an entry as read can be written back whole; null clears a value ([] for
attachment, product and booking). The exact shape every field of a given form accepts
is served as a JSON Schema by GET /api/v1/forms/{form_token}/entry_schema (and
GET /api/v1/f/{form_token}/entry_schema for a published form):
Field type (type)
Submitted value
short_text
String. The submitted text.
long_text
String. Multi-line text.
radio
Object { value, other_text?, extended_text? }, or null when unset. value is the api_code of the selected choice. other_text carries the respondent's free-text input and is only present when the selected choice has is_other: true. extended_text carries the free-text input for a choice that has allow_extended_text: true. The two text keys are mutually exclusive per choice (an is_other choice cannot also enable allow_extended_text) and both are omitted when blank. On write, a bare string is accepted as shorthand for { value: <string> }; null clears the field; a text key that doesn't match the selected choice's configuration is rejected.
checkbox
Array of { value, other_text?, extended_text? } objects with the same per-choice semantics as radio. Empty array when nothing is selected. At most one element may carry other_text (the element whose value corresponds to the is_other choice). On write, null clears the field; bare strings in the array are accepted as shorthand for { value: <string> }; repeating a choice is rejected.
image_radio
Object { value }, or null when unset. value is the api_code of the selected choice. Image choices support neither other_text nor extended_text. On write, a bare string is accepted as shorthand for { value: <string> }; null clears the field.
image_checkbox
Array of { value } objects — value is the api_code of a selected choice. Empty array when nothing is selected. On write, null clears the field; bare strings in the array are accepted as shorthand; repeating a choice is rejected.
dropdown
Object { value, other_text? }, or null when unset. Same value and other_text semantics as radio. dropdown does not support extended_text.
number
Number. Stored as a float; integer-looking values may serialize without a decimal point.
email
String — an email address.
phone
Object { country_id, country_code, number } when the field takes international numbers, otherwise { number }. country_id is an ISO 3166-1 alpha-2 country code (e.g. "CN", "US") and is required; country_code is the dialing code without + (e.g. "86", "1") and is optional on write — when omitted it is derived from country_id; number is the local number without the dialing-code prefix.
date
Naive wall-clock string formatted per the field's precision: "YYYY-MM" (month), "YYYY-MM-DD" (day), "YYYY-MM-DD HH:mm" (minute), "YYYY-MM-DD HH:mm:ss" (second). Values are interpreted in the form's timezone setting. When no timezone is supplied at creation time, the form uses your account's timezone, falling back to UTC if that is unset or invalid.
name
String — the submitted name.
url
String — a URL.
address
Object { address_line1, address_line2, city, state, postal_code, country }. country is an ISO 3166-1 alpha-2 country code; state is an ISO 3166-2 subdivision code (e.g. "CA", "NY"), not a localized label.
rating
Integer — the chosen rating level (1..rating_max).
nps
Integer — the selected score (0..10).
attachment
Array of objects { id: string, name: string, url: string, file_size: integer, content_type: string }. url is a signed download link valid for 24 hours — refetch the entry to get a fresh link rather than caching it; name is the original filename. On write: an array of upload_ids for new files plus, when updating, the entry's stored files to keep, each as its id or as read (a file stored on another entry is refused); send [] to clear.
audio
Read-only object { id, name, url, file_size, content_type, duration } describing the recording (url is a signed download link valid for 24 hours; duration is the recording length). Null when no recording. On write, a value is accepted and ignored.
cascade
Object { level_1: <api_code>, level_2: <api_code>, ... } — one key per level (the field's levels setting, default 2). Each value is the api_code of the choice selected at that level; the path runs down to a choice without sub-choices.
ranking
Object { <choice_api_code>: <rank> } — rank is a positive integer, contiguous starting at 1 for the highest-ranked choice. Unranked choices are omitted.
matrix
Nested object { <statement_api_code>: { <dimension_api_code>: <cell_value> }, ... }, or null when unset. Each cell reads and writes its dimension type's own entry value shape — e.g. a dropdown cell is { value: <choice_api_code> } (bare-string shorthand accepted on write), a number cell is a number.
likert
Object { <statement_api_code>: [<choice_api_code>, ...] }. The value is always an array — a single-choice answer is wrapped in a one-element array.
time
Object { hour: integer, minute: integer }, plus second: integer when the field has include_second enabled (e.g. { "hour": 9, "minute": 5 }), or null when unset.
Read-only string — a signed download URL for the signature image, valid for 24 hours. Refetch the entry to obtain a fresh link rather than caching it. On write, a value is accepted and ignored.
matrix_rating
Nested object { <statement_api_code>: { <dimension_api_code>: <integer> } }. The inner integer is the chosen rating level (1..rating_max).
table
Array of row objects [{ <dimension_api_code>: <cell_value>, ... }]. Each cell reads and writes its dimension type's own entry value shape — e.g. a dropdown cell is { value: <choice_api_code> } (bare-string shorthand accepted on write), a number cell is a number. On read, rows with nothing filled in are left out.
product
Array [{ api_code, number, specification? }]. specification is present when the goods item has dimensions; it is an object of { <dim_api_code>: <option_api_code> }. On write, number is required and at least 1 — leave out items not bought, and send [] to clear.
booking
Array of reservations. On write: [{ api_code, scheduled_at, end_at?, number? }] — api_code is the reservation item; scheduled_at (and end_at) are ISO8601 date-time strings; number defaults to 1 (values other than 1 require allow_multiple_number: true). For a weekly-schedule item send scheduled_at on the target day. For a per-day-of-week time-slot item send scheduled_at = day + slot start and end_at = day + slot end, matching one of the item's configured slots (quota_setting.daily_time_range_quotas[].start_time / end_time). item_name / time_range_code are server-derived; on write they are accepted and ignored. Send [] to clear. On read: [{ api_code, scheduled_at, end_at, number, item_name, time_range_code }], [] when none.
linked_form
On write: string — the entry_token of an entry in the associated form (or the linked entry object as read, taken by its entry_token; a { "deleted": true } read leaves the link as it stands), or null to clear. Public submitters can discover valid entry_tokens via GET /api/v1/f/{form_token}/associated_entry_options. The server resolves the token against associated_form_token; an unknown token yields 422. On read: one of three shapes — (1) null if not linked; (2) { "deleted": true } if the linked entry has been deleted; (3) Object { entry_token, serial_number, associated_fields, display_fields } describing the linked entry, where associated_fields / display_fields map each api_code (from associated_field_api_codes / display_field_api_codes respectively) to that field's value, formatted per the linked field's own type (recursive — e.g. a date field renders as its naive wall-clock string, an attachment field renders as its array of file objects).
formula
Read-only. The computed result: a number, a naive date string (YYYY-MM-DD), or a string, depending on what the formula evaluates to. On write, a value is accepted and ignored.
page_break
None — display-only field; never appears as an entry value.
description
None — display-only field; never appears as an entry value.
The write shape of each field type is also given as a schema:
EntryValueInputShortText, EntryValueInputLongText, EntryValueInputRadio, EntryValueInputCheckbox, EntryValueInputImageRadio, EntryValueInputImageCheckbox, EntryValueInputDropdown, EntryValueInputNumber, EntryValueInputEmail, EntryValueInputPhone, EntryValueInputDate, EntryValueInputName, EntryValueInputUrl, EntryValueInputAddress, EntryValueInputRating, EntryValueInputNps, EntryValueInputAttachment, EntryValueInputAudio, EntryValueInputCascade, EntryValueInputRanking, EntryValueInputMatrix, EntryValueInputLikert, EntryValueInputTime, EntryValueInputLocation, EntryValueInputSignature, EntryValueInputMatrixRating, EntryValueInputTable, EntryValueInputProduct, EntryValueInputBooking, EntryValueInputLinkedForm, EntryValueInputFormula.
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"FormHug","description":"Build smart, beautiful forms for you and your audience.","colors":{"primary":"#6366F1","light":"#818CF8","dark":"#4F46E5"},"logo":{"light":"https://mintcdn.com/formhug-8bc4ebd1/QkuMZ3dKhwrJ6Thy/logo/light.svg?fit=max\u0026auto=format\u0026n=QkuMZ3dKhwrJ6Thy\u0026q=85\u0026s=88284690f11209ca0abb5239bc7f1179","dark":"https://mintcdn.com/formhug-8bc4ebd1/QkuMZ3dKhwrJ6Thy/logo/dark.svg?fit=max\u0026auto=format\u0026n=QkuMZ3dKhwrJ6Thy\u0026q=85\u0026s=18b178b7a4ba46472029621b10203014","href":"https://formhug.ai"},"favicon":{"light":"https://mintcdn.com/formhug-8bc4ebd1/QkuMZ3dKhwrJ6Thy/favicon.svg?fit=max\u0026auto=format\u0026n=QkuMZ3dKhwrJ6Thy\u0026q=85\u0026s=5f2ad4abbddc4fcd7fefb3230c9fb236","dark":"https://mintcdn.com/formhug-8bc4ebd1/QkuMZ3dKhwrJ6Thy/images/favicon-dark.svg?fit=max\u0026auto=format\u0026n=QkuMZ3dKhwrJ6Thy\u0026q=85\u0026s=1c1c281ed3ac1524d0543dd2dfcddb68"},"appearance":{"default":"system"},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"mailto:support@formhug.ai","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://formhug.ai/?ref=docs"}},"footer":{"socials":{"x":"https://x.com/FormHug","youtube":"https://www.youtube.com/@formhug","instagram":"https://www.instagram.com/formhug","facebook":"https://www.facebook.com/profile.php?id=61586802254413"},"links":[{"header":"General","items":[{"label":"Pricing","href":"https://formhug.ai/pricing"},{"label":"Docs","href":"https://formhug.ai/docs"},{"label":"Blog","href":"https://formhug.ai/blog"},{"label":"Templates","href":"https://formhug.ai/templates"},{"label":"Integrations","href":"https://formhug.ai/integrations"},{"label":"Quizzes","href":"https://formhug.ai/quizzes"}]},{"header":"Product","items":[{"label":"AI Quiz Maker","href":"https://formhug.ai/quiz-maker"},{"label":"MCP for Agents","href":"https://formhug.ai/mcp-for-agents"},{"label":"AI Form Builder","href":"https://formhug.ai/ai-form-builder"},{"label":"AI Survey Maker","href":"https://formhug.ai/survey-maker"},{"label":"ChatGPT Form Builder","href":"https://formhug.ai/chatgpt-form-builder"},{"label":"Claude Form Builder","href":"https://formhug.ai/claude-form-builder"}]},{"header":"Compare","items":[{"label":"Compare All","href":"https://formhug.ai/vs"},{"label":"Jotform Alternative","href":"https://formhug.ai/vs/jotform-alternative"},{"label":"Typeform Alternative","href":"https://formhug.ai/vs/typeform-alternative"},{"label":"Google Forms Alternative","href":"https://formhug.ai/vs/google-forms-alternative"},{"label":"Tally Alternative","href":"https://formhug.ai/vs/tally-alternative"},{"label":"Fillout Alternative","href":"https://formhug.ai/vs/fillout-alternative"}]},{"header":"Resources","items":[{"label":"About","href":"https://formhug.ai/about"},{"label":"Privacy","href":"https://formhug.ai/privacy-policy"},{"label":"Terms","href":"https://formhug.ai/terms-of-service"}]}]},"search":{"prompt":"Search FormHug docs..."},"seo":{"metatags":{"canonical":"https://formhug.ai/docs"},"indexing":"all"},"fonts":{"family":"Inter"},"icons":{"library":"fontawesome"},"integrations":{"ga4":{"measurementId":"G-ZVVSLQ785E"}},"thumbnails":{"appearance":"light"},"interaction":{"drilldown":true},"metadata":{"timestamp":true},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"formhug-8bc4ebd1","hasAudioNarration":false,"actualSubdomain":"formhug-8bc4ebd1","customDomains":["formhug.ai"],"gitSource":{"type":"github","owner":"formhug","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{},"buildId":"6ad6e449807fa967a0983e6d","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"API Reference","count":51},{"language":"default","tag":"Features","count":34},{"language":"default","tag":"Integrations","count":16},{"language":"default","tag":"Builder","count":13},{"language":"default","tag":"Form Settings","count":10},{"language":"default","tag":"Guides","count":10},{"language":"default","tag":"Field Types","count":9},{"language":"default","tag":"Use Cases","count":9},{"language":"default","tag":"Apps \u0026 Automation","count":9},{"language":"default","tag":"Entries","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/entries/submit-an-entry","slug":"/api-reference/entries/submit-an-entry","pageMetadata":{"title":"Submit an entry","description":"Create an entry on a form owned by the current user. A `field_values` key that is not a\nwritable field of the form, or a value of the wrong shape, is rejected with 422 listing\nevery offending key; missing required fields produce a validation error.\n\n**Required scope:** `entry:write`.\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/v1/forms/{form_token}/entries","href":"/api-reference/entries/submit-an-entry","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Create an entry on a form owned by the current user. A \", _jsx(_components.code, {\n children: \"field_values\"\n }), \" key that is not a\\nwritable field of the form, or a value of the wrong shape, is rejected with 422 listing\\nevery offending key; missing required fields produce a validation error.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Required scope:\"\n }), \" \", _jsx(_components.code, {\n children: \"entry:write\"\n }), \".\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Submit an entry","description":"Create an entry on a form owned by the current user. A `field_values` key that is not a\nwritable field of the form, or a value of the wrong shape, is rejected with 422 listing\nevery offending key; missing required fields produce a validation error.\n\n**Required scope:** `entry:write`.\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/v1/forms/{form_token}/entries","href":"/api-reference/entries/submit-an-entry","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/formhug-8bc4ebd1/4e6b7b0101f2c4d1/external-links.js"],"openApiReferenceData":{"operation":{"summary":"Submit an entry","tags":["Entries"],"description":"Create an entry on a form owned by the current user. A `field_values` key that is not a\nwritable field of the form, or a value of the wrong shape, is rejected with 422 listing\nevery offending key; missing required fields produce a validation error.\n\n**Required scope:** `entry:write`.\n","security":["5dc4cf13-bfe2-4fb8-8a22-a0a9095634c7"],"parameters":[],"responses":{"201":"f283fc2b-5607-4ffa-b10a-b97b9a28da4d","403":"acfdfb43-4965-4957-86f7-31eb647cd863","404":"4af2ec35-ca72-41d7-837d-63f87191f634","422":"d6334882-4f87-49fc-a1c4-900ff671b493"},"requestBody":"bccc3eba-85e7-449c-8858-e621c48666c9","method":"post","type":"path","servers":["8e8bfda0-f1ef-4ae4-afa9-25e9767fdcdc"],"path":"/api/v1/forms/{form_token}/entries","baseUrlOptions":["https://formhug.ai"],"title":"Submit an entry","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"420f3f4e-bafd-423a-a6e7-32073dfecb1b":{"name":"form_token","in":"path","description":"Form token","required":true,"schema":{"type":"string","isRequired":true,"description":"Form token","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["field_values"],"properties":{"field_values":{"type":"object","description":"Map keyed by field api_code. A key that is not a writable field of the form, or a value of the wrong shape, is rejected with 422 listing every offending key; `GET /api/v1/forms/{form_token}/entry_schema` serves the accepted shapes as a JSON Schema. Fields with `private: true` may be submitted; a private field's `predefined_value` applies only when the field is not submitted.","example":{"field_1":"Jane Doe"},"isRequired":true,"uniqueKey":"field_values","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"field_values":{"field_1":"Jane Doe"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"f283fc2b-5607-4ffa-b10a-b97b9a28da4d":{"description":"Created","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["serial_number","token","created_at","updated_at"],"description":"A submitted entry. In addition to the fixed fields below, every field of the\nparent form appears as a top-level key on the entry under its `api_code`. The\nJSON value type for each such key is determined by the corresponding field's\n`type`.\n\n## Field value shapes\n\nEach field of the parent form appears as a top-level key on the entry, keyed by its\n`api_code`. The JSON shape of the value depends on the field's `type`. On write, a key\nthat is not a writable field of the form is rejected, while read-only values (computed or recorded),\nserver-derived keys and the entry's own keys (`serial_number`, `token`, `created_at`, `info_*`, ...)\nare accepted and ignored, so an entry as read can be written back whole; `null` clears a value (`[]` for\n`attachment`, `product` and `booking`). The exact shape every field of a given form accepts\nis served as a JSON Schema by `GET /api/v1/forms/{form_token}/entry_schema` (and\n`GET /api/v1/f/{form_token}/entry_schema` for a published form):\n\n| Field type (`type`) | Submitted value |\n|---|---|\n| `short_text` | String. The submitted text. |\n| `long_text` | String. Multi-line text. |\n| `radio` | Object `{ value, other_text?, extended_text? }`, or `null` when unset. `value` is the `api_code` of the selected choice. `other_text` carries the respondent's free-text input and is only present when the selected choice has `is_other: true`. `extended_text` carries the free-text input for a choice that has `allow_extended_text: true`. The two text keys are mutually exclusive per choice (an `is_other` choice cannot also enable `allow_extended_text`) and both are omitted when blank. On write, a bare string is accepted as shorthand for `{ value: \u003cstring> }`; `null` clears the field; a text key that doesn't match the selected choice's configuration is rejected. |\n| `checkbox` | Array of `{ value, other_text?, extended_text? }` objects with the same per-choice semantics as `radio`. Empty array when nothing is selected. At most one element may carry `other_text` (the element whose `value` corresponds to the `is_other` choice). On write, `null` clears the field; bare strings in the array are accepted as shorthand for `{ value: \u003cstring> }`; repeating a choice is rejected. |\n| `image_radio` | Object `{ value }`, or `null` when unset. `value` is the `api_code` of the selected choice. Image choices support neither `other_text` nor `extended_text`. On write, a bare string is accepted as shorthand for `{ value: \u003cstring> }`; `null` clears the field. |\n| `image_checkbox` | Array of `{ value }` objects — `value` is the `api_code` of a selected choice. Empty array when nothing is selected. On write, `null` clears the field; bare strings in the array are accepted as shorthand; repeating a choice is rejected. |\n| `dropdown` | Object `{ value, other_text? }`, or `null` when unset. Same `value` and `other_text` semantics as `radio`. `dropdown` does not support `extended_text`. |\n| `number` | Number. Stored as a float; integer-looking values may serialize without a decimal point. |\n| `email` | String — an email address. |\n| `phone` | Object `{ country_id, country_code, number }` when the field takes international numbers, otherwise `{ number }`. `country_id` is an ISO 3166-1 alpha-2 country code (e.g. `\"CN\"`, `\"US\"`) and is required; `country_code` is the dialing code without `+` (e.g. `\"86\"`, `\"1\"`) and is optional on write — when omitted it is derived from `country_id`; `number` is the local number without the dialing-code prefix. |\n| `date` | Naive wall-clock string formatted per the field's `precision`: `\"YYYY-MM\"` (month), `\"YYYY-MM-DD\"` (day), `\"YYYY-MM-DD HH:mm\"` (minute), `\"YYYY-MM-DD HH:mm:ss\"` (second). Values are interpreted in the form's `timezone` setting. When no `timezone` is supplied at creation time, the form uses your account's timezone, falling back to `UTC` if that is unset or invalid. |\n| `name` | String — the submitted name. |\n| `url` | String — a URL. |\n| `address` | Object `{ address_line1, address_line2, city, state, postal_code, country }`. `country` is an ISO 3166-1 alpha-2 country code; `state` is an ISO 3166-2 subdivision code (e.g. `\"CA\"`, `\"NY\"`), not a localized label. |\n| `rating` | Integer — the chosen rating level (1..`rating_max`). |\n| `nps` | Integer — the selected score (0..10). |\n| `attachment` | Array of objects `{ id: string, name: string, url: string, file_size: integer, content_type: string }`. `url` is a signed download link valid for 24 hours — refetch the entry to get a fresh link rather than caching it; `name` is the original filename. On write: an array of `upload_id`s for new files plus, when updating, the entry's stored files to keep, each as its `id` or as read (a file stored on another entry is refused); send `[]` to clear. |\n| `audio` | Read-only object `{ id, name, url, file_size, content_type, duration }` describing the recording (`url` is a signed download link valid for 24 hours; `duration` is the recording length). Null when no recording. On write, a value is accepted and ignored. |\n| `cascade` | Object `{ level_1: \u003capi_code>, level_2: \u003capi_code>, ... }` — one key per level (the field's `levels` setting, default `2`). Each value is the `api_code` of the choice selected at that level; the path runs down to a choice without sub-choices. |\n| `ranking` | Object `{ \u003cchoice_api_code>: \u003crank> }` — `rank` is a positive integer, contiguous starting at `1` for the highest-ranked choice. Unranked choices are omitted. |\n| `matrix` | Nested object `{ \u003cstatement_api_code>: { \u003cdimension_api_code>: \u003ccell_value> }, ... }`, or `null` when unset. Each cell reads and writes its dimension type's own entry value shape — e.g. a `dropdown` cell is `{ value: \u003cchoice_api_code> }` (bare-string shorthand accepted on write), a `number` cell is a number. |\n| `likert` | Object `{ \u003cstatement_api_code>: [\u003cchoice_api_code>, ...] }`. The value is always an array — a single-choice answer is wrapped in a one-element array. |\n| `time` | Object `{ hour: integer, minute: integer }`, plus `second: integer` when the field has `include_second` enabled (e.g. `{ \"hour\": 9, \"minute\": 5 }`), or `null` when unset. |\n| `location` | Object `{ longitude: number, latitude: number, address: string }`. |\n| `signature` | Read-only string — a signed download URL for the signature image, valid for 24 hours. Refetch the entry to obtain a fresh link rather than caching it. On write, a value is accepted and ignored. |\n| `matrix_rating` | Nested object `{ \u003cstatement_api_code>: { \u003cdimension_api_code>: \u003cinteger> } }`. The inner integer is the chosen rating level (1..`rating_max`). |\n| `table` | Array of row objects `[{ \u003cdimension_api_code>: \u003ccell_value>, ... }]`. Each cell reads and writes its dimension type's own entry value shape — e.g. a `dropdown` cell is `{ value: \u003cchoice_api_code> }` (bare-string shorthand accepted on write), a `number` cell is a number. On read, rows with nothing filled in are left out. |\n| `product` | Array `[{ api_code, number, specification? }]`. `specification` is present when the goods item has dimensions; it is an object of `{ \u003cdim_api_code>: \u003coption_api_code> }`. On write, `number` is required and at least 1 — leave out items not bought, and send `[]` to clear. |\n| `booking` | Array of reservations. On write: `[{ api_code, scheduled_at, end_at?, number? }]` — `api_code` is the reservation item; `scheduled_at` (and `end_at`) are ISO8601 date-time strings; `number` defaults to 1 (values other than 1 require `allow_multiple_number: true`). For a weekly-schedule item send `scheduled_at` on the target day. For a per-day-of-week time-slot item send `scheduled_at` = day + slot start and `end_at` = day + slot end, matching one of the item's configured slots (`quota_setting.daily_time_range_quotas[].start_time` / `end_time`). `item_name` / `time_range_code` are server-derived; on write they are accepted and ignored. Send `[]` to clear. On read: `[{ api_code, scheduled_at, end_at, number, item_name, time_range_code }]`, `[]` when none. |\n| `linked_form` | On write: string — the `entry_token` of an entry in the associated form (or the linked entry object as read, taken by its `entry_token`; a `{ \"deleted\": true }` read leaves the link as it stands), or `null` to clear. Public submitters can discover valid `entry_token`s via `GET /api/v1/f/{form_token}/associated_entry_options`. The server resolves the token against `associated_form_token`; an unknown token yields 422. On read: one of three shapes — (1) `null` if not linked; (2) `{ \"deleted\": true }` if the linked entry has been deleted; (3) Object `{ entry_token, serial_number, associated_fields, display_fields }` describing the linked entry, where `associated_fields` / `display_fields` map each `api_code` (from `associated_field_api_codes` / `display_field_api_codes` respectively) to that field's value, formatted per the linked field's own type (recursive — e.g. a `date` field renders as its naive wall-clock string, an `attachment` field renders as its array of file objects). |\n| `formula` | Read-only. The computed result: a number, a naive date string (`YYYY-MM-DD`), or a string, depending on what the formula evaluates to. On write, a value is accepted and ignored. |\n| `page_break` | None — display-only field; never appears as an entry value. |\n| `description` | None — display-only field; never appears as an entry value. |\n\n\nThe write shape of each field type is also given as a schema:\n`EntryValueInputShortText`, `EntryValueInputLongText`, `EntryValueInputRadio`, `EntryValueInputCheckbox`, `EntryValueInputImageRadio`, `EntryValueInputImageCheckbox`, `EntryValueInputDropdown`, `EntryValueInputNumber`, `EntryValueInputEmail`, `EntryValueInputPhone`, `EntryValueInputDate`, `EntryValueInputName`, `EntryValueInputUrl`, `EntryValueInputAddress`, `EntryValueInputRating`, `EntryValueInputNps`, `EntryValueInputAttachment`, `EntryValueInputAudio`, `EntryValueInputCascade`, `EntryValueInputRanking`, `EntryValueInputMatrix`, `EntryValueInputLikert`, `EntryValueInputTime`, `EntryValueInputLocation`, `EntryValueInputSignature`, `EntryValueInputMatrixRating`, `EntryValueInputTable`, `EntryValueInputProduct`, `EntryValueInputBooking`, `EntryValueInputLinkedForm`, `EntryValueInputFormula`.\n","properties":{"serial_number":{"type":"integer","description":"Per-form auto-increment sequence number","example":42,"isRequired":true,"uniqueKey":"data.serial_number","typeLabel":"integer"},"token":{"type":"string","description":"Entry token","example":"aB2cD9eF","isRequired":true,"uniqueKey":"data.token","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.updated_at","typeLabel":"string\u003cdate-time>"}},"additionalProperties":{"description":"Field value keyed by api_code; the value type depends on the field type.","uniqueKey":"data.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"serial_number":42,"token":"aB2cD9eF","created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"acfdfb43-4965-4957-86f7-31eb647cd863":{"description":"Collaborator role lacks permission to create entries","content":{"application/json":{"examples":{"forbidden":{"title":"forbidden","value":{"error":"Forbidden"}}},"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"exampleType":"examples"},"4af2ec35-ca72-41d7-837d-63f87191f634":{"description":"Form not accessible to the current user","content":{"application/json":{"examples":{"not_found":{"title":"not_found","value":{"error":"Form not found"}}},"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"exampleType":"examples"},"d6334882-4f87-49fc-a1c4-900ff671b493":{"description":"Validation failed","content":{"application/json":{"schema":{"type":"object","required":["error","error_details"],"description":"Returned on model validation failures. error_details lists per-field errors.","properties":{"error":{"type":"string","example":"Name can't be blank","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_details":{"type":"array","items":{"type":"object","required":["attribute","message"],"properties":{"attribute":{"type":"string","example":"name","isRequired":true,"uniqueKey":"error_details.items.[INDEX].attribute","typeLabel":"string"},"message":{"type":"string","example":"can't be blank","isRequired":true,"uniqueKey":"error_details.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error_details.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"error_details","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Name can't be blank","error_details":[{"attribute":"name","message":"can't be blank"}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"5dc4cf13-bfe2-4fb8-8a22-a0a9095634c7":{"PersonalAccessToken":{"type":"http","scheme":"bearer","bearerFormat":"PAT","description":"Personal Access Token prefixed with `fh_`. Sent as `Authorization: Bearer fh_xxx`.\nThe scope required by each endpoint is listed in that endpoint's description.\n","scopes":["entry:write"],"schemeName":"PersonalAccessToken"}}},"servers":{"8e8bfda0-f1ef-4ae4-afa9-25e9767fdcdc":{"url":"https://formhug.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"PAT","description":"Personal Access Token prefixed with `fh_`. Sent as `Authorization: Bearer fh_xxx`.\nThe scope required by each endpoint is listed in that endpoint's description.\n","scopes":["entry:write"],"schemeName":"PersonalAccessToken"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Personal Access Token prefixed with `fh_`. Sent as `Authorization: Bearer fh_xxx`.\nThe scope required by each endpoint is listed in that endpoint's description.\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"PersonalAccessToken","name":"Authorization"}],"title":"PersonalAccessToken"}]},"originalFileLocation":"api-reference/openapi.yaml"},"subdomain":"formhug-8bc4ebd1","siteName":"FormHug","title":"Submit an entry - FormHug","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/entries/submit-an-entry.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create an entry on a form owned by the current user. A field_values key that is not a writable field of the form, or a value of the wrong shape, is rejected with 422 listing every offending key; missing required fields produce a validation error. Required scope: entry:write.\">\u003cmeta data-mint-head name=\"application-name\" content=\"FormHug\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/formhug-8bc4ebd1/jD1CdRXGDAEeP28F/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/formhug-8bc4ebd1/jD1CdRXGDAEeP28F/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/formhug-8bc4ebd1/jD1CdRXGDAEeP28F/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/formhug-8bc4ebd1/jD1CdRXGDAEeP28F/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/formhug-8bc4ebd1/jD1CdRXGDAEeP28F/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/formhug-8bc4ebd1/jD1CdRXGDAEeP28F/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/formhug-8bc4ebd1/jD1CdRXGDAEeP28F/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/formhug-8bc4ebd1/jD1CdRXGDAEeP28F/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/formhug-8bc4ebd1/jD1CdRXGDAEeP28F/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Submit an entry - FormHug\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create an entry on a form owned by the current user. A field_values key that is not a writable field of the form, or a value of the wrong shape, is rejected with 422 listing every offending key; missing required fields produce a validation error. Required scope: entry:write.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"FormHug\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://formhug.ai/docs/api-reference/entries/submit-an-entry\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://formhug-8bc4ebd1.mintlify.site/docs/_mintlify/api/og/v2?division=Entries\u0026amp;title=Submit+an+entry\u0026amp;description=Create+an+entry+on+a+form+owned+by+the+current+user.+A+%60field_values%60+key+that+is+not+a%0Awritable+field+of+the+form%2C+or+a+value+of+the+wrong+shape%2C+is+rejected+w\u0026amp;theme=b198728a958a76812071320e\u0026amp;signature=079fdfb4fb22344fe1ae1537121cd25b3bbb8fae70e3e6cd5d915b31e4ee4e4c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Submit an entry - FormHug\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create an entry on a form owned by the current user. A field_values key that is not a writable field of the form, or a value of the wrong shape, is rejected with 422 listing every offending key; missing required fields produce a validation error. Required scope: entry:write.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://formhug-8bc4ebd1.mintlify.site/docs/_mintlify/api/og/v2?division=Entries\u0026amp;title=Submit+an+entry\u0026amp;description=Create+an+entry+on+a+form+owned+by+the+current+user.+A+%60field_values%60+key+that+is+not+a%0Awritable+field+of+the+form%2C+or+a+value+of+the+wrong+shape%2C+is+rejected+w\u0026amp;theme=b198728a958a76812071320e\u0026amp;signature=079fdfb4fb22344fe1ae1537121cd25b3bbb8fae70e3e6cd5d915b31e4ee4e4c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/formhug-8bc4ebd1/jD1CdRXGDAEeP28F/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"FormHug\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://formhug.ai/docs/api-reference/entries/submit-an-entry\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/entries/submit-an-entry.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://formhug.ai/#organization\",\"name\":\"FormHug\",\"url\":\"https://formhug.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/formhug-8bc4ebd1/QkuMZ3dKhwrJ6Thy/logo/light.svg?fit=max\u0026auto=format\u0026n=QkuMZ3dKhwrJ6Thy\u0026q=85\u0026s=88284690f11209ca0abb5239bc7f1179\"}},{\"@type\":\"WebSite\",\"@id\":\"https://formhug.ai/docs#website\",\"name\":\"FormHug\",\"url\":\"https://formhug.ai/docs\",\"publisher\":{\"@id\":\"https://formhug.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://formhug.ai/docs/api-reference/entries/submit-an-entry#webpage\",\"url\":\"https://formhug.ai/docs/api-reference/entries/submit-an-entry\",\"name\":\"Submit an entry\",\"description\":\"Create an entry on a form owned by the current user. A field_values key that is not a writable field of the form, or a value of the wrong shape, is rejected with 422 listing every offending key; missing required fields produce a validation error. Required scope: entry:write.\",\"isPartOf\":{\"@id\":\"https://formhug.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://formhug.ai/docs/api-reference/entries/submit-an-entry#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://formhug.ai/docs/api-reference/entries/submit-an-entry#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Entries\",\"item\":\"https://formhug.ai/docs/api-reference/entries/list-entries-of-a-form\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Submit an entry\",\"item\":\"https://formhug.ai/docs/api-reference/entries/submit-an-entry\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://formhug.ai/docs/api-reference/entries/submit-an-entry#apireference\",\"headline\":\"Submit an entry\",\"name\":\"Submit an entry\",\"description\":\"Create an entry on a form owned by the current user. A field_values key that is not a writable field of the form, or a value of the wrong shape, is rejected with 422 listing every offending key; missing required fields produce a validation error. Required scope: entry:write.\",\"url\":\"https://formhug.ai/docs/api-reference/entries/submit-an-entry\",\"mainEntityOfPage\":{\"@id\":\"https://formhug.ai/docs/api-reference/entries/submit-an-entry#webpage\"},\"publisher\":{\"@id\":\"https://formhug.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://formhug.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"FormHug\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"FormHug\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/entries/submit-an-entry.md","siteName":"FormHug","nav":{"global":null,"tabs":[{"tab":"Introduction","icon":"book-open","pages":[{"title":"Introduction","href":"/introduction/welcome"}]},{"tab":"Features","icon":"sparkles","pages":[{"title":"Features","href":"/features/building/overview"}]},{"tab":"Integrations","icon":"plug","pages":[{"title":"Integrations","href":"/integrations/overview"}]},{"tab":"Guides","icon":"graduation-cap","pages":[{"title":"Guides","href":"/guides/use-cases/registration-form"}]},{"tab":"API Reference","icon":"code","groups":[{"group":"Overview","pages":[{"title":"API Reference","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"group":"Models","expanded":false,"pages":[{"title":"Form Field","href":"/api-reference/models/form-field"}]}]},{"group":"Forms","pages":[{"title":"List the current user forms","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/forms","href":"/api-reference/forms/list-the-current-user-forms"},{"title":"Create a form","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/v1/forms","href":"/api-reference/forms/create-a-form"},{"title":"Get a form","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/forms/{token}","href":"/api-reference/forms/get-a-form"},{"title":"Update a form","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /api/v1/forms/{token}","href":"/api-reference/forms/update-a-form"},{"title":"Delete a form","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /api/v1/forms/{token}","href":"/api-reference/forms/delete-a-form"},{"title":"Move a form between folders","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /api/v1/forms/{form_token}/folder","href":"/api-reference/form-folder/move-a-form-between-folders"}]},{"group":"Form Themes","pages":[{"title":"Get the form theme","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/forms/{form_token}/theme","href":"/api-reference/form-themes/get-the-form-theme"},{"title":"Update the form theme","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /api/v1/forms/{form_token}/theme","href":"/api-reference/form-themes/update-the-form-theme"}]},{"group":"Field Rules","pages":[{"title":"Get field rules","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/forms/{form_token}/rules","href":"/api-reference/field-rules/get-field-rules"},{"title":"Replace field rules","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /api/v1/forms/{form_token}/rules","href":"/api-reference/field-rules/replace-field-rules"}]},{"group":"Form Settings","pages":[{"title":"Get form settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/forms/{form_token}/settings","href":"/api-reference/form-settings/get-form-settings"},{"title":"Update form settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /api/v1/forms/{form_token}/settings","href":"/api-reference/form-settings/update-form-settings"}]},{"group":"Attachments","pages":[{"title":"Prepare a form-element attachment upload","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/v1/attachments","href":"/api-reference/attachments/prepare-a-form-element-attachment-upload"},{"title":"Finalize prepared rich-text image uploads","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/v1/attachment_commitments","href":"/api-reference/attachments/finalize-prepared-rich-text-image-uploads"},{"title":"Prepare an entry-attachment upload","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/v1/f/{form_token}/entry_attachments","href":"/api-reference/entry-attachments/prepare-an-entry-attachment-upload"}]},{"group":"Entries","pages":[{"title":"List entries of a form","description":"Returns entries of a form owned by the current user, paginated by cursor.\n\nOrder by `serial_number` ascending by default, or pass `sort`. Every form field\nappears as a top-level key on each entry under its `api_code`; the JSON value type\nfollows the field's `type` (see the **Entry** schema).\n\nOptionally filter with `filter`: a URL-encoded JSON array of conditions, all ANDed\ntogether (see the **FilterCondition** schema). `pagination.total` reflects the\nfiltered count.\n\n**Required scope:** `entry:read`.\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/forms/{form_token}/entries","href":"/api-reference/entries/list-entries-of-a-form"},{"title":"Submit an entry","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/v1/forms/{form_token}/entries","href":"/api-reference/entries/submit-an-entry"},{"title":"Get an entry","description":"**Required scope:** `entry:read`.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/forms/{form_token}/entries/{serial_number}","href":"/api-reference/entries/get-an-entry"},{"title":"Update an entry","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /api/v1/forms/{form_token}/entries/{serial_number}","href":"/api-reference/entries/update-an-entry"},{"title":"Delete an entry","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /api/v1/forms/{form_token}/entries/{serial_number}","href":"/api-reference/entries/delete-an-entry"},{"title":"Create entries in batch","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/v1/forms/{form_token}/entries/batch","href":"/api-reference/entries/create-entries-in-batch"},{"title":"Update entries in batch","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /api/v1/forms/{form_token}/entries/batch","href":"/api-reference/entries/update-entries-in-batch"},{"title":"Delete entries in batch","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /api/v1/forms/{form_token}/entries/batch","href":"/api-reference/entries/delete-entries-in-batch"},{"title":"Get the JSON Schema for writing an entry","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/forms/{form_token}/entry_schema","href":"/api-reference/entry-schemas/get-the-json-schema-for-writing-an-entry"}]},{"group":"Folders","pages":[{"title":"List the current user folders","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/folders","href":"/api-reference/folders/list-the-current-user-folders"},{"title":"Create a folder","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/v1/folders","href":"/api-reference/folders/create-a-folder"},{"title":"Update a folder","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /api/v1/folders/{token}","href":"/api-reference/folders/update-a-folder"},{"title":"Delete a folder","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /api/v1/folders/{token}","href":"/api-reference/folders/delete-a-folder"}]},{"group":"Published Forms","pages":[{"title":"Get a published form's public structure","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/f/{form_token}","href":"/api-reference/published-forms/get-a-published-forms-public-structure"}]},{"group":"Published Form Entries","pages":[{"title":"List your entries on a published form","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/f/{form_token}/entries","href":"/api-reference/published-form-entries/list-your-entries-on-a-published-form"},{"title":"Submit an entry to a published form","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/v1/f/{form_token}/entries","href":"/api-reference/published-form-entries/submit-an-entry-to-a-published-form"},{"title":"Get the JSON Schema for submitting to a published form","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/f/{form_token}/entry_schema","href":"/api-reference/entry-schemas/get-the-json-schema-for-submitting-to-a-published-form"},{"title":"Discover candidate entries for a linked_form field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/f/{form_token}/associated_entry_options","href":"/api-reference/linked-form-options/discover-candidate-entries-for-a-linked_form-field"}]},{"group":"Participated Forms","pages":[{"title":"List forms you have participated in","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/participated_forms","href":"/api-reference/participated-forms/list-forms-you-have-participated-in"}]},{"group":"Public Queries","pages":[{"title":"List your public queries","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/opensearch/queries","href":"/api-reference/public-queries/list-your-public-queries"},{"title":"Create a public query","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/v1/opensearch/queries","href":"/api-reference/public-queries/create-a-public-query"},{"title":"Get a public query","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/opensearch/queries/{token}","href":"/api-reference/public-queries/get-a-public-query"},{"title":"Update a public query","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /api/v1/opensearch/queries/{token}","href":"/api-reference/public-queries/update-a-public-query"},{"title":"Delete a public query","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /api/v1/opensearch/queries/{token}","href":"/api-reference/public-queries/delete-a-public-query"}]},{"group":"Me","pages":[{"title":"Get current user info","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/me","href":"/api-reference/me/get-current-user-info"}]},{"group":"Webhooks","pages":[{"title":"List webhook integrations of a form","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/forms/{form_token}/integrations/webhooks","href":"/api-reference/webhooks/list-webhook-integrations-of-a-form"},{"title":"Create a webhook integration","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/v1/forms/{form_token}/integrations/webhooks","href":"/api-reference/webhooks/create-a-webhook-integration"},{"title":"Update a webhook integration","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /api/v1/forms/{form_token}/integrations/webhooks/{id}","href":"/api-reference/webhooks/update-a-webhook-integration"},{"title":"Delete a webhook integration","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /api/v1/forms/{form_token}/integrations/webhooks/{id}","href":"/api-reference/webhooks/delete-a-webhook-integration"},{"title":"Get a sample payload","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/v1/forms/{form_token}/integrations/webhooks/sample_payload","href":"/api-reference/webhooks/get-a-sample-payload"}]},{"group":"OAuth","pages":[{"title":"Start an OAuth authorization request (PKCE)","openapi":"GET /api/v1/oauth/authorize","playground":"none","href":"/api-reference/oauth/authorize"},{"title":"Exchange for access_token","openapi":"POST /api/v1/oauth/token","playground":"none","href":"/api-reference/oauth/token"},{"title":"Revoke an access_token or refresh_token","openapi":"POST /api/v1/oauth/revoke","playground":"none","href":"/api-reference/oauth/revoke"}]}]},{"tab":"Resources","icon":"folder-open","pages":[{"title":"Resources","href":"/resources/help/faq"}]}]},"basePath":"","title":"Submit an entry - FormHug","deploymentId":"dpl_3DZuqjnfdjREuPshghHhyiLeMG3U","buildId":"dpl_3DZuqjnfdjREuPshghHhyiLeMG3U","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-1OxfpBIE.js","snippetPresets-z4KUQRYf.js","utils-Cw7_7ofN.js","style-to-object-BY3JEAdk.js","utils-B6e3ZTcE.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-BjYqZ_Sx.js","conditional-requirements-CFM0id0Q.js","cloneDeep-NwHJqvNG.js","_Uint8Array-DQvCfChM.js","isObject-FP1Yky1u.js","ApiExamples-CMZS0IKC.js","usePlaygroundInputsStore-DOq4CN7a.js","shallow-20RUKd1y.js","isEqual-C3PA3NAf.js","CodeSnippets-B_jcR0B0.js","CodeSnippet-CKfp22tI.js","getApiPlaygroundDisplay-CNG71d0M.js","Page-UgONhIcS.js","DynamicMarkdown-DYGX_69W.js","SectionHeading-BohVFepQ.js","icon-kxB1kMxf.js","MethodPill-CcUxUXUe.js","getPastedJson-Beh26NhW.js","Check2Icon-BuCJBlgS.js","axios-CsQoIw0U.js","Markdown-CuH8Eulu.js","AssistantPageLink-CvdrpKtq.js","dist-5uEodgD_.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}