POST /v1/extract
Returns the JSON data embedded in a Forme PDF. See Embedded Data.
On the hosted API, a render of a JSX template (sync or async) embeds the request data automatically. PDFs from HTML templates and from /v1/render/html have no embedded data. A PDF rendered locally with embedData also works.
Extract is not counted as an operation. It shares the render rate limit.
Request
Send the raw PDF bytes as the body, withContent-Type: application/pdf or application/octet-stream. Maximum 10 MB.
Response
200 OK
404 {"error": "No embedded data found in this PDF"} when the PDF has no Forme embedded data.
The self-hosted server does not have
/v1/extract. To extract without the hosted API, use extractData() from @formepdf/core.