Appearance
Connect a System
Use this when you are wiring a website, a client or lender database, or a lead tool to Appraiser Flow. The key never belongs in a browser, a mobile app, or a public repository.
Where keys live
A company admin opens Settings → Public API.
- Name the key after the system (
Salesforce nightly,Website quotes). - Choose Test until the mapping is right. Test keys start with
af_test_. Live keys start withaf_live_. Both call the API base copied from this page. - Check only the scopes that system needs. See the table below.
- Create the key and copy the secret. It is shown once.
- Put it in the server environment, Zapier’s secret store, or your host’s secret manager.
bash
# Copy API Base URL from Settings → Public API. It already ends in /public/v1.
export AF_API="https://api.appraiserflow.ai/public/v1"
export AF_API_KEY="af_test_••••"| Where you created the key | AF_API (Copy API Base URL) | Key |
|---|---|---|
Production, app.appraiserflow.ai | https://api.appraiserflow.ai/public/v1 | af_test_ or af_live_ |
Staging, staging.appraiserflow.ai | https://staging-api.appraiserflow.ai/public/v1 | af_test_ or af_live_ |
| Local Compose | http://localhost:18000/public/v1 | af_test_ or af_live_ |
Use that copied value as AF_API. Do not append /public/v1 again. A test key created in production calls the production base above. It does not call staging. The secret is stored only in the app that created it, and both prefixes write to that company. The Developer Portal link on that same page opens the docs for this environment.
Pick scopes for the connection
| Connection | Scopes |
|---|---|
| Marketing site that requests a quote | products:read, fees:read, quotes:write, quotes:read, files:write |
| Client or lender database | organizations:read, organizations:write |
| Lead tool that also creates the company | organizations:read, organizations:write, leads:read, leads:write |
| Lead tool that only attaches to companies already synced | leads:read, leads:write |
| Status lookup for a lender portal | orders:read |
| Your server receives callbacks | Register the webhook in Settings → Public API. webhooks:manage is only needed if the server registers endpoints itself |
One key can hold several of these. A second key is better when a vendor should not see orders or quotes.
Prove the key
bash
curl -sS "$AF_API/me" \
-H "Authorization: Bearer $AF_API_KEY"A working key returns the company name, the key name, and the scopes you granted. 401 means the secret is missing, revoked, expired, or sent to a different environment than the app that created it. 403 on a later call means the key is valid and the scope is missing.
Receive events
Still on Settings → Public API, add a webhook:
- HTTPS URL on your server. Local HTTP is rejected outside local development.
- Select the events you handle. Directory sync uses
organization.upsertedandlead.upserted. Quote sites usequote.createdandquote.updated. - Copy the signing secret once.
- Send a test delivery and confirm Recent Deliveries shows a success.
Verify X-AF-Signature before you trust the body. The recipe is in Webhooks. Directory and lead payloads contain ids and action only. Call the GET endpoint if you need the full record.
First successful write
Website quote: Get Started and Quotes.
Client or lender database, or a lead system: Directory and leads and the CRM sync recipe.
Every POST that creates or upserts needs Idempotency-Key. For a database sync, also send a stable external_reference from the source system. That id is what updates the same organization on the next run. The idempotency key only protects a single HTTP retry for about 72 hours.
Confirm it in the office
| You sent | Staff see it |
|---|---|
| Organization | Clients. Open the record. External Reference and External Source show when the sync set them. |
| Lead | CRM, on the stage you sent (lead, qualified, proposal, won, lost) and the classification you sent (lead, private_lender, institutional_lender, amc, realtor, attorney). |
| Quote | Open Quotes, with your external_reference. |
| Order read | No new record. You are reading an order the office already has. |
Go live
- Create a second key with environment Live and the same scopes.
- Point production at
https://api.appraiserflow.aiand theaf_live_secret. - Revoke the test key only if that environment should stop. Revoke is immediate.
To rotate a live key, create the new secret, deploy it, then revoke the old key.
Rules for every connection
- Keep the key on a server you control.
- Phones are 10-digit US numbers. The API stores them as
(615) 555-0100. - Do not send appraisal values, AVMs, or assessed values. Those phrases are removed from notes, and quote responses never include them.
- This API does not email or text the client. Staff still send quotes from Appraiser Flow.