> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.aventure.vc/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.aventure.vc/_mcp/server.

# Audit standardized entity classifications across the fleet

POST https://api.aventure.vc/v1/entities/classifications/audit/fleet
Content-Type: application/json

Read-only audit of standardized classification joins across the entity fleet. Pages entities in entityId order with a compact row per entity: join set, multi-primary and ancestor-chain findings, and the set hash the reconcile endpoint requires as expectedHash. Filter by typeRecord, category, minimum join count, or finding.

Reference: https://docs.aventure.vc/api-reference/a-venture-api/entity-classifications-audit/audit-fleet-entity-classifications

## Authentication

- `X-Client-Secret` header (required) — Client secret for read-only service-to-service access (no writes)

## Request

### Query parameters

- `cursor` (string, optional) — Opaque continuation cursor from the previous response's nextCursor. Reuse the same filters and sort.
- `size` (integer, optional) — The size of the page to be returned; default 25, maximum 200.

### Body (application/json)

- `ancestorChain` (boolean, optional) — Only entities holding both an ancestor and its descendant code inside one hierarchical standardized category (ISIC, NAICS, SIC); descendant means the ancestor code digits are a strict prefix of the descendant code digits.
- `category` (string, optional, nullable) — Restrict to entities holding at least one join in this standardized category; matched rows still report the entity's full standardized join set.
- `includePrivate` (boolean, optional, nullable) — Privileged read scope for admin callers. Includes hidden and not-yet-published entities. Defaults to private visibility for admin API key or ROLE_ADMIN callers; client-secret callers stay public.
- `minCount` (integer, optional, nullable) — Only entities with at least this many standardized joins; when omitted, entities with zero joins remain in the fleet audit.
- `multiplePrimary` (boolean, optional) — Only entities holding more than one primary join inside a single standardized category.
- `type` (enum, optional, nullable) — Restrict to entities with this typeRecord, e.g. Company.
  - Allowed values: `Company`, `Investment Firm`, `Fund`, `Nonprofit`, `Government`, `Organization`, `Business Line`, `Product`, `Service`

## Response

### 200

OK

- `row` (list of object, required) — Audited entities in entityId order.
  - `ancestorChainCategory` (list of string, required) — Hierarchical categories where this entity joins both an ancestor code and one of its descendants (after zero-padding to the taxonomy width, the ancestor's significant digits prefix the descendant's code).
  - `entityId` (string, required) — Canonical entity UUID.
  - `expectedHash` (string, required) — Deterministic hash of the current standardized join set; pass to reconcile as expectedHash.
  - `join` (list of object, required) — Current standardized classification joins.
    - `creatable` (boolean, required)
    - `name` (string, required) — Display name. Capped to the standardized taxonomy storage limit because this shared read contract covers NAICS/SIC/ISIC-style classification labels as well as editorial tags.
    - `writable` (boolean, required)
    - `category` (string, required) — Standardized category token.
    - `creatable` (boolean, required) — Standardized taxonomy rows are join-existing-only.
    - `id` (integer, required) — Standardized classification registry id from res_classification_ref; use as EntityClassificationMutation.classificationId.
    - `name` (string, required) — Name
    - `writable` (boolean, required) — Existing standardized rows can be joined through classificationId.
    - `isCurrent` (boolean, optional, nullable)
    - `isPrimary` (boolean, optional, nullable)
    - `code` (integer, optional, nullable) — Standardized classification code when present.
    - `createdAt` (datetime, optional, nullable) — Registry row creation timestamp.
    - `entityClassificationId` (integer, optional, nullable) — Entity classification join row id for update/delete; present on entity classification responses and null on discovery responses.
    - `isCurrent` (boolean, optional, nullable) — Standardized reference rows are current by definition.
    - `isPrimary` (boolean, optional, nullable) — Entity join primary flag within this standardized category.
    - `level` (integer, optional, nullable) — Hierarchy level when present.
    - `updatedAt` (datetime, optional, nullable) — Registry row update timestamp.
  - `joinCount` (integer, required) — Standardized join count for the entity.
  - `multiplePrimaryCategory` (list of string, required) — Categories holding more than one primary join on this entity.
  - `publicVisible` (boolean, required) — Whether this entity is visible to public reads.
  - `name` (string, optional, nullable) — Entity brand name.
  - `publicRoute` (string, optional, nullable) — Canonical public SSR detail route when this entity is visible and routable; null when hidden, invalidly slugged, or not served by a public detail route.
  - `slug` (string, optional, nullable) — Entity slug.
  - `type` (enum, optional, nullable) — Entity typeRecord; null on the type-null completeness gap.
    - Allowed values: `Company`, `Investment Firm`, `Fund`, `Nonprofit`, `Government`, `Organization`, `Business Line`, `Product`, `Service`
- `total` (integer, required) — Frozen snapshot total for fleet audits; keyset pages report page size.
- `nextCursor` (string, optional, nullable) — Opaque continuation cursor; null on the last page.

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "row": [
    {
      "ancestorChainCategory": [
        "string"
      ],
      "entityId": "string",
      "expectedHash": "string",
      "join": [
        {
          "creatable": true,
          "name": "string",
          "writable": true,
          "category": "string",
          "id": 1,
          "isCurrent": true,
          "isPrimary": true,
          "code": 1,
          "createdAt": "2024-01-15T09:30:00Z",
          "entityClassificationId": 1,
          "level": 1,
          "updatedAt": "2024-01-15T09:30:00Z"
        }
      ],
      "joinCount": 1,
      "multiplePrimaryCategory": [
        "string"
      ],
      "publicVisible": true,
      "name": "string",
      "publicRoute": "string",
      "slug": "string",
      "type": "Company"
    }
  ],
  "total": 1,
  "nextCursor": "string"
}
```

**SDK Code**

```python
import requests

url = "https://api.aventure.vc/v1/entities/classifications/audit/fleet"

payload = {}
headers = {
    "X-Client-Secret": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.aventure.vc/v1/entities/classifications/audit/fleet';
const options = {
  method: 'POST',
  headers: {'X-Client-Secret': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

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

func main() {

	url := "https://api.aventure.vc/v1/entities/classifications/audit/fleet"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-Client-Secret", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.aventure.vc/v1/entities/classifications/audit/fleet")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-Client-Secret"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.aventure.vc/v1/entities/classifications/audit/fleet")
  .header("X-Client-Secret", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.aventure.vc/v1/entities/classifications/audit/fleet', [
  'body' => '{}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-Client-Secret' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.aventure.vc/v1/entities/classifications/audit/fleet");
var request = new RestRequest(Method.POST);
request.AddHeader("X-Client-Secret", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-Client-Secret": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.aventure.vc/v1/entities/classifications/audit/fleet")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```