Create report

Create an Excel, CSV or visual report from one form.

POST https://cotlet.dev/api/v1/jotform/forms/{form_id}/reports

write Confirm

Creates a report on one form and returns its link. Excel and CSV reports are plain data exports with the fields you pick, all fields by default. A visual report is the default one Report Builder makes, with the form title and charts for the responses. A report link can reach people outside the form, so the access level of a visual report stays as Jotform sets it and is returned in the response. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: create_report
NameTypeDescription
form_id string required string Form ID from list_forms.
type enum required enum excel, csv or visual.
title string string Report name. Default: the form title.
field_ids array array Field IDs to include in an Excel or CSV report. Default: all fields.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/jotform/forms/242831904782058/reports \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"excel","title":"Event registration, week 41"}'
Python
result = client.call("jotform", "create_report", {"form_id":"242831904782058","type":"excel","title":"Event registration, week 41"})
Node.js
const result = await cotlet.call('jotform', 'create_report', {"form_id":"242831904782058","type":"excel","title":"Event registration, week 41"});
CLI
cotlet call jotform create_report --data '{"form_id":"242831904782058","type":"excel","title":"Event registration, week 41"}'

Example response

JSON

{
  "report_id": "5001234567890",
  "form_id": "242831904782058",
  "title": "Event registration, week 41",
  "type": "excel",
  "link": "https://www.jotform.com/excel/example-event-registration"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.