Formcrafts - a form and survey platform for Salesforce, HubSpot, etc
  1. Templates
    1. All templates illustration
      All templates
    2. Application forms illustration
      Application forms
    3. Calculation forms illustration
      Calculation forms
    4. Lead generation forms illustration
      Lead generation forms
    5. Customer service illustration
      Customer service
    6. Evaluation forms illustration
      Evaluation forms
    7. Survey and feedback illustration
      Survey and feedback
    8. Operations forms illustration
      Operations forms
    9. Payment forms illustration
      Payment forms
    10. Booking and registration illustration
      Booking and registration
    11. Salesforce forms illustration
      Salesforce forms
    12. Other forms illustration
      Other forms
  2. Features
    1. 18 Form Fields illustration
      18 Form Fields
    2. 19 Integrations illustration
      19 Integrations
    3. Conditional Logic illustration
      Conditional Logic
    4. Multi-step Forms illustration
      Multi-step Forms
    5. Calculations illustration
      Calculations
    6. Partial Submissions illustration
      Partial Submissions
    7. Save & Resume illustration
      Save & Resume
    8. Payments illustration
      Payments
    9. Hidden Fields illustration
      Hidden Fields
    10. Dynamic Dropdowns illustration
      Dynamic Dropdowns
    11. Engagement analysis illustration
      Engagement analysis
    12. Multilingual forms illustration
      Multilingual forms
  3. Pricing
  4. Help
  5. Login
  6. Signup
    →
  • Help index
  • Features
    • Conditional logic
    • Prefill forms
    • Multi-step forms
    • Calculations
    • Partial submissions
    • Field references
    • Save and resume
    • Hidden fields
    • Dynamic lookup
    • Workflows
    • Dynamic dropdowns
    • Multilingual forms
    • Privacy mode
    • Success message
    • Form redirect
    • GA/GTM
    • Accept payments
    • Linked forms
    • Disable form
  • Styling
    • Custom CSS
    • Custom fonts
    • Color scheme
    • Form background
  • Analytics
    • Test mode
    • Overview
    • Field analytics
    • Form engagement
  • Workflows
    • Send emails
    • Form redirect
    • Success message
    • Webhooks
    • Create PDF
    • ActiveCampaign
    • Asana
    • Mailchimp
    • Front app
    • Freshdesk
    • Google Sheets
    • Pipedrive
    • Linear
    • Klaviyo
  • Sharing
    • Custom form link
    • Embed on a page (inline)
    • Embed on a page (popup)
    • Embed in emails
    • Embed on WordPress
    • Embed on Shopify
    • Embed on Squarespace
  • Salesforce
    • Overview
    • Create records
    • Update records
    • Related records
    • Dynamic picklists
    • Attach files
    • Create PDFs
    • Form prefill
  • HubSpot
    • Overview
    • Create contact form
    • Create lead capture form
    • Create customer survey
    • Prefill HubSpot form
    • Embed on HubSpot page
    • Uninstall
  • Zendesk
    • Create ticket form
    • Create CSAT survey
    • Embed on Help Center
    • Prefill ticket form
  • Admin
    • Users
    • Custom domain
    • Vanity subdomain
    • Subscription
  • Developers
    • Embed Library
    • API keys
    • API v1
    • API v2
  • Others
    • Partner program
    • GDPR compliance
    • Workflow logs
    • White labeling
    • Form speed
    • Zapier
    • Migration
  • Contact
  1. Help
  2. ›
    Developers
  3. ›
    API v1

Formcrafts API v1

On this page
  1. Authentication
  2. Pagination
  3. Get forms
  4. Get form details
  5. Get form responses

The Formcrafts API v1 has being deprecated. We recommend using the Formcrafts API v2.

Authentication

Formcrafts uses API keys to authenticate users. You can create API keys under Organization → Settings → API Keys.

You can make 10,000 requests per hour. Rate limits are applied to each organization.

Authentication is done via HTTP basic auth. Your API key is the username, and password field should be left empty. A simply ping would return your account email. Use this link in the browser, and use your API key as username and leave the password blank

You can also open this in a browser ↗.

curl https://api.formcrafts.com/v1 -u MYAPIKEY:
{
  "organization_name": "My Organization"
}

Pagination

All list endpoints support pagination. You can use the page query parameters to paginate through the results.

curl https://api.formcrafts.com/v1/forms?page=2 -u MYAPIKEY:

Get forms

curl https://api.formcrafts.com/v1/forms -u MYAPIKEY:
{
  "type": "forms",
  "total": 50,
  "page": 1,
  "hasMore": true,
  "data": [
    {
      "id": "abcd1234",
      "created": "2024-02-27T16:45:25+00:00",
      "updated": "2024-02-28T10:22:28+00:00",
      "name": "Contact us",
      "counter": 21,
      "formLink": "https://api.formcrafts.com/v1/form/abcd1234",
      "responsesLink": "https://api.formcrafts.com/v1/form/abcd1234/responses"
    }
  ]
}

Get form details

curl https://api.formcrafts.com/v1/form/[id] -u MYAPIKEY:
{
  "id": "abcd1234",
  "created": "2024-02-27T16:45:25+00:00",
  "updated": "2024-02-28T11:55:49+00:00",
  "name": "Contact us",
  "counter": 21,
  "responsesLink": "https://api.formcrafts.com/v1/form/abcd1234/responses",
  "fields": [
    {
      "page_title": "New page",
      "page_fields": [
        {
          "type": "one-line-text",
          "label": "Name",
          "id": "field1"
        },
        {
          "type": "checkbox",
          "label": "Choose",
          "id": "field2",
          "options": [
            {
              "label": "Option 1",
              "value": "Option 1"
            },
            {
              "label": "Option 2",
              "value": "Option 2"
            }
          ]
        }
      ]
    }
  ]
}

Get form responses

curl https://api.formcrafts.com/v1/form/[id]/responses -u MYAPIKEY:
{
  "type": "responses",
  "total": 1,
  "page": 1,
  "hasMore": false,
  "form_name": "Contact us",
  "data": [
    {
      "id": 1,
      "created": "2024-01-15 18:42:35",
      "updated": "2024-01-15 18:42:35",
      "visitor": {
        "city": "Toronto",
        "division": "Ontario",
        "country": "Canada"
      },
      "metadata": null,
      "content": [
        {
          "id": "field1",
          "label": "Name",
          "answer": "Jane Doe"
        },
        {
          "id": "field2",
          "label": "Choose",
          "answer": [
            "Option 1"
          ],
          "answer.value": [
            "Option 1"
          ]
        }
      ]
    }
  ]
}

Certain fields have a value associated with the answer. Example, a checkbox field showing donut types would have the price of each donut as the value. In the above example this value is the answer.value object.

For file upload fields the answer.value object would contain a link to download the files.

Minimal, fast, and powerful. Try now.
Formcrafts - a form and survey platform for Salesforce, HubSpot, etc

Subtle Web Inc,
225 Railway St E,
T4C 2C3, Cochrane AB

Salesforce AppExchange partner logo HubSpot app partner logo
Templates
Application formsLead generation formsSurvey & feedback formsEvaluation formsSupport request formsBooking & registrationContact forms
Comparisons
vs AllFormAssemblyTypeformJotformWufooSurveyMonkey
Features
Conditional logicSalesforce formsHubSpot formsZendesk ticket formsEmail formsIntegrationsForm fields
Resources
Help centerBlogDeveloper APIGDPRStatusReport abuseContact us
Company
About usNonprofitCase studiesSecurityTerms and privacy