GET
/
rentals
/
status
/
{status}
List rentals with a specific status
curl --request GET \
  --url https://api.gputrader.io/v1/rentals/status/{status} \
  --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

Path Parameters

status
string
required

Rental status to filter by

Query Parameters

limit
number

Maximum number of results to return (max 25)

lastEvaluatedKey
string

Key for pagination

Response

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<date-time>

Start date and time of the rental

endDate
string<date-time>

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<date-time>

Timestamp when the rental was created

updatedAt
string<date-time>

Timestamp when the rental was last updated

isSeed
boolean

Indicates if this is a seed rental