v3
OpenAPI 3.0.32026-07-21354289.5 KBSession
getSession
Start a browser session by converting a Bearer token into a server-side cookie.
Use case: After calling this endpoint, you can use preview URLs directly in <img> tags without needing to set the Authorization header manually.
Example flow:
- Call this endpoint with your Bearer token: GET /v1/files/session with Authorization: Bearer <token>
- The server sets an HTTP-only cookie named token
- Use preview URLs directly: <img src="https://file.sls.epilot.io/v1/files/{id}/preview" />
get/v1/files/session
Response
Session started successfully. A session cookie has been set.