code field in the response body for detailed error identification.
Response format
Error responses follow this structure:HTTP status codes
Authentication & permission errors
Restricted API keys
As part of ongoing security monitoring, Lofty may restrict an API key that matches one or more risk indicators. A restricted key only works from approved IP addresses; calls from any other address return HTTP401 with code 200136 (TOKEN_AT_RISK). This is a precaution and does not mean your account was compromised.
When a key may be restricted
Lofty reviews API key usage on an ongoing basis. A key may be restricted when its usage matches one or more risk indicators, for example:- The key has appeared somewhere it should not be stored or shown in plain text.
- The key is used from an unusually large number of different IP addresses, or the calling IP changes very frequently.
- The key is used from locations that are geographically far apart within a short period of time.
- Calls come from anonymizing networks (VPNs, proxies, Tor) or hosting providers that do not match your integration’s usual traffic.
- The client fingerprint changes unexpectedly, for example a different
User-Agentfrom the one your integration normally sends. - Request volume spikes suddenly, unusual endpoints are called, or requests look like bulk data enumeration.
- A key that has been inactive for a long time suddenly becomes active again.
What to do
If you receive aTOKEN_AT_RISK error:
- Create a new API key in your account settings. See API Keys.
- Update your integration to use the new key and confirm it works.
- Revoke the old key.
Validation errors (400)
Resource not found (404)
Lead errors (400)
Lead pond errors
Returned byPOST /v1.0/leads, PUT /v1.0/leads/{leadId} and POST /v1.0/leads/{leadId}/assignment when pondId is used. See Move a lead into a lead pond.
Retired endpoints and Sales Agent errors
Transaction errors (400)
Agent lifecycle errors (200 with error code)
POST /v2.0/agents/{agentId}/deactivate and POST /v2.0/agents/{agentId}/reactivate always return HTTP 200 once authentication passes. Check the response body’s code field (absent or 0 means success) rather than the status code.