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

# Get Pathway Generation Status

> Poll pathway generation status and retrieve the generated pathway ID when ready.

### Headers

**authorization** `string` *required*

Your API key for authentication.

### Path Parameters

**job\_id** `string` *required*

The `jobId` returned by `POST /v1/pathway/generate`.

### How polling works

* The first status request can return `ready: false` while the server begins processing.
* Continue polling until `data.ready` is `true`.
* On success, the response includes `pathway_id`.
* On failure, the response includes `error`.

### Response

**data** `object`

Generation state object.

**data.ready** `boolean`

`false` while generation is still in progress, `true` when processing is complete.

**data.pathway\_id** `string`

Present when generation succeeds and `ready` is `true`.

**data.error** `string`

Present when generation fails and `ready` is `true`.

**errors** `null | array`

`null` on success responses, or a list of errors for invalid/unauthorized requests.

```json Not Ready theme={null}
{
  "data": {
    "ready": false
  },
  "errors": null
}
```

```json Ready (Success) theme={null}
{
  "data": {
    "ready": true,
    "pathway_id": "a6c24531-75b1-4334-95b2-2d0f11e8fe41"
  },
  "errors": null
}
```

```json Ready (Failed) theme={null}
{
  "data": {
    "ready": true,
    "error": "Prompt flagged for inappropriate content."
  },
  "errors": null
}
```

```json Error theme={null}
{
  "data": null,
  "errors": [
    {
      "error": "PATHWAY_GENERATION_FAILED",
      "message": "Job not found"
    }
  ]
}
```

***

Docs for agents: [llms.txt](https://docs.bland.ai/llms.txt)


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