> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getriskdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Analysis lifecycle

> The statuses an analysis moves through, and when to stop polling.

`GET /analyses/{analysis_id}` answers `200 OK` in every state, so check `status` rather than the HTTP code.

```mermaid theme={null}
stateDiagram-v2
  [*] --> queued
  queued --> processing
  queued --> failed
  processing --> awaiting_verification
  processing --> completed
  processing --> partial
  processing --> failed
  awaiting_verification --> completed
  awaiting_verification --> partial
```

| Status | Meaning | Poll again? |
| - | - | - |
| `queued` | The analysis is waiting to start. | Yes, after `Retry-After`. |
| `processing` | We are finding the buildings and measuring them. | Yes, after `Retry-After`. |
| `awaiting_verification` | Your organization has a person check each result before release, and the check is not done yet. | Yes, after `Retry-After`. |
| `completed` | Every step finished. | No. |
| `partial` | The analysis finished, but some steps did not. `issues` lists them. | No. |
| `failed` | The analysis could not run. `failure` says why, and `buildings` is empty. | No. |

## Retry-After

While the status is `queued`, `processing` or `awaiting_verification`, the response carries a `Retry-After` header in seconds. Wait at least that long before the next request. A finished analysis has no `Retry-After`.

## Partial results

A `partial` analysis is a usable result with known gaps. The top-level `issues` list says which steps did not finish, for example `"Street-level imagery failed for 1 of 2 buildings."` Fields from the steps that did finish are filled in as usual.

## Failures

A `failed` analysis carries a `failure` object:

```json theme={null}
{
  "analysis_id": "00000000-0000-4000-8000-000000000004",
  "status": "failed",
  "failure": {
    "code": "processing_failed",
    "message": "The analysis could not be completed."
  },
  "metadata": {
    "requested_at": "2026-11-28T16:39:41Z",
    "started_at": "2026-11-28T16:39:41Z",
    "completed_at": "2026-11-28T16:40:55Z",
    "units": "metric",
    "verification": {
      "status": "unverified"
    },
    "imagery": {
      "oblique": [],
      "street_level": []
    },
    "links": {
      "self": "https://api.getriskdata.com/v1/analyses/00000000-0000-4000-8000-000000000004",
      "app_url": "https://app.getriskdata.com/v2/properties/00000000-0000-4000-8000-000000000004"
    }
  },
  "location": {
    "input": {
      "external_location_id": "LOC-GB-001",
      "submitted_address": "96 Euston Road, London NW1 2DB, United Kingdom"
    },
    "geocoding": {
      "address": "The British Library, 96 Euston Road, Somers Town, Hampstead, London, NW1 2DB, England, United Kingdom",
      "point": {
        "latitude": 51.5299868,
        "longitude": -0.1269884
      },
      "method": "model",
      "administrative": {
        "country_iso2": "GB",
        "state_code": "England",
        "state_name": "England",
        "county_name": "Greater London"
      }
    },
    "parcel": {
      "status": "not_assessed"
    },
    "hazards": {
      "perils": {}
    }
  },
  "buildings": []
}
```

| `failure.code` | Meaning | What to do |
| - | - | - |
| `geocoding_failed` | We could not place the address. | Check the address, or send coordinates. |
| `imagery_not_found` | No usable imagery covers the location. | Contact support if you expected coverage. |
| `processing_failed` | A processing step failed. | Submit the location again later, or contact support with the `analysis_id`. |

A failed analysis is final. Submitting the location again creates a new analysis.

## Results that keep updating

Two sections can still change after the analysis is `completed` or `partial`. Each one carries its own `status` and never holds back the analysis:

* `location.property_listings`: listings for the property, looked up after the analysis.
* `buildings[].occupancy.business_activity`: the businesses found at each building. A `partial` status here means the list may be incomplete: it reached its size limit, or the lookup ended early with some results.

Read the analysis again later if you need these sections and their status is `pending`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.