Listar leads
GET
/api/seller/external/v1/lead
curl --request GET \ --get "https://api.spelt.com.br/api/seller/external/v1/lead?status=architecto&source=architecto&owner_id=architecto&search=architecto&per_page=16" \ --header "Authorization: Bearer splt_live_SUA_CHAVE" \ --header "Content-Type: application/json" \ --header "Accept: application/json"const url = new URL( "https://api.spelt.com.br/api/seller/external/v1/lead");
const params = { "status": "architecto", "source": "architecto", "owner_id": "architecto", "search": "architecto", "per_page": "16",};Object.keys(params) .forEach(key => url.searchParams.append(key, params[key]));
const headers = { "Authorization": "Bearer splt_live_SUA_CHAVE", "Content-Type": "application/json", "Accept": "application/json",};
fetch(url, { method: "GET", headers,}).then(response => response.json());$client = new \GuzzleHttp\Client();$url = 'https://api.spelt.com.br/api/seller/external/v1/lead';$response = $client->get( $url, [ 'headers' => [ 'Authorization' => 'Bearer splt_live_SUA_CHAVE', 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'query' => [ 'status' => 'architecto', 'source' => 'architecto', 'owner_id' => 'architecto', 'search' => 'architecto', 'per_page' => '16', ], ]);$body = $response->getBody();print_r(json_decode((string) $body));import requestsimport json
url = 'https://api.spelt.com.br/api/seller/external/v1/lead'params = { 'status': 'architecto', 'source': 'architecto', 'owner_id': 'architecto', 'search': 'architecto', 'per_page': '16',}headers = { 'Authorization': 'Bearer splt_live_SUA_CHAVE', 'Content-Type': 'application/json', 'Accept': 'application/json'}
response = requests.request('GET', url, headers=headers, params=params)response.json()Do mais recente para o mais antigo.
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Query Parameters
Seção intitulada “Query Parameters”status
open, converted ou lost.
string
open, converted ou lost.
source
Porta de entrada: manual, checkout, chat, signup, affiliate ou import.
string
Porta de entrada: manual, checkout, chat, signup, affiliate ou import.
owner_id
ULID do usuário responsável.
string
ULID do usuário responsável.
search
Nome, nome fantasia, e-mail ou documento.
string
Nome, nome fantasia, e-mail ou documento.
per_page
Itens por página (máx: 100, padrão: 20).
integer
Itens por página (máx: 100, padrão: 20).
Responses
Seção intitulada “Responses”Media typeapplication/json
object
data
object
current_page
integer
data
Array<object>
object
object
string
id
string
kind
string
name
string
trade_name
string
email
string
phone
string
document_type
string
document_number
string
website
string | null
notes
string | null
status
string
source
string
origin
object
campaign
string
lost_reason
string | null
owner_id
string
owner_name
string
customer_id
string | null
created_at
string
updated_at
string
per_page
integer
total
integer
Example
{ "data": { "current_page": 1, "data": [ { "object": "lead", "id": "01JA0000000000000000000020", "kind": "company", "name": "Clínica Sorriso Ltda", "trade_name": "Clínica Sorriso", "phone": "+5511999990000", "document_type": "cnpj", "document_number": "11222333000181", "website": null, "notes": null, "status": "open", "source": "import", "origin": { "campaign": "feira-2026" }, "lost_reason": null, "owner_id": "01JA0000000000000000000030", "owner_name": "Ana Souza", "customer_id": null, "created_at": "2026-11-25T10:00:00-03:00", "updated_at": "2026-11-25T10:00:00-03:00" } ], "per_page": 20, "total": 1 }}