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

# Create FindAll run

POST https://core.usescout.sh/v1/findall/runs
Content-Type: application/json

Start an async entity-discovery run. Returns a findall_id at once;
poll GET /v1/findall/runs/{id}, stream /events, or supply a webhook.

Reference: https://docs.usescout.sh/api-reference/scout/find-all/run-create-v-1-findall-runs-post

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Scout
  version: 1.0.0
paths:
  /v1/findall/runs:
    post:
      operationId: run-create-v-1-findall-runs-post
      summary: Create FindAll run
      description: |-
        Start an async entity-discovery run. Returns a findall_id at once;
        poll GET /v1/findall/runs/{id}, stream /events, or supply a webhook.
      tags:
        - subpackage_findAll
      parameters:
        - name: Authorization
          in: header
          description: Your API key, sent as a Bearer token.
          required: true
          schema:
            type: string
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FindAllRunView'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FindAllRunRequest'
servers:
  - url: https://core.usescout.sh
components:
  schemas:
    FindAllRunRequest:
      type: object
      properties:
        query:
          type: string
          description: Description of the entity set to enumerate.
        fields:
          type:
            - array
            - 'null'
          items:
            type: string
          description: Column names for each entity row.
        output_schema:
          type:
            - object
            - 'null'
          additionalProperties:
            description: Any type
          description: >-
            Optional JSON Schema each entity object must conform to. Takes
            precedence over `fields` for typed rows.
        limit:
          type: integer
          default: 20
          description: Max entities to find.
        webhook:
          type:
            - string
            - 'null'
          description: If set, the finished run is POSTed here.
      required:
        - query
      title: FindAllRunRequest
    FindAllRunView:
      type: object
      properties:
        findall_id:
          type: string
          description: Opaque run identifier.
        status:
          description: >-
            String for back-compat (queued/running/completed/failed/cancelled)
            OR the rich Parallel-style status object when the run has completed.
        query:
          type: string
          description: The enumeration query.
        fields:
          type:
            - array
            - 'null'
          items:
            type: string
          description: The requested entity fields, if any.
        output_schema:
          type:
            - object
            - 'null'
          additionalProperties:
            description: Any type
          description: The JSON Schema for entity objects, if any.
        entities:
          type: array
          items:
            type: object
            additionalProperties:
              description: Any type
          description: Entities found so far (flat rows; back-compat).
        candidates:
          type:
            - array
            - 'null'
          items:
            type: object
            additionalProperties:
              description: Any type
          description: Rich candidates once the run has completed.
        metadata:
          type:
            - object
            - 'null'
          additionalProperties:
            description: Any type
          description: 'Run metadata: {title, input}.'
        findall_schema:
          type:
            - object
            - 'null'
          additionalProperties:
            description: Any type
          description: 'Schema spec: objective, conditions, generator.'
        count:
          type: integer
          description: Number of entities found.
        error:
          type:
            - string
            - 'null'
          description: Failure reason when status is failed.
        createdAt:
          type:
            - string
            - 'null'
          description: ISO-8601 created.
        completedAt:
          type:
            - string
            - 'null'
          description: ISO-8601 finished.
        credits:
          type: integer
          description: Cost accumulated by the run.
      required:
        - findall_id
        - status
        - query
        - entities
        - count
        - credits
      title: FindAllRunView
    ValidationErrorLocItems:
      oneOf:
        - type: string
        - type: integer
      title: ValidationErrorLocItems
    ValidationErrorCtx:
      type: object
      properties: {}
      title: ValidationErrorCtx
    ValidationError:
      type: object
      properties:
        loc:
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorLocItems'
        msg:
          type: string
        type:
          type: string
        input:
          description: Any type
        ctx:
          $ref: '#/components/schemas/ValidationErrorCtx'
      required:
        - loc
        - msg
        - type
      title: ValidationError
    HTTPValidationError:
      type: object
      properties:
        detail:
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
      title: HTTPValidationError
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: Your API key, sent as a Bearer token.

```

## SDK Code Examples

```python FindAll_runCreateV1FindallRunsPost_example
import requests

url = "https://core.usescout.sh/v1/findall/runs"

payload = {
    "query": "S-1 stage AI infrastructure companies",
    "fields": ["name", "website", "headquarters"],
    "limit": 20,
    "webhook": "https://example.com/hooks/scout"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript FindAll_runCreateV1FindallRunsPost_example
const url = 'https://core.usescout.sh/v1/findall/runs';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"query":"S-1 stage AI infrastructure companies","fields":["name","website","headquarters"],"limit":20,"webhook":"https://example.com/hooks/scout"}'
};

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

```go FindAll_runCreateV1FindallRunsPost_example
package main

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

func main() {

	url := "https://core.usescout.sh/v1/findall/runs"

	payload := strings.NewReader("{\n  \"query\": \"S-1 stage AI infrastructure companies\",\n  \"fields\": [\n    \"name\",\n    \"website\",\n    \"headquarters\"\n  ],\n  \"limit\": 20,\n  \"webhook\": \"https://example.com/hooks/scout\"\n}")

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

	req.Header.Add("Authorization", "Bearer <token>")
	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 FindAll_runCreateV1FindallRunsPost_example
require 'uri'
require 'net/http'

url = URI("https://core.usescout.sh/v1/findall/runs")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"query\": \"S-1 stage AI infrastructure companies\",\n  \"fields\": [\n    \"name\",\n    \"website\",\n    \"headquarters\"\n  ],\n  \"limit\": 20,\n  \"webhook\": \"https://example.com/hooks/scout\"\n}"

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

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

HttpResponse<String> response = Unirest.post("https://core.usescout.sh/v1/findall/runs")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"query\": \"S-1 stage AI infrastructure companies\",\n  \"fields\": [\n    \"name\",\n    \"website\",\n    \"headquarters\"\n  ],\n  \"limit\": 20,\n  \"webhook\": \"https://example.com/hooks/scout\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://core.usescout.sh/v1/findall/runs', [
  'body' => '{
  "query": "S-1 stage AI infrastructure companies",
  "fields": [
    "name",
    "website",
    "headquarters"
  ],
  "limit": 20,
  "webhook": "https://example.com/hooks/scout"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp FindAll_runCreateV1FindallRunsPost_example
using RestSharp;

var client = new RestClient("https://core.usescout.sh/v1/findall/runs");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"query\": \"S-1 stage AI infrastructure companies\",\n  \"fields\": [\n    \"name\",\n    \"website\",\n    \"headquarters\"\n  ],\n  \"limit\": 20,\n  \"webhook\": \"https://example.com/hooks/scout\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift FindAll_runCreateV1FindallRunsPost_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "query": "S-1 stage AI infrastructure companies",
  "fields": ["name", "website", "headquarters"],
  "limit": 20,
  "webhook": "https://example.com/hooks/scout"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://core.usescout.sh/v1/findall/runs")! 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()
```