Upload Text
Changed onAnalyze emotions and sentiment from text content.
Submit text directly, provide a cloud storage URL, or upload a text file (.txt, .srt, .pdf).
Input Modes (provide exactly one):
- text: Raw text content for direct analysis
- text_url: URL to a text file from Dropbox, Google Drive, AWS S3, or any public URL
- text_file: Direct file upload (.txt, .srt, .pdf)
How It Works:
- Submit your text (or file URL / file upload) and receive an immediate response with a text ID
- For file URLs/uploads: the file is downloaded/read, text extracted, and word count calculated
- Text is queued for processing (typically completes within seconds)
- Optionally receive a webhook notification via callback_url when complete
- Retrieve results using the text ID
Supported File Formats (for text_url and text_file):
- .txt — Plain text files
- .srt — Subtitle files (timestamps are stripped, only text is extracted)
- .pdf — PDF documents (text extracted from all pages)
Credit Usage: Billed on success; the amount is recorded after the run and is not quoted on this request. Each text analysis is billed at least 2 credits. A 402 is returned before processing starts when admission is refused.
Request
- Base URLhttps://api.imentiv.ai (the document declares no server; this is the origin it was published from)
- Auth
- API key in header X-API-Key
- or HTTP bearer
- or OAuth 2Authorization code: https://api.imentiv.ai/oauth/authorizeToken URL: https://api.imentiv.ai/oauth/token scopes: media.write
Request body multipart/form-data
Response
Successful Response
Changes
- info
the endpoint scheme security
ApiKeyAuthwas added to the API - info
the endpoint scheme security
BearerAuthwas added to the API - info
the endpoint scheme security
OAuth2Delegatedwas added to the API
- info
- info
the
request property type was generalized from no type tostring, and format from no format tobinary
- info