Appearance
Environments
| Env | API host | Key prefix | Notes |
|---|---|---|---|
| Local | http://localhost:18000 or :8000 | af_test_ | Compose / local API |
| Staging | https://staging-api.appraiserflow.ai | af_test_ | Live keys rejected on non-prod by default |
| Production | https://api.appraiserflow.ai | af_live_ | Test keys rejected on prod |
Portal Try-it defaults to the staging API base (VITE_PUBLIC_API_BASE).
Headers
http
Authorization: Bearer af_test_…
Content-Type: application/json
Idempotency-Key: … # required on POST /quotes
X-Request-Id: … # optional; echoed on responsesErrors use:
json
{
"error": {
"code": "invalid_api_key",
"message": "…",
"request_id": "req_…",
"details": []
}
}