Create Resource
Resources
Create Resource
Create a resource and get a presigned upload URL
POST
Create Resource
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.
- Create —
POST /api/resources→ returnsupload_url - Upload —
PUTthe file toupload_url - Confirm —
PATCH /api/resources/{id}with{"status": "uploaded"}
pending status until confirmed. Only uploaded resources appear in list results.
Full upload example
Authorizations
Project API key from the Empirical dashboard.
Body
application/json
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.
Response
Created resource with presigned upload URL.