Listar clientes
curl --request GET \
--url https://api.olie.ai/api/management/customers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.olie.ai/api/management/customers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.olie.ai/api/management/customers', 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.olie.ai/api/management/customers",
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.olie.ai/api/management/customers"
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.olie.ai/api/management/customers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.olie.ai/api/management/customers")
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{
"response": true,
"customers": [
{
"id": "9d4e5f6a-7b8c-9d0e-1f2a-3b4c5d6e7f8a",
"name": "Cliente Exemplo LTDA",
"headquarter": "Cliente Exemplo LTDA",
"branch": null,
"company_name": "Cliente Exemplo Comércio LTDA",
"document_type": 2,
"customer_type": 1,
"document": "12.345.678/0001-90",
"main_activity": "Comércio de produtos alimentícios",
"email": "[email protected]",
"phone": "(91) 99999-0000",
"address": "Rua Exemplo, 123 - Centro - São Paulo/SP",
"description": "Cliente do segmento de alimentação",
"custom_fields": null,
"status": true,
"form_answers": [],
"parent_id": null,
"frame_id": "8c3d4e5f-6a7b-8c9d-0e1f-2a3b4c5d6e7f",
"created_at": "2026-01-15T10:30:00.000000Z",
"updated_at": "2026-01-15T10:30:00.000000Z",
"deleted_at": null,
"created_by": 123,
"contacts_count": 2,
"projects_count": 5
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 10,
"per_page": 15,
"to": 15,
"total": 150
}
}customers
Listar clientes
Listar todos os clientes.
GET
/
api
/
management
/
customers
Listar clientes
curl --request GET \
--url https://api.olie.ai/api/management/customers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.olie.ai/api/management/customers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.olie.ai/api/management/customers', 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.olie.ai/api/management/customers",
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.olie.ai/api/management/customers"
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.olie.ai/api/management/customers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.olie.ai/api/management/customers")
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{
"response": true,
"customers": [
{
"id": "9d4e5f6a-7b8c-9d0e-1f2a-3b4c5d6e7f8a",
"name": "Cliente Exemplo LTDA",
"headquarter": "Cliente Exemplo LTDA",
"branch": null,
"company_name": "Cliente Exemplo Comércio LTDA",
"document_type": 2,
"customer_type": 1,
"document": "12.345.678/0001-90",
"main_activity": "Comércio de produtos alimentícios",
"email": "[email protected]",
"phone": "(91) 99999-0000",
"address": "Rua Exemplo, 123 - Centro - São Paulo/SP",
"description": "Cliente do segmento de alimentação",
"custom_fields": null,
"status": true,
"form_answers": [],
"parent_id": null,
"frame_id": "8c3d4e5f-6a7b-8c9d-0e1f-2a3b4c5d6e7f",
"created_at": "2026-01-15T10:30:00.000000Z",
"updated_at": "2026-01-15T10:30:00.000000Z",
"deleted_at": null,
"created_by": 123,
"contacts_count": 2,
"projects_count": 5
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 10,
"per_page": 15,
"to": 15,
"total": 150
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Was this page helpful?
⌘I