EasyCRM Portal API
A REST API over the data a portal user can already see and change.
The API answers every request through the same code that renders the portal's own screens, so object permissions, field-level access, record sharing, record types and validation rules are applied by the portal's rules rather than a second copy of them. It follows that the API can never read or write anything the key's portal user could not do by logging in.
It reads, creates, updates and deletes — GET, POST, PATCH and DELETE — one
record per call. There are no arrays and no bulk operations, so a partly-applied batch
cannot happen. There is no upsert, because the External Id is a Salesforce AutoNumber that
no caller can supply.
Every object starts read-only. An administrator grants create, update and delete separately, per object.
What you need
Three things, all from a portal administrator:
| Endpoint | the address below, specific to your org. The admin has a Copy endpoint button next to the key. |
| Client ID | identifies the key. Safe to share. |
| Secret | shown once, when the key is created. Treat it like a password. |
If the Secret is lost it cannot be looked up. An administrator presses Regenerate, which issues a new one and immediately stops the old one working.
What a key can reach
An administrator decides, per key:
- which objects it may reach
- which operations it may perform on each: read, create, update, delete
- which fields of each come back
- which of those fields a write may set
- a filter limiting which rows it sees at all
- the order rows arrive in
- whether the caller may add filters or choose their own sort
Anything not granted simply does not exist as far as the key is concerned, and a caller cannot widen the grant: a filter they send is applied on top of the administrator's.
Authentication
- API Key: ClientId
- API Key: Secret
The Client ID your administrator gave you. Identifies the key.
Security Scheme Type: | apiKey |
|---|---|
Header parameter name: | x-easycrm-client-id |
The Secret your administrator gave you. Treat it like a password.
Security Scheme Type: | apiKey |
|---|---|
Header parameter name: | x-easycrm-secret |