Authentication
An account's endpoints take one personal key, read from the Authorization header only. A key reads, or reads and acts.
Send the key in the Authorization header only, as a bearer token. A key sent any other way is ignored, and the request is treated as if it had none.
| Header | Required | Meaning |
|---|---|---|
Authorization | For account endpoints | Bearer repp_… - your personal key. The public index ignores it, and counts the call against the limit without a key. |
Content-Type | For actions with a body | application/json. |
Idempotency-Key | For actions, recommended | Any text up to 200 characters, one per action: a repeat gets the first answer. See Actions. |
Two kinds of key
| Kind | On the site | What it may do |
|---|---|---|
| Read only (the default) | קריאה בלבד | Every GET. An action answers 403 read_only_key. |
| Read and actions | קריאה ופעולות | Every GET, and the Actions. Still never moves money. |
You pick the kind when you make the key, and it stays that kind: to change it, make a new key and revoke the old one. Keys made before actions existed are read only.
curl "https://api.dev.repp.co.il/v1/me" \
-H "Authorization: Bearer $REPP_API_KEY"Getting a key
- Sign in to Repp - the business site or the trainer site - and open החשבון שלי → מפתחות API.
- Name the key after the system that will use it, choose קריאה בלבד (read only) or קריאה ופעולות (read and actions), and create it. The key is shown once: we keep only its fingerprint (SHA-256), so neither you nor we can see it again.
- Up to 5 live keys per account, and 10 new ones a day. Use one key per system, so you can revoke one without stopping the rest.
- Revoke a key on the same page; it stops working at once. The keys of a closed or blocked account stop working too.
A key opens what its account sees: names, addresses and amounts, and a read-and-actions key can act as the account. Keep it on a server - never in a web page, a mobile app or a Git repository - and make it read only unless the system really acts.
Apps that sign in (OAuth)
An AI app that connects to the MCP server signs in instead of holding a key. It asks for the scope repp.read to read, and repp.write beside it to act; the consent screen lists what it will be able to do apart from what it reads, with a tick for actions that is off by default, and the app may act only when it asked for repp.write and you ticked it.