Get company form
On this page
GraphQL endpoint: /company
Fetches one of the current company's forms by ID, including all of its versions and their fields.
Query
query ($id: ID!) {
companyForm(id: $id) {
id
title
description
visibility
intendedFor
companyId
formVersions {
id
version
published
formVersionFields {
id
key
label
type
required
options
order
content
useAsIdentifier
}
}
insertedAt
updatedAt
}
}
Variables
{
"id": "00000000-0000-4000-8000-000000000005"
}
Response
{
"data": {
"companyForm": {
"companyId": "00000000-0000-4000-8000-000000000001",
"description": "A test form",
"formVersions": [
{
"formVersionFields": [
{
"content": null,
"id": "00000000-0000-4000-8000-000000000002",
"key": "epqhmanofie9",
"label": "Name",
"options": [],
"order": 0,
"required": false,
"type": "TEXT",
"useAsIdentifier": false
},
{
"content": null,
"id": "00000000-0000-4000-8000-000000000003",
"key": "f680vpb1qu2p",
"label": "Email",
"options": [],
"order": 1,
"required": false,
"type": "EMAIL",
"useAsIdentifier": false
}
],
"id": "00000000-0000-4000-8000-000000000004",
"published": true,
"version": 1
}
],
"id": "00000000-0000-4000-8000-000000000005",
"insertedAt": "2026-01-15T09:00:00.000000",
"intendedFor": [
"USER",
"COMPANY"
],
"title": "My Form",
"updatedAt": "2026-01-15T09:00:00.000000",
"visibility": [
"PUBLIC"
]
}
}
}