Uploads one or more files as AI source content for the specified proposal. At least one file must be included. WhenDocumentation Index
Fetch the complete documentation index at: https://docs.portal.io/llms.txt
Use this file to discover all available pages before exploring further.
IsMultiChunkUpload is true, the upload is processed as a multi-chunk upload; otherwise files are processed as regular uploads. The proposal must be in Draft status to accept new content.
Request
POST /public/proposals/{ProposalId}/ai/content
Headers
Must be
application/json.Must be
application/x-www-form-urlencoded.Your API Application Key.
Your User API Key.
Current UTC timestamp in RFC 7231 format.
HMAC-SHA256 signature, Base64-encoded.
Path parameters
Numeric identifier of the proposal to which the AI content will be attached. The proposal must be in Draft status to accept new content.
Body parameters
Human-readable name or title for the content being uploaded. Used for display and search. Provide a concise, descriptive name.
When
true, the upload is processed as a multi-chunk upload. Omit or set to false for standard single-file uploads.Response
Success
A200 response returns the created content item.
Unique identifier assigned to the new content item. Use this ID for subsequent operations such as deleting the item.
Display name for the content item, as provided in the request.
AI-generated summary of the content. May be empty until processing completes.
Processing status of the content. One of
Uploaded, Processing, Transcribed, Invalid.Detected type of the uploaded content. One of
Text, Audio, Video.ISO 8601 timestamp of when the content item was created.
The user who performed the upload.
Error codes
| Code | Meaning |
|---|---|
| 400 | Validation failure — missing content name, invalid content type, or file too large. |
| 401 | Not authorized — invalid credentials or incorrect HMAC signature. |
| 403 | Forbidden — your account does not have permission for this API call. |
| 404 | Proposal not found. |
| 409 | Conflict — the proposal is in a state that does not allow editing. |
Example
Response