Create a resource and get a presigned upload URL
Creates a resource record and returns a presigned upload URL. This is step 1 of the upload flow:Documentation Index
Fetch the complete documentation index at: https://docs.empirical.run/llms.txt
Use this file to discover all available pages before exploring further.
POST /api/resources → returns upload_urlPUT the file to upload_urlPATCH /api/resources/{id} with {"status": "uploaded"}pending status until confirmed. Only uploaded resources appear in list results.
Project API key from the Empirical dashboard.
Resource to create.
The project ID to associate the resource with.
Display name for the resource (typically the file name).
MIME type of the file.
File size in bytes.
External URL (e.g. Google Sheet link). When provided, creates a link-type file with no R2 upload required.
Description for the resource.
Created resource with presigned upload URL.