Developers
API reference
All the routes of the REST API v1: forms, responses, files and webhook subscriptions, with their parameters and sample responses.
Base URL: https://api.aikobuilder.com/v1. Each request carries the Authorization: Bearer <key> header (see Developers for keys, scopes, limits and errors). The OpenAPI specification is available at /v1/openapi.json.
| Method | Route | Scope | Purpose |
|---|---|---|---|
| GET | /forms |
read |
List forms |
| GET | /forms/{id} |
read |
A form and its fields |
| GET | /forms/{id}/submissions |
read |
A form's responses |
| GET | /submissions/{id} |
read |
A single response |
| GET | /files/{id} |
read |
Download a file |
| GET | /forms/{id}/webhooks |
webhooks |
List webhook subscriptions |
| POST | /forms/{id}/webhooks |
webhooks |
Subscribe a URL to new responses |
| DELETE | /webhooks/{id} |
webhooks |
Delete a subscription |
Forms
GET /forms
Lists the forms of the key's space.
curl -H "Authorization: Bearer $AIKOBUILDER_API_KEY" \
"https://api.aikobuilder.com/v1/forms"
{
"data": [
{
"id": "frm_01jc9…",
"name": "Solar project",
"status": "published",
"publicUrl": "https://form.aikobuilder.com/projet-solaire",
"defaultLocale": "fr",
"locales": ["fr", "en", "es"],
"fields": [ … ],
"hiddenFields": ["utm_source", "partner_id"],
"variables": ["score"],
"createdAt": "2026-10-02T08:12:44.000Z",
"updatedAt": "2026-11-02T09:01:10.000Z"
}
]
}
status is draft (never published), published or archived (archived: offline). publicUrl is on the form's default domain (a custom domain chosen in its settings, otherwise AikoBuilder's); the form also answers on the organization's other domains.
GET /forms/{id}
Details of a form: its fields in form order, its hidden fields and its variables. This is the route to call when preparing a mapping (technical keys, types, choice options).
{
"data": {
"id": "frm_01jc9…",
"name": "Solar project",
"status": "published",
"fields": [
{ "key": "first_name", "type": "short_text", "label": "Your first name?", "required": true },
{
"key": "customer_type",
"type": "single_choice",
"label": "You are…",
"required": true,
"options": [
{ "value": "b2c", "label": "An individual" },
{ "value": "b2b", "label": "A business" }
]
},
{ "key": "email", "type": "email", "label": "Email", "required": true }
],
"hiddenFields": ["utm_source", "partner_id"],
"variables": ["score"]
}
}
Labels are in the form's default language. options only exists for choice fields; value is the value stored in the responses.
Possible field types: short_text, long_text, email, url, phone, postal_code, number, date, single_choice, dropdown, multiple_choice, ranking, yes_no, rating, scale, file_upload, signature, opt_in.
Responses
GET /forms/{id}/submissions
A form's responses, from newest to oldest.
| Parameter | Type | Description |
|---|---|---|
limit |
integer, 1 to 100 | Responses per page (50 by default) |
cursor |
string | nextCursor value from the previous page |
since |
ISO 8601 date | Responses received from this date (inclusive) |
until |
ISO 8601 date | Responses received before this date (exclusive) |
curl -H "Authorization: Bearer $AIKOBUILDER_API_KEY" \
"https://api.aikobuilder.com/v1/forms/frm_01jc9…/submissions?limit=20&since=2026-11-01"
{
"data": [
{
"id": "sub_01jcb…",
"formId": "frm_01jc9…",
"formVersion": 7,
"status": "completed",
"locale": "fr",
"startedAt": "2026-11-02T10:13:02.000Z",
"completedAt": "2026-11-02T10:15:29.000Z",
"answers": {
"first_name": { "type": "short_text", "label": "Your first name?", "value": "Lucie" },
"customer_type": {
"type": "single_choice",
"label": "You are…",
"value": "b2c",
"valueLabel": "An individual"
},
"email": { "type": "email", "label": "Email", "value": "lucie@example.com" }
},
"hidden": { "utm_source": "google", "partner_id": "42" },
"variables": { "score": 30 },
"metadata": {
"referrer": "https://www.google.com/",
"userAgent": "Mozilla/5.0 …",
"ip": "203.0.113.42",
"host": "form.aikobuilder.com",
"utm": { "utm_source": "google", "utm_campaign": "ete" },
"page": null,
"abTest": null,
"partners": {},
"verified": []
}
}
],
"nextCursor": "MjAyNi0xMS0wMlQxMDoxNTozMC4wMDBafHN1Yl8wMWpjYi4uLg"
}
To fetch everything, call the route again with cursor=<nextCursor> as long as nextCursor isn't null. For a regular sync, pass the date of your last sync in since.
Each answer in answers contains:
value: the technical value (text, number,true/false, list of values for a multiple choice, list of all the values in the chosen order for a ranking, list of files for a file upload);valueLabel: for choices, the label of the value (“1. A, 2. B” for a ranking);followUps: for an open answer with AI follow-ups, the questions asked by the AI and the person's replies ([{ "question", "answer" }]);labelandtype: the question as it was in the version of the form that was filled in (formVersion).
metadata.ip is null if the form doesn't record the IP address; metadata.page gives the originating landing page ({ "id", "name" }) or null; metadata.abTest, the form whose A/B test showed this one, or null; metadata.partners, the partners accepted in each opt-in checkbox with a partner list ({} otherwise), the checkbox value being the list of their names; metadata.verified, the questions verified with a code ([] otherwise).
Each response also contains offers: the answers to the ending screen offers, one per offer answered ([] otherwise), with id, title, status (accepted, declined, or withdrawn for a consent withdrawn from the admin), consent (text shown, email and number masked), locale, channels, partners (or null), answeredAt and withdrawnAt.
GET /submissions/{id}
A single response, in the same format as an item of the list above, in data.
Files
GET /files/{id}
Downloads a file uploaded by a respondent (“Files” field or signature). The API responds with a 302 redirect to a signed URL valid for 5 minutes: follow the redirect (curl -L).
curl -L -o photo.jpg -H "Authorization: Bearer $AIKOBUILDER_API_KEY" \
"https://api.aikobuilder.com/v1/files/fil_01jcb…"
In responses read through the API, each file's url already points to this route.
Webhook subscriptions
These routes require the webhooks scope. They manage standard webhooks (signed JSON): ideal for letting an automation tool create its own subscription. Mapped webhooks are configured in the admin. The delivery format is described in Webhooks.
GET /forms/{id}/webhooks
{
"data": [
{
"id": "int_01jcc…",
"formId": "frm_01jc9…",
"name": "n8n",
"url": "https://n8n.example.com/webhook/aiko",
"events": ["submission.completed"],
"enabled": true,
"createdAt": "2026-11-02T09:30:00.000Z"
}
]
}
enabled is false after a manual deactivation or after 10 consecutive permanent failures.
POST /forms/{id}/webhooks
Subscribes a URL to the form's new responses.
| Field | Required | Description |
|---|---|---|
url |
yes | Public HTTPS address that will receive the responses |
name |
no | Name shown in the admin (“API webhook” by default) |
headers |
no | Headers added to each delivery, for example a token for your tool |
events |
no | Events received: submission.completed (default), submission.offer_accepted, submission.offer_withdrawn (see Webhooks) |
curl -X POST -H "Authorization: Bearer $AIKOBUILDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "url": "https://n8n.example.com/webhook/aiko", "name": "n8n" }' \
"https://api.aikobuilder.com/v1/forms/frm_01jc9…/webhooks"
Response 201: the subscription, with its signing secret signingSecret (whsec_…). It is returned only once: keep it to verify signatures. Private or local network addresses are refused (400).
DELETE /webhooks/{id}
Deletes the subscription. Response 204 with no content.