API Documentation
Integrate Dasein into your applications with our REST API.
Quick Start
1. Authenticate
# Sign in via Google OAuth, then use the JWT token curl https://dasein-api.pixelraft.com/auth/me \ -H "Authorization: Bearer YOUR_JWT_TOKEN"
2. Upload a Scene
# Create upload session
curl -X POST https://dasein-api.pixelraft.com/v1/uploads \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"fileName":"scene.ply","contentType":"application/octet-stream","sizeBytes":1234567,"sourceFormat":"ply"}'
# Upload content
curl -X PUT "https://dasein-api.pixelraft.com/v1/uploads/$UPLOAD_ID/content" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary @scene.ply
# Complete & create asset
curl -X POST https://dasein-api.pixelraft.com/v1/assets \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"workspaceId":"$WS_ID","title":"My Scene","sourceFormat":"ply","sourceSizeBytes":1234567,"sourceUri":"..."}'3. Embed
<iframe src="/embed/YOUR_SLUG" width="1280" height="720" allowfullscreen loading="lazy" style="border:none;border-radius:12px"> </iframe>
Supported Formats
.ply
Gaussian Splat PLY
.splat
Splat format
.spz
SPZ compressed
.compressed.ply
Compressed PLY