> This page is for version v2024-12-23.
> For other versions, use one of these documentation indexes:
> - v2026-02-09 (default): https://docs.extend.ai/2026-02-09/llms.txt
> - v2025-04-21: https://docs.extend.ai/2025-04-21/llms.txt
> - v2024-12-23: https://docs.extend.ai/2024-12-23/llms.txt

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.extend.ai/llms.txt
> Use this file to discover all available pages before exploring further.
>
> ## API version
> The current API version is `2026-02-09`, served at the site root (no version prefix in URLs).
> If this page URL contains `/2025-04-21/` or `/2024-12-23/`, you are reading an older API version.
> Prefer the current docs at https://docs.extend.ai/llms.txt unless the user explicitly needs that older version.
> Do not treat older-version pages as the source of truth for new integrations.

# List Processor Versions

This endpoint allows you to fetch all versions of a given processor, including the current `draft` version.

* Versions are typically returned in descending order of creation (newest first), but this should be confirmed in the actual implementation.
* The `draft` version is the latest unpublished version of the processor, which can be published to create a new version. It might not have any changes from the last published version.

### Path Parameters

**`id`** `string` — required

The ID of the processor to retrieve versions for.

---

### Response

**`success`** `boolean`

A true or false value indicating whether the request was successful or not.

---

**`versions`** `array`

An array of ProcessorVersion objects representing all versions of the
specified processor. See the [ProcessorVersion object](/2024-12-23/developers/objects/processor-version) for more details on the
structure of each version.

---

### Error Responses

**`success`** `boolean`

Will be `false` if the request failed.

---

**`error`** `string`

A description of the error that occurred.

---

#### Possible Errors

* **404 Not Found**: If the specified processor does not exist.

```curl
curl --request GET \
  --url https://api-prod.extend.app/processors/:id/versions \
  --header 'Authorization: Bearer <token>'
```

```python
import requests

url = "https://api-prod.extend.app/processors/:id/versions"

headers = {"Authorization": "Bearer <token>"}

response = requests.request("GET", url, headers=headers)

print(response.text)
```

```javascript
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api-prod.extend.app/processors/:id/versions', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
```

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api-prod.extend.app/processors/:id/versions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <token>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api-prod.extend.app/processors/:id/versions"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```java
HttpResponse<String> response = Unirest.get("https://api-prod.extend.app/processors/:id/versions")
  .header("Authorization", "Bearer <token>")
  .asString();
```

**`Example Success Response`**

```json Example Success Response
{
  "success": true,
  "versions": [
    {
      "object": "document_processor_version",
      "id": "processor_version_5678",
      "processorId": "processor_1234",
      "processorType": "EXTRACT",
      "description": "Updated extraction rules for invoice processing",
      "version": "1.2",
      "config": {
        // Config object - see “Processor configs” for details
      },
      "createdAt": "2024-03-01T14:00:00Z",
      "updatedAt": "2024-03-01T14:00:00Z"
    },
    {
      "object": "document_processor_version",
      "id": "processor_version_5677",
      "processorId": "processor_1234",
      "processorType": "EXTRACT",
      "description": "Initial version",
      "version": "0.1",
      "config": {
        // Config object - see “Processor configs” for details
      },
      "createdAt": "2024-02-15T10:00:00Z",
      "updatedAt": "2024-02-15T10:00:00Z"
    }
  ]
}
```