Appearance
Environments
| Env | API host | Key prefix | Notes |
|---|---|---|---|
| Local Compose | http://localhost:18000/public/v1 | af_test_ or af_live_ | Key must be created on this local API |
| Staging | https://staging-api.appraiserflow.ai/public/v1 | af_test_ or af_live_ | Key must be created in the staging app |
| Production | https://api.appraiserflow.ai/public/v1 | af_test_ or af_live_ | Key must be created in the production app |
Copy that full base from Settings → Public API in the same app that created the key. The guides call it AF_API. A test key created in production calls https://api.appraiserflow.ai/public/v1. It does not call the staging API, because the secret is stored only in the production database.
Try It on this site calls the API base in the footer and accepts an af_test_ key from that same environment. Keep af_live_ keys on your server.
Headers
http
Authorization: Bearer af_test_…
Content-Type: application/json
Idempotency-Key: … # required on POST quotes, organizations, and leads
X-Request-Id: … # optional; echoed on responsesErrors use:
json
{
"error": {
"code": "invalid_api_key",
"message": "…",
"request_id": "req_…",
"details": []
}
}