Get started

Authentication

Every call takes one secret key. There are no public keys, no OAuth and no test keys.

Send the key

curl https://rentalpassport.app/api/v1/usage \
  -H "Authorization: Bearer $RP_KEY"

X-Api-Key: rpk_live_... is also accepted. If both are sent, the Bearer header is used.

The same key works for the REST API and the MCP server.

Key format

Part Value
Prefix rpk_live_
Body 43 characters, URL-safe base64 (A-Z a-z 0-9 - _), from 32 random bytes
Total length 52 characters

A key that does not match rpk_live_ followed by 40 to 64 of those characters is refused with 401 unauthorized before any lookup.

How keys are stored

  • We show the full key once, when you make it. Copy it then.
  • We store only its SHA-256 hash, plus the first 15 characters (rpk_live_ and 6 more) so you can tell keys apart on /developers.
  • We cannot show a key again. A lost key means a new key.

Keep keys on your server. The API sends no CORS headers, so browser calls from another site will not work, and a key in a mobile app can be read out of it.

Your account

  • Sign in at /developers with your work email. The account is tied to that email.
  • Your company name is set with your first key. Renters see it each time you check them.
  • The account is active as soon as the first key is made.

Up to 5 live keys

Each account can hold 5 live keys at once. Name each one (optional, up to 60 characters), for example Production or Staging. The list on /developers shows each key's prefix, name and the date it was last used.

Making a sixth key is refused: "You have 5 live keys. Switch one off first."

All keys on an account share the same usage and the same bill. The rate limit is per key.

Rotate a key

  1. Make a new key on /developers.
  2. Deploy it.
  3. Select Switch off next to the old key.

A switched-off key stops working on the next call and returns:

{
  "error": {
    "code": "unauthorized",
    "message": "This key is not valid. It may have been replaced."
  }
}

Switching off cannot be undone. Make a new key instead.

Paused accounts

Our team can pause an account. While paused, every key on it returns 403 paused and no new keys can be made:

{
  "error": {
    "code": "paused",
    "message": "This account is paused. Write to us to switch it back on."
  }
}

Write to support@rentalpassport.app.