Upload files
Upload images and PDFs to provide context for your searches. Uploaded files are stored in Vercel Blob and can be referenced in search queries.Endpoint
Request
Send a multipart form data request with the file:The file to upload. Supported types:
- Images: JPEG, PNG, GIF
- Documents: PDF
Response
The URL of the uploaded file in Vercel Blob storage
The path to the file
The MIME type of the uploaded file
Example
Error responses
| Status | Description |
|---|---|
| 400 | No file uploaded or file validation failed |
| 413 | File size exceeds 5MB limit |
| 415 | Unsupported file type |
| 500 | Upload failed |
File validation
Files are validated using this schema:Using uploaded files
After uploading, reference the file URL in your search context:Transcribe audio
Convert audio recordings to text using ElevenLabs’ Scribe transcription model.Endpoint
Request
Send a multipart form data request with the audio file:Audio file to transcribe. Supported formats:
- MP3
- WAV
- M4A
- FLAC
- OGG
Response
The transcribed text from the audio
Example
Error responses
| Status | Description |
|---|---|
| 400 | No audio file found in form data |
| 500 | Transcription failed |
Implementation
The transcription endpoint uses ElevenLabs’ Scribe model:Voice mode integration
The transcribe endpoint is primarily used by Scira’s Voice mode feature, which provides:- Real-time voice conversations
- Audio input transcription
- Voice response synthesis
Export to PDF
Export search results and conversations as PDF documents.Endpoint
Request
The ID of the chat/search to export
Whether to include tool call details in the export (default: false)
Response
Returns a PDF file stream withContent-Type: application/pdf.
Example
PDF contents
The exported PDF includes:- Chat title and timestamp
- Full conversation history (user queries and AI responses)
- Citations and source links
- Tool execution details (if
includeToolsis true) - Formatted code blocks and markdown
Advanced X search (XQL)
XQL (X Query Language) is a Pro feature that provides advanced filtering and search capabilities for X/Twitter content.
Endpoint
Request
Natural language query to search for on X
Start date in YYYY-MM-DD format (defaults to 15 days ago)
End date in YYYY-MM-DD format (defaults to today)
Array of X handles to include in search (max 10). Cannot be used with
excludeXHandles.Array of X handles to exclude from search (max 10). Cannot be used with
includeXHandles. Note: “grok” is excluded by default.Minimum number of likes a post must have
Minimum number of retweets a post must have
Minimum number of replies a post must have
Response
Returns a streaming response with X posts matching the query criteria.Example
XQL tool schema
The XQL endpoint uses this input schema:Use cases
XQL is ideal for:- Market research - Track brand mentions and sentiment
- Trend analysis - Monitor emerging topics in specific communities
- Competitive intelligence - Follow competitor announcements
- Influencer tracking - Monitor posts from key accounts
- Event coverage - Search discussions during specific time periods
Search modes
XQL powers Scira’s “X” search mode, which provides:- Real-time post retrieval from X/Twitter
- Advanced filtering by engagement metrics
- Handle inclusion/exclusion
- Date range filtering
- Semantic understanding of queries
