> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gputrader.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List rentals

> Retrieve all rentals



## OpenAPI

````yaml https://console.gputrader.io/assets/gputrader-api.json get /rentals
openapi: 3.1.1
info:
  title: GPU Trader API
  version: 0.4.16
  description: This is the Swagger/OpenAPI-compatible GPUTrader API documentation
servers:
  - url: https://api.gputrader.io/v1
security: []
tags: []
paths:
  /rentals:
    get:
      tags:
        - Rentals
      summary: List rentals
      description: Retrieve all rentals
      parameters:
        - in: query
          name: limit
          schema:
            type: number
          description: Maximum number of results to return (max 25)
        - in: query
          name: lastEvaluatedKey
          schema:
            type: string
          description: Key for pagination
      responses:
        '200':
          description: Successfully retrieved rentals
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    rentalId:
                      type: string
                      description: Unique identifier for the rental
                    listing:
                      type: object
                      description: Environment listing details
                    userId:
                      type: string
                      description: ID of the user who created the rental
                    startDate:
                      type: string
                      format: date-time
                      description: Start date and time of the rental
                    endDate:
                      type: string
                      format: date-time
                      description: End date and time of the rental
                    name:
                      type: string
                      description: Name of the rental instance
                      default: My Instance
                    status:
                      type: string
                      enum:
                        - ACTIVE
                        - COMPLETE
                      description: Current status of the rental
                    createdAt:
                      type: string
                      format: date-time
                      description: Timestamp when the rental was created
                    updatedAt:
                      type: string
                      format: date-time
                      description: Timestamp when the rental was last updated
                    isSeed:
                      type: boolean
                      description: Indicates if this is a seed rental
        '500':
          description: Internal server error
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````