Skip to main content
KKeyWe

API v1

KeyWe API

Plug KeyWe into your tools: generate a pickup code as soon as a booking is confirmed, track your keyrings' status in real time.

Generate an API key

Authentication

Every request must carry your API key in theAuthorization header. Keys start withkw_live_ and are shown only once: keep them like a password.

At creation, you choose the key's rights Read (view your keyrings) and/or Create codes. Grant the minimum needed: a key lacking the required right gets a403. The API is also limited to 120 requests per minute per key (429 response, Retry-After header).

curl https://keywe.io/api/v1/cles \
  -H "Authorization: Bearer kw_live_your_key"

Endpoints

Create a pickup code

The typical call at booking time: the guest gets their code by email, valid for 7 days.

curl -X POST https://keywe.io/api/v1/codes \
  -H "Authorization: Bearer kw_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "key_id": "b0000000-0000-4000-a000-000000000001",
    "beneficiaire_nom": "Léa Martin",
    "beneficiaire_email": "lea@exemple.fr",
    "validite_jours": 7
  }'

Response

{
  "id": "c0000000-0000-4000-a000-000000000009",
  "code": "H7KM2P",
  "qr_payload": "KEYWE:H7KM2P",
  "expire_le": "2026-07-30T10:00:00.000Z",
  "cle_en_depot": true
}

Response codes

CodeMeaning
200 / 201Success
400Incomplete or invalid request
401API key missing, invalid or revoked
403The key lacks the right required for this operation
404Resource not found or outside your account
429Too many requests — wait (Retry-After header)

Ready to automate?

Generate your first key from your dashboard, in seconds.

My API keys