Get Carriers
curl --request GET \
--url https://sandbox.axle.insure/carriers \
--header 'x-client-id: <x-client-id>' \
--header 'x-client-secret: <api-key>'import requests
url = "https://sandbox.axle.insure/carriers"
headers = {
"x-client-id": "<x-client-id>",
"x-client-secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-client-id': '<x-client-id>', 'x-client-secret': '<api-key>'}
};
fetch('https://sandbox.axle.insure/carriers', 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://sandbox.axle.insure/carriers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-client-id: <x-client-id>",
"x-client-secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.axle.insure/carriers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-client-id", "<x-client-id>")
req.Header.Add("x-client-secret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.axle.insure/carriers")
.header("x-client-id", "<x-client-id>")
.header("x-client-secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.axle.insure/carriers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-client-id"] = '<x-client-id>'
request["x-client-secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "state-farm",
"name": "State Farm",
"domain": "www.statefarm.com",
"address": {
"addressLine1": "One State Farm Plaza",
"addressLine2": null,
"city": "Bloomington",
"state": "IL",
"postalCode": "61710",
"country": null
},
"phone": "+18007828332",
"naicCodes": [
"25178",
"25143",
"36351"
],
"logoUrl": "https://example.com/state-farm.svg",
"modifiedAt": "2023-04-04T19:27:55.523Z"
},
{
"id": "progressive",
"name": "Progressive",
"domain": "www.progressive.com",
"address": {
"addressLine1": "6300 Wilson Mills Rd",
"addressLine2": null,
"city": "Mayfield Village",
"state": "OH",
"postalCode": "44143",
"country": null
},
"phone": "+18005551234",
"naicCodes": [
"24260",
"10193",
"16322"
],
"logoUrl": "https://example.com/progressive.svg",
"modifiedAt": "2023-04-04T19:27:55.523Z"
}
]
}{
"success": false,
"message": "Input validation failed due to one or more missing or invalid parameters. Review the request and try again."
}{
"message": "Too Many Requests"
}Carriers
Get Carriers
The Get Carriers endpoint returns an array of Carrier objects which include additional details about Axle-supported insurance carriers.
GET
/
carriers
Get Carriers
curl --request GET \
--url https://sandbox.axle.insure/carriers \
--header 'x-client-id: <x-client-id>' \
--header 'x-client-secret: <api-key>'import requests
url = "https://sandbox.axle.insure/carriers"
headers = {
"x-client-id": "<x-client-id>",
"x-client-secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-client-id': '<x-client-id>', 'x-client-secret': '<api-key>'}
};
fetch('https://sandbox.axle.insure/carriers', 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://sandbox.axle.insure/carriers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-client-id: <x-client-id>",
"x-client-secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.axle.insure/carriers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-client-id", "<x-client-id>")
req.Header.Add("x-client-secret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.axle.insure/carriers")
.header("x-client-id", "<x-client-id>")
.header("x-client-secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.axle.insure/carriers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-client-id"] = '<x-client-id>'
request["x-client-secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "state-farm",
"name": "State Farm",
"domain": "www.statefarm.com",
"address": {
"addressLine1": "One State Farm Plaza",
"addressLine2": null,
"city": "Bloomington",
"state": "IL",
"postalCode": "61710",
"country": null
},
"phone": "+18007828332",
"naicCodes": [
"25178",
"25143",
"36351"
],
"logoUrl": "https://example.com/state-farm.svg",
"modifiedAt": "2023-04-04T19:27:55.523Z"
},
{
"id": "progressive",
"name": "Progressive",
"domain": "www.progressive.com",
"address": {
"addressLine1": "6300 Wilson Mills Rd",
"addressLine2": null,
"city": "Mayfield Village",
"state": "OH",
"postalCode": "44143",
"country": null
},
"phone": "+18005551234",
"naicCodes": [
"24260",
"10193",
"16322"
],
"logoUrl": "https://example.com/progressive.svg",
"modifiedAt": "2023-04-04T19:27:55.523Z"
}
]
}{
"success": false,
"message": "Input validation failed due to one or more missing or invalid parameters. Review the request and try again."
}{
"message": "Too Many Requests"
}Authorizations
Was this page helpful?