API Integration
The API lets another program work with portal data automatically, instead of a person opening the portal and doing it by hand.
It can read, create, update and delete records — one record per call:
| Verb | Does |
|---|---|
GET | read a page of records, or one record |
POST | create a record |
PATCH | change the fields you send, leaving the rest alone |
DELETE | remove a record |
Every object starts read-only. An administrator turns on each of create, update and delete separately, per object, so a key can read Accounts and still write Contacts.
How it stays safe
Every request is answered by the same code that builds the portal's own list views. So a key gets exactly what its portal user would get by signing in: the same object permissions, the same field access, the same record sharing.
That has a useful consequence. You cannot grant more through the API than the person already had. If someone's portal access is reduced, their key quietly narrows with it.
On top of that, an administrator decides per key:
- which objects it may touch
- 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 their own filters or choose their own sort
- how many reads and writes per hour it may make
Anything not granted does not exist as far as that key is concerned.
The three things a caller needs
| Endpoint | the web address to send requests to |
| Client ID | identifies the key — safe to share |
| Secret | like a password — shown once, keep it private |
All three come from an administrator. The endpoint in particular should be copied from the admin screen rather than assembled by hand; there is a Copy endpoint button next to it.
Where to go next
| Page | For |
|---|---|
| Setting up a key | administrators issuing access |
| Calling the API | whoever received the Client ID and Secret |
| Creating records | adding a record with POST |
| Updating records | changing a record with PATCH |
| Deleting records | removing a record with DELETE |
| Filters and sorting | narrowing results and choosing their order |
| Paging | getting more than one page of results |
| Lookup fields | what a related record returns |
| Errors and limits | every refusal, and the hourly ceilings |
| API Usage tab | seeing what has actually been called |
Full parameter-by-parameter detail, with copy-paste code samples in several languages, is in the API Reference section of the sidebar. Those pages are generated from the API's specification, so they cannot drift from the real thing.