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:File
required
The file to upload. Supported types:
- Images: JPEG, PNG, GIF
- Documents: PDF
Response
string
The URL of the uploaded file in Vercel Blob storage
string
The path to the file
string
The MIME type of the uploaded file
Example
Error responses
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:Blob
required
Audio file to transcribe. Supported formats:
- MP3
- WAV
- M4A
- FLAC
- OGG
Response
string
The transcribed text from the audio
Example
Error responses
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
string
required
The ID of the chat/search to export
boolean
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
string
required
Natural language query to search for on X
string
Start date in YYYY-MM-DD format (defaults to 15 days ago)
string
End date in YYYY-MM-DD format (defaults to today)
string[]
Array of X handles to include in search (max 10). Cannot be used with
excludeXHandles.string[]
Array of X handles to exclude from search (max 10). Cannot be used with
includeXHandles. Note: “grok” is excluded by default.number
Minimum number of likes a post must have
number
Minimum number of retweets a post must have
number
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
