# Export every matching submission

Streams every submission the filters match, as CSV or JSON, with no row cap. status, q, from, to and sort mean what they mean in listSubmissions (accepted submissions unless status says otherwise); limit and offset do not apply. X-Total-Count is how many rows the file should hold. The CSV has one column per field name found in the matching rows, most common first, then created and isSpam, and keeps the spreadsheet guard: any cell (and any header) starting with =, +, -, @, a tab or a carriage return gets a leading apostrophe so it opens as text, never a formula. The JSON is an array of {id, created, isSpam, data} with the values exactly as submitted. If the matching rows have more than 2000 distinct field names the CSV is refused with 422 and the JSON export still works. Readable, like the list it exports, and recorded in the audit log (submissions.exported).

Canonical: https://easerix.com/docs/developers/api/forms/submissions/exportSubmissions

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

export default function Layout(props) {
  const { APIPage, OpenAPIPage } = props.components ?? {};
  // "APIPage" is the old name from v10, this allows both for backward compatibility
  const Comp = OpenAPIPage ?? APIPage;
  return (
    <>
      {props.children}
      <Comp document="forms" operations={[{"path":"/v1/forms/{id}/submissions/export","method":"get"}]} />
    </>
  );
}
