curl --request POST \
--url https://canary.effectiveai.app/api/v2/filings/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"filters": [
{
"field": "state",
"operator": "eq",
"value": "<string>"
}
],
"sort": [
{}
],
"includePassages": true,
"limit": 50,
"cursor": "<string>"
}
'import requests
url = "https://canary.effectiveai.app/api/v2/filings/search"
payload = {
"query": "<string>",
"filters": [
{
"field": "state",
"operator": "eq",
"value": "<string>"
}
],
"sort": [{}],
"includePassages": True,
"limit": 50,
"cursor": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: '<string>',
filters: [{field: 'state', operator: 'eq', value: '<string>'}],
sort: [{}],
includePassages: true,
limit: 50,
cursor: '<string>'
})
};
fetch('https://canary.effectiveai.app/api/v2/filings/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://canary.effectiveai.app/api/v2/filings/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => '<string>',
'filters' => [
[
'field' => 'state',
'operator' => 'eq',
'value' => '<string>'
]
],
'sort' => [
[
]
],
'includePassages' => true,
'limit' => 50,
'cursor' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://canary.effectiveai.app/api/v2/filings/search"
payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"filters\": [\n {\n \"field\": \"state\",\n \"operator\": \"eq\",\n \"value\": \"<string>\"\n }\n ],\n \"sort\": [\n {}\n ],\n \"includePassages\": true,\n \"limit\": 50,\n \"cursor\": \"<string>\"\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(string(body))
}HttpResponse<String> response = Unirest.post("https://canary.effectiveai.app/api/v2/filings/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"filters\": [\n {\n \"field\": \"state\",\n \"operator\": \"eq\",\n \"value\": \"<string>\"\n }\n ],\n \"sort\": [\n {}\n ],\n \"includePassages\": true,\n \"limit\": 50,\n \"cursor\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://canary.effectiveai.app/api/v2/filings/search")
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\": \"<string>\",\n \"filters\": [\n {\n \"field\": \"state\",\n \"operator\": \"eq\",\n \"value\": \"<string>\"\n }\n ],\n \"sort\": [\n {}\n ],\n \"includePassages\": true,\n \"limit\": 50,\n \"cursor\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"filings": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "<string>",
"sourceReference": "<string>",
"state": "<string>",
"companyName": "<string>",
"carrierIds": [
"<string>"
],
"groupId": "<string>",
"productName": "<string>",
"typeOfInsurance": "<string>",
"subTypeOfInsurance": "<string>",
"toiCode": "<string>",
"subToiCode": "<string>",
"filingType": "<string>",
"sourceStatus": "<string>",
"submissionDate": "2023-12-25",
"dispositionDate": "2023-12-25",
"businessType": "<string>",
"description": "<string>",
"normalizedOutcome": "<string>",
"filingTypeNormalized": "<string>",
"stateStatusChangedDate": "2023-12-25",
"matches": [
{
"fileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"versionId": "<string>",
"name": "<string>",
"passages": [
{
"text": "<string>",
"pageStart": 123,
"pageEnd": 123
}
]
}
]
}
],
"nextCursor": "<string>",
"exhaustive": true
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>"
}Search filings
Search filing documents with structured metadata filters, or omit query for advanced metadata browsing. Text queries default to recent filings (2018+ and undated); metadata-only browsing defaults to all dates. Text results are a bounded candidate window, not complete catalog coverage. Default ordering is submission date descending. Repeat the semantic request with nextCursor; tokens are bound to query, caller scope and page size and expire 24 hours after the first page. Each page reruns the live query: index, ranking and metadata changes can cause repeats or omissions. No exact total is computed. Body limit: 64 KiB. Evidence versionId is null when the indexed version is unknown; it must not be inferred from current file metadata.
curl --request POST \
--url https://canary.effectiveai.app/api/v2/filings/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"filters": [
{
"field": "state",
"operator": "eq",
"value": "<string>"
}
],
"sort": [
{}
],
"includePassages": true,
"limit": 50,
"cursor": "<string>"
}
'import requests
url = "https://canary.effectiveai.app/api/v2/filings/search"
payload = {
"query": "<string>",
"filters": [
{
"field": "state",
"operator": "eq",
"value": "<string>"
}
],
"sort": [{}],
"includePassages": True,
"limit": 50,
"cursor": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: '<string>',
filters: [{field: 'state', operator: 'eq', value: '<string>'}],
sort: [{}],
includePassages: true,
limit: 50,
cursor: '<string>'
})
};
fetch('https://canary.effectiveai.app/api/v2/filings/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://canary.effectiveai.app/api/v2/filings/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => '<string>',
'filters' => [
[
'field' => 'state',
'operator' => 'eq',
'value' => '<string>'
]
],
'sort' => [
[
]
],
'includePassages' => true,
'limit' => 50,
'cursor' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://canary.effectiveai.app/api/v2/filings/search"
payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"filters\": [\n {\n \"field\": \"state\",\n \"operator\": \"eq\",\n \"value\": \"<string>\"\n }\n ],\n \"sort\": [\n {}\n ],\n \"includePassages\": true,\n \"limit\": 50,\n \"cursor\": \"<string>\"\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(string(body))
}HttpResponse<String> response = Unirest.post("https://canary.effectiveai.app/api/v2/filings/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"filters\": [\n {\n \"field\": \"state\",\n \"operator\": \"eq\",\n \"value\": \"<string>\"\n }\n ],\n \"sort\": [\n {}\n ],\n \"includePassages\": true,\n \"limit\": 50,\n \"cursor\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://canary.effectiveai.app/api/v2/filings/search")
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\": \"<string>\",\n \"filters\": [\n {\n \"field\": \"state\",\n \"operator\": \"eq\",\n \"value\": \"<string>\"\n }\n ],\n \"sort\": [\n {}\n ],\n \"includePassages\": true,\n \"limit\": 50,\n \"cursor\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"filings": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "<string>",
"sourceReference": "<string>",
"state": "<string>",
"companyName": "<string>",
"carrierIds": [
"<string>"
],
"groupId": "<string>",
"productName": "<string>",
"typeOfInsurance": "<string>",
"subTypeOfInsurance": "<string>",
"toiCode": "<string>",
"subToiCode": "<string>",
"filingType": "<string>",
"sourceStatus": "<string>",
"submissionDate": "2023-12-25",
"dispositionDate": "2023-12-25",
"businessType": "<string>",
"description": "<string>",
"normalizedOutcome": "<string>",
"filingTypeNormalized": "<string>",
"stateStatusChangedDate": "2023-12-25",
"matches": [
{
"fileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"versionId": "<string>",
"name": "<string>",
"passages": [
{
"text": "<string>",
"pageStart": 123,
"pageEnd": 123
}
]
}
]
}
],
"nextCursor": "<string>",
"exhaustive": true
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>"
}Authorizations
Effective API key. Send Authorization: Bearer sk-eai-...
Body
Keyword search over filing documents. Omit for metadata-only browsing. Quoted phrases without a narrowing metadata filter fall back to keyword search, matching API v1.
1 - 4000Filters combine with AND. Values in an in/containsAny filter combine with OR. Dates are inclusive. TOI, SubTOI, outcome and filing type use normalized values.
50- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
- Option 14
- Option 15
- Option 16
- Option 17
- Option 18
- Option 19
- Option 20
- Option 21
- Option 22
- Option 23
Show child attributes
Show child attributes
Default: submissionDate descending, matching API v1. Specify relevance descending for relevance ordering. Metadata sorting of text results applies within the retrieved candidate window.
1 - 3 elementsShow child attributes
Show child attributes
Request matching text passages. Omit to use the configured default; false skips passages but may still return matching document IDs and names. True uses a bounded window of 100 candidate documents; false or omitted permits up to 1,200. Passages and page numbers may be unavailable. Has no effect when browsing without a query.
Text queries default to recent (2018+ and undated); metadata-only requests default to all.
recent, historical, all 1 <= x <= 2001 - 128Response
Matching filings and optional evidence.