Create Assessment
Analysis
Create Assessment
Generate an impact assessment report using Perplexity AI (ASYNC - returns job_id immediately).
This endpoint creates a background job for assessment generation. Use GET /jobs/ to check status and retrieve results.
Research Modes:
fast: Uses sonar-pro model (quick web search)default: Uses sonar-reasoning-pro model (balanced analysis)deep: Uses sonar-deep-research model (thorough research)
Request Body:
prompt: Full prompt including scenario, portfolio/stock data, and analysis instructionssystem_prompt: Optional custom system prompt (defaults to Parallax AI analyst)model: Research mode - “fast”, “default”, or “deep”max_tokens: Max response tokens (default 8000)temperature: Model temperature (default 0.4)
Response Format:
{
"job_id": "assess-uuid-string",
"status": "pending",
"model": "default",
"check_url": "/v1/jobs/{job_id}",
"estimated_duration_seconds": 60
}
Result Format (when complete):
{
"success": true,
"content": "# Impact Report\n...",
"search_results": [...],
"model_used": "sonar-reasoning-pro"
}
Example Prompt:
ANALYSIS TEMPLATE INSTRUCTIONS:
1. Executive Summary (risk/opportunity classification)
2. Direct Impact Analysis by sector
3. Strategic Recommendations
PORTFOLIO CONTEXT:
- Name: Tech Portfolio
- Holdings: AAPL (25%), MSFT (25%), GOOGL (20%)
SCENARIO: What if the Fed raises interest rates by 50 basis points?
POST
Create Assessment
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Full prompt with scenario, portfolio/stock data, and template instructions
Custom system prompt (optional)
Research mode: 'fast', 'default', or 'deep'
Max response tokens
Model temperature (0.0-1.0)
Response
Job created successfully
Last modified on September 21, 2026