Skip to main content
POST
cURL
Provide proposalName and at least one of text or file. Text-only requests can use JSON; files use multipart form data.
The HTTP 200 response contains success: true and proposalId. Save that ID to retrieve or vet the proposal. For file uploads, use the same formats and 20 MiB limit as specification uploads. Missing proposalName, or missing both file and text, returns 400.

Authorizations

Authorization
string
header
required

Use a pre.dev API key from https://pre.dev/projects/key.

Body

proposalName
string
required
Minimum string length: 1
text
string
required

Proposal content.

Minimum string length: 1
file
file

PDF, DOC, DOCX, TXT, JPEG, or PNG, at most 20 MiB. Use multipart/form-data and the matching MIME type.

Response

Stored proposal ID.

success
boolean
required
proposalId
string
required

24-character record ID.

Pattern: ^[a-fA-F0-9]{24}$