Skip to content
ExportlabDocs

Create Templates

How to build valid JSON templates for import.

On this pageTemplate StructureRequired Fields by Question TypeJSON Examples

Template Structure

Import expects a template object with a questions array.

  • name (string) – template name.
  • description (string) – short description.
  • questions (array) – list of questions.
  • version (string, optional) – version number.

Required Fields by Question Type

Most types only need the base fields. Selection and file questions require extra fields.

TypeRequired extra fieldsFormat
selectoptions["Option 1", "Option 2"]
multiselectoptions["Option 1", "Option 2"]
filefileConfig{"allowedFileTypes": ["image/*"], "maxFileSizeMB": 25, "maxFiles": 3}
All othersNoneBase fields only.

JSON Examples

These examples show how finished JSON files must look.

Template JSON examples

Text
{
"name": "Project Name",
"description": "Short text input",
"questions": [
  {
    "questionText": "What is the project name?",
    "questionType": "text",
    "required": true
  }
]
}
Textarea
{
"name": "Project Brief",
"description": "Long-form answer",
"questions": [
  {
    "questionText": "Please describe the project scope.",
    "questionType": "textarea",
    "required": false
  }
]
}
Email
{
"name": "Contact Email",
"description": "Validated email field",
"questions": [
  {
    "questionText": "Which email should we use for updates?",
    "questionType": "email",
    "required": true
  }
]
}
URL
{
"name": "Reference Link",
"description": "Website or asset link",
"questions": [
  {
    "questionText": "Add a link to the reference.",
    "questionType": "url",
    "required": false
  }
]
}
Phone
{
"name": "Callback",
"description": "Phone number for quick follow-up",
"questions": [
  {
    "questionText": "What phone number should we call?",
    "questionType": "phone",
    "required": false
  }
]
}
Number
{
"name": "Estimated Budget",
"description": "Numeric input",
"questions": [
  {
    "questionText": "What is the budget in USD?",
    "questionType": "number",
    "required": false
  }
]
}
Date
{
"name": "Launch Date",
"description": "Pick a date",
"questions": [
  {
    "questionText": "When should we launch?",
    "questionType": "date",
    "required": true
  }
]
}
Select
{
"name": "Brand Tone",
"description": "Tone of voice selection",
"questions": [
  {
    "questionText": "Which tone of voice fits the campaign?",
    "questionType": "select",
    "required": true,
    "options": ["Modern", "Classic", "Bold"]
  }
]
}
Multiselect
{
"name": "Deliverables",
"description": "Multiple choice list",
"questions": [
  {
    "questionText": "Which deliverables do you need?",
    "questionType": "multiselect",
    "required": false,
    "options": ["Social clips", "Master export", "Thumbnail set"]
  }
]
}
Yes/No
{
"name": "Approval",
"description": "Binary decision",
"questions": [
  {
    "questionText": "Do you need rush delivery?",
    "questionType": "yesno",
    "required": true
  }
]
}
File
{
"name": "Logo Upload",
"description": "Collect logo files",
"questions": [
  {
    "questionText": "Please upload the current logo.",
    "questionType": "file",
    "required": true,
    "fileConfig": {
      "allowedFileTypes": ["image/*", "application/pdf"],
      "maxFileSizeMB": 25,
      "maxFiles": 3
    }
  }
]
}
Was this page helpful?

Your feedback helps improve this guide.

Exportlab Docs

Matching articles

PhotographySell photo packages at Group Shoot check-inCreate prepaid Group Shoot packages, connect Stripe and track each participant's payment status.PhotographyFind a person's photos with Face RecognitionIndex gallery photos, select a detected face and find matching images without scrolling through the full gallery.PhotographySearch a gallery with Smart DiscoveryCreate AI captions and tags for photos so clients can search a gallery by subject, scene or mood.PhotographyReview gallery photos with Swipe ModeOpen gallery photos one by one and swipe to keep or skip each image during a focused review.PhotographyShare selected photos with a Share LinkCreate a separate link for a selected group of photos with its own PIN and download permission.PhotographyNotify visitors when a gallery is publishedCollect email subscriptions before a gallery is ready and notify those visitors when you publish it.PhotographyDownload photos from a client galleryDownload one photo or a complete gallery in an available quality while respecting the owner's permissions.PhotographyCreate and share a client galleryUpload your photos, prepare the gallery and check the client experience before sending the link.PhotographyProtect a gallery and control downloadsSet a four-digit PIN and decide how clients can download your photos.PhotographyLet clients select their photosUse a Collaborative gallery to collect selections before publishing the final images.PhotographySet up a Group Shoot and check in participantsPrepare a session with individual participant access instead of one shared gallery link.VideographyTrack video versions and review statusUse the video project overview to check processing, versions, feedback and the current review state.VideographyChoose the right video review modeChoose timestamped Frame Mode, simple Easy Mode or a view-only share mode for each client review.VideographyConfigure video access, feedback and downloadsSet the thumbnail, four-digit PIN, review mode, watermark and download behavior before sharing a video.VideographyShare a video and work through feedbackSend a review link, collect comments at specific moments and track revisions.