openapi: 3.0.0 info: version: 0.1.0 title: E2B access-tokens snapshots API servers: - url: https://api.e2b.app tags: - name: snapshots paths: /snapshots: get: description: List all snapshots for the team tags: - snapshots security: - ApiKeyAuth: [] - Supabase1TokenAuth: [] Supabase2TeamAuth: [] parameters: - name: sandboxID in: query required: false schema: type: string description: Filter snapshots by source sandbox ID - $ref: '#/components/parameters/paginationLimit' - $ref: '#/components/parameters/paginationNextToken' responses: '200': description: Successfully returned snapshots content: application/json: schema: type: array items: $ref: '#/components/schemas/SnapshotInfo' '401': $ref: '#/components/responses/401' '500': $ref: '#/components/responses/500' components: parameters: paginationNextToken: name: nextToken in: query description: Cursor to start the list from required: false schema: type: string paginationLimit: name: limit in: query description: Maximum number of items to return per page required: false schema: type: integer format: int32 minimum: 1 default: 100 maximum: 100 responses: '500': description: Server error content: application/json: schema: $ref: '#/components/schemas/Error' '401': description: Authentication error content: application/json: schema: $ref: '#/components/schemas/Error' schemas: SnapshotInfo: type: object required: - snapshotID - names properties: snapshotID: type: string description: Identifier of the snapshot template including the tag. Uses namespace/alias when a name was provided (e.g. team-slug/my-snapshot:default), otherwise falls back to the raw template ID (e.g. abc123:default). names: type: array items: type: string description: Full names of the snapshot template including team namespace and tag (e.g. team-slug/my-snapshot:v2) Error: required: - code - message properties: code: type: integer format: int32 description: Error code message: type: string description: Error securitySchemes: ApiKeyAuth: type: apiKey in: header name: X-API-Key AccessTokenAuth: type: http scheme: bearer bearerFormat: access_token Supabase1TokenAuth: type: apiKey in: header name: X-Supabase-Token Supabase2TeamAuth: type: apiKey in: header name: X-Supabase-Team AdminTokenAuth: type: apiKey in: header name: X-Admin-Token