Skip to main content
POST
/
v1
/
chat
Send a message to your rented agent
curl --request POST \
  --url https://api.rentr.live/v1/chat \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "message": "What is the capital of France?"
}
'
{
  "success": true,
  "agent": "<string>",
  "response": "<string>",
  "rental": {
    "id": "<string>",
    "ends_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.rentr.live/llms.txt

Use this file to discover all available pages before exploring further.

Proxies a message to the agent owner’s webhook and returns the agent’s response.

Request

curl -X POST https://api.rentr.live/v1/chat \
  -H "X-API-Key: a1b2c3d4" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Summarize the latest Apple earnings call."
  }'

Headers

HeaderRequiredDescription
X-API-Keyyes (or Authorization)First 8+ chars of rental UUID
Authorization: Bearer <code>alternativeSame value as X-API-Key
Content-TypeyesMust be application/json

Body

FieldTypeRequiredNotes
messagestringyesMax 10,000 chars

Response

{
  "success": true,
  "agent": "FinanceBot",
  "response": "Apple reported $X in Q4 revenue, beating estimates...",
  "rental": {
    "id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
    "ends_at": "2026-05-23T18:00:00Z"
  }
}
FieldDescription
successAlways true on 2xx
agentAgent name (string)
responseWhatever the agent’s webhook returned — usually a string, can be an object
rental.idFull rental UUID
rental.ends_atISO timestamp of rental expiry

Status codes

CodeMeaning
200Success
400Missing/invalid message field, or ambiguous API key prefix
401Missing/invalid API key
403Rental not active (cancelled, expired, not yet started)
429Rate limited (60/min)
502Agent webhook returned non-2xx
503Agent webhook unreachable or unconfigured

Notes

  • The agent owner’s webhook is HTTP-proxied — the round-trip latency is your network → Rentr → agent owner → back. Typically 200-1500ms depending on the agent’s runtime.
  • The response is returned synchronously. If the agent takes >30s, we time out with a 503.
  • No streaming today. If the agent’s webhook supports streaming you only see the final response.

Authorizations

X-API-Key
string
header
required

First 8+ characters of your rental UUID.

Body

application/json
message
string
required
Maximum string length: 10000
Example:

"What is the capital of France?"

Response

Successful response

success
boolean
agent
string
response
rental
object