Create a company for filing preparation
curl --request POST \
--url https://canary.effectiveai.app/api/v2/managed-filings/companies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"domicileJurisdictionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scope": "<string>",
"shortName": "<string>",
"naicCompanyCode": "<string>",
"naicGroupCode": "<string>"
}
'import requests
url = "https://canary.effectiveai.app/api/v2/managed-filings/companies"
payload = {
"name": "<string>",
"domicileJurisdictionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scope": "<string>",
"shortName": "<string>",
"naicCompanyCode": "<string>",
"naicGroupCode": "<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({
name: '<string>',
domicileJurisdictionId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
scope: '<string>',
shortName: '<string>',
naicCompanyCode: '<string>',
naicGroupCode: '<string>'
})
};
fetch('https://canary.effectiveai.app/api/v2/managed-filings/companies', 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/managed-filings/companies",
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([
'name' => '<string>',
'domicileJurisdictionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'scope' => '<string>',
'shortName' => '<string>',
'naicCompanyCode' => '<string>',
'naicGroupCode' => '<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/managed-filings/companies"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"domicileJurisdictionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"scope\": \"<string>\",\n \"shortName\": \"<string>\",\n \"naicCompanyCode\": \"<string>\",\n \"naicGroupCode\": \"<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/managed-filings/companies")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"domicileJurisdictionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"scope\": \"<string>\",\n \"shortName\": \"<string>\",\n \"naicCompanyCode\": \"<string>\",\n \"naicGroupCode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://canary.effectiveai.app/api/v2/managed-filings/companies")
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 \"name\": \"<string>\",\n \"domicileJurisdictionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"scope\": \"<string>\",\n \"shortName\": \"<string>\",\n \"naicCompanyCode\": \"<string>\",\n \"naicGroupCode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"name": "<string>",
"shortName": "<string>",
"naicCompanyCode": "<string>",
"naicGroupCode": "<string>",
"status": "<string>",
"domicileJurisdictionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"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>"
}{
"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>"
}Companies
Create a company for filing preparation
Supply its legal name and domicileJurisdictionId. Optional NAIC codes are stored as supplied after trimming; preserve leading zeros. Names and NAIC codes are not unique: search before creating. This does not import a catalog carrier. Requires a write-capable user key, MC edit access and registered resource types. Does not submit a filing or contact SERFF. POST is not idempotent; inspect the list after an uncertain response before retrying. JSON body limit: 64 KiB.
POST
/
managed-filings
/
companies
Create a company for filing preparation
curl --request POST \
--url https://canary.effectiveai.app/api/v2/managed-filings/companies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"domicileJurisdictionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scope": "<string>",
"shortName": "<string>",
"naicCompanyCode": "<string>",
"naicGroupCode": "<string>"
}
'import requests
url = "https://canary.effectiveai.app/api/v2/managed-filings/companies"
payload = {
"name": "<string>",
"domicileJurisdictionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scope": "<string>",
"shortName": "<string>",
"naicCompanyCode": "<string>",
"naicGroupCode": "<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({
name: '<string>',
domicileJurisdictionId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
scope: '<string>',
shortName: '<string>',
naicCompanyCode: '<string>',
naicGroupCode: '<string>'
})
};
fetch('https://canary.effectiveai.app/api/v2/managed-filings/companies', 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/managed-filings/companies",
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([
'name' => '<string>',
'domicileJurisdictionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'scope' => '<string>',
'shortName' => '<string>',
'naicCompanyCode' => '<string>',
'naicGroupCode' => '<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/managed-filings/companies"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"domicileJurisdictionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"scope\": \"<string>\",\n \"shortName\": \"<string>\",\n \"naicCompanyCode\": \"<string>\",\n \"naicGroupCode\": \"<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/managed-filings/companies")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"domicileJurisdictionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"scope\": \"<string>\",\n \"shortName\": \"<string>\",\n \"naicCompanyCode\": \"<string>\",\n \"naicGroupCode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://canary.effectiveai.app/api/v2/managed-filings/companies")
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 \"name\": \"<string>\",\n \"domicileJurisdictionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"scope\": \"<string>\",\n \"shortName\": \"<string>\",\n \"naicCompanyCode\": \"<string>\",\n \"naicGroupCode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"name": "<string>",
"shortName": "<string>",
"naicCompanyCode": "<string>",
"naicGroupCode": "<string>",
"status": "<string>",
"domicileJurisdictionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"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>"
}{
"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
application/json
Required string length:
1 - 500MC UUID or stable slug prefixed with mc:.
Pattern:
^mc:[A-Za-z0-9][A-Za-z0-9-]{0,127}$Maximum string length:
500Required string length:
1 - 200Required string length:
1 - 200Available options:
active, runoff, inactive, null