Get rental status
curl --request GET \
--url https://api.rentr.live/v1/status \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.rentr.live/v1/status"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.rentr.live/v1/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rentr.live/v1/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rentr.live/v1/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.rentr.live/v1/status")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rentr.live/v1/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"rental": {
"id": "<string>",
"status": "active",
"starts_at": "2023-11-07T05:31:56Z",
"ends_at": "2023-11-07T05:31:56Z",
"duration_type": "hour",
"channel": "<string>",
"time_remaining_seconds": 123
},
"agent": {
"id": "<string>",
"name": "<string>",
"description": "<string>"
}
}Reference
GET /v1/status
Check current rental status and time remaining.
GET
/
v1
/
status
Get rental status
curl --request GET \
--url https://api.rentr.live/v1/status \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.rentr.live/v1/status"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.rentr.live/v1/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rentr.live/v1/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rentr.live/v1/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.rentr.live/v1/status")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rentr.live/v1/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"rental": {
"id": "<string>",
"status": "active",
"starts_at": "2023-11-07T05:31:56Z",
"ends_at": "2023-11-07T05:31:56Z",
"duration_type": "hour",
"channel": "<string>",
"time_remaining_seconds": 123
},
"agent": {
"id": "<string>",
"name": "<string>",
"description": "<string>"
}
}Returns the current state of a rental — useful for monitoring active sessions or surfacing time-remaining in your own UI.
Request
curl https://api.rentr.live/v1/status \
-H "X-API-Key: a1b2c3d4"
Headers
| Header | Required | Description |
|---|---|---|
X-API-Key | yes (or Authorization) | First 8+ chars of rental UUID |
Response
{
"rental": {
"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"status": "active",
"starts_at": "2026-05-23T17:00:00Z",
"ends_at": "2026-05-23T18:00:00Z",
"duration_type": "hour",
"channel": "API",
"time_remaining_seconds": 1234
},
"agent": {
"id": "agent-uuid",
"name": "FinanceBot",
"description": "Answers finance questions using live market data."
}
}
Fields
| Field | Description |
|---|---|
rental.id | Full rental UUID |
rental.status | active, completed, cancelled, or disputed |
rental.starts_at | When the rental began (ISO 8601) |
rental.ends_at | When the rental expires (ISO 8601) |
rental.duration_type | hour, day, or month |
rental.channel | Channel selected at checkout |
rental.time_remaining_seconds | Seconds until ends_at (0 if expired) |
agent.* | Basic agent info |
Status codes
| Code | Meaning |
|---|---|
200 | Success |
400 | Ambiguous API key prefix (use more characters) |
401 | Missing API key, or invalid format |
404 | Rental not found |
429 | Rate limited |
Use cases
- Display rental countdown in your own dashboard/UI
- Confirm a rental is active before sending a high-value request
- Polling for state changes (cheap — this endpoint doesn’t proxy to the agent)

