In this article
Vantaa is a serverless platform for hosting static HTML content. Whether you're publishing reports, documentation, dashboards, or entire websites — you upload HTML and it's instantly available via a global CDN.
1 Authenticate
The API uses JWT tokens issued by AWS Cognito via Google SSO. Visit GET /auth/login to start the OAuth2 flow. You'll receive an access_token valid for 1 hour.
export TOKEN="eyJhbGciOiJSUzI1Ni..."
2 Create Your First Page
Use the POST /content endpoint to publish HTML directly:
curl -X POST https://api.vantaa.dotaws.dgstage.se/content \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"key": "hello/index.html", "htmlContent": "<h1>Hello from Vantaa!</h1>"}'
3 Upload Files
For CSS, images, and other assets use POST /upload with base64-encoded content, or POST /files/batch for multiple files at once.
4 Set Up MCP
Add this to your AI assistant configuration to manage content via natural language:
{
"mcpServers": {
"vantaa": {
"type": "streamable-http",
"url": "https://api.vantaa.dotaws.dgstage.se/mcp",
"headers": { "Authorization": "Bearer YOUR_TOKEN_HERE" }
}
}
}
8 MCP tools available:
upload_file, create_content, list_files, get_file, delete_file, move_file, batch_upload, invalidate_cache