GET
/
rentals
curl --request GET \
  --url https://restapi.gputrader.io/v1/rentals \
  --header 'X-API-Key: <api-key>'
[
  {
    "rentalId": "<string>",
    "listing": {},
    "userId": "<string>",
    "startDate": "2023-11-07T05:31:56Z",
    "endDate": "2023-11-07T05:31:56Z",
    "name": "My Instance",
    "status": "ACTIVE",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "isSeed": true
  }
]

Authorizations

X-API-Key
string
header
required

Query Parameters

limit
number

Maximum number of results to return (max 25)

lastEvaluatedKey
string

Key for pagination

Response

200
application/json
Successfully retrieved rentals
rentalId
string

Unique identifier for the rental

listing
object

Environment listing details

userId
string

ID of the user who created the rental

startDate
string

Start date and time of the rental

endDate
string

End date and time of the rental

name
string
default:My Instance

Name of the rental instance

status
enum<string>

Current status of the rental

Available options:
ACTIVE,
COMPLETE
createdAt
string

Timestamp when the rental was created

updatedAt
string

Timestamp when the rental was last updated

isSeed
boolean

Indicates if this is a seed rental