API Overview
Overview
Section titled “Overview”Placeholder — API reference content coming soon.
Authentication
Section titled “Authentication”Graylight uses session cookies set by graylight-newapi. All API calls should use credentials: 'include'.
// All fetch calls include the session cookie automatically (same-origin)fetch('/api/user/self', { credentials: 'include' });Key Endpoints
Section titled “Key Endpoints”| Path | Method | Description |
|---|---|---|
/api/user/self | GET | Get current user info |
/pg/video/generations | POST | Submit a video generation task |
/pg/images/generations | POST | Submit an image generation task |
/pg/upload/* | POST | Upload assets |
/pg/person-assets/* | GET/POST | Person asset management |
Response Shape
Section titled “Response Shape”Placeholder — response shape documentation coming soon.