v3

OpenAPI 3.0.32026-07-21354289.5 KB
Session

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:

  1. Call this endpoint with your Bearer token: GET /v1/files/session with Authorization: Bearer <token>
  2. The server sets an HTTP-only cookie named token
  3. 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.