Get Accounts
curl --request GET \
--url https://api.example.com/accounts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/accounts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/accounts', 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://api.example.com/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.example.com/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/accounts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Accounts
List Accounts
GET
/
accounts
Get Accounts
curl --request GET \
--url https://api.example.com/accounts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/accounts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/accounts', 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://api.example.com/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.example.com/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/accounts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}New to accounts? See the Accounts guide for how accounts relate to contacts and deals. This page is the field-level technical reference.
account_id and roll up to it; deleting an account isn’t exposed here — contacts and deals just have their account_id set to null at the database level if an account is ever removed some other way.
Returns a page of the caller’s organization’s accounts, ordered alphabetically by name. This is a bare JSON array with no total-count signal — keep incrementing offset until a response comes back shorter than limit. limit defaults to 200 and is capped at 500 server-side regardless of what you pass. search does a case-insensitive substring match against name or domain. Characters that are meaningful in the underlying filter syntax are neutralized first, but not identically: parentheses are removed, while each comma is replaced with a space. Watch out for that substitution — search=Acme, Inc becomes the pattern *Acme Inc* with a doubled space, which matches nothing. Drop the comma yourself (search=Acme Inc) when the name you’re searching for contains one.
Only a fixed projection of columns is returned, not the full account row (see Response below).
Auth
Requires a CRM read scope and an active organization on the token. Any ofcontacts:read, deals:read, companies:read, or activities:read qualifies, as does any *:manage scope — manage implies read.
Response
Array of account objects, each with only these fields:| Field | Type | Description |
|---|---|---|
id | string (uuid) | Primary key. |
name | string | Account name. |
industry | string | null | One of the AccountIndustry values, or null. |
health_score | integer | null | Denormalized copy of the latest health score (0–100), or null if never computed. See Refresh Account Health. |
domain | string | null | Primary domain. |
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Maximum number of accounts to return; capped at 500 server-side regardless of what's passed.
Number of accounts to skip, for pagination.
Case-insensitive substring match against name or domain. Filter-syntax characters are neutralized first: parentheses are removed, and each comma is replaced with a space — so 'Acme, Inc' searches for 'Acme Inc' (doubled space) and matches nothing. Omit the comma.
Response
Successful Response