Consultar o funil de vendas
GET
/api/seller/external/v1/sales-funnel
curl --request GET \ --get "https://api.spelt.com.br/api/seller/external/v1/sales-funnel?board_id=architecto&period=architecto&assignee=architecto" \ --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/sales-funnel");
const params = { "board_id": "architecto", "period": "architecto", "assignee": "architecto",};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/sales-funnel';$response = $client->get( $url, [ 'headers' => [ 'Authorization' => 'Bearer splt_live_SUA_CHAVE', 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'query' => [ 'board_id' => 'architecto', 'period' => 'architecto', 'assignee' => 'architecto', ], ]);$body = $response->getBody();print_r(json_decode((string) $body));import requestsimport json
url = 'https://api.spelt.com.br/api/seller/external/v1/sales-funnel'params = { 'board_id': 'architecto', 'period': 'architecto', 'assignee': 'architecto',}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()Funil de um pipeline de vendas.
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Query Parameters
Seção intitulada “Query Parameters”board_id
Quadro de vendas. Omitido = o primeiro pipeline ativo que a sessão vê, por nome.
string
Quadro de vendas. Omitido = o primeiro pipeline ativo que a sessão vê, por nome.
period
Last_7d | last_30d | last_90d | this_month | all_time. Padrão: last_30d.
string
Last_7d | last_30d | last_90d | this_month | all_time. Padrão: last_30d.
assignee
Id do responsável (pessoa ou agente), me ou none. Omitido = todos.
string
Id do responsável (pessoa ou agente), me ou none. Omitido = todos.
Responses
Seção intitulada “Responses”Media typeapplication/json
One of:
object
data
object
boards
Array<object>
object
id
string
name
string
board
object
id
string
name
string
period
object
key
string
from
string
to
string
label
string
kpis
object
entered
object
count
integer
value_cents
integer
won
object
count
integer
value_cents
integer
avg_days_to_win
number
lost
object
count
integer
value_cents
integer
win_rate
integer
open
object
count
integer
value_cents
integer
forecast_this_month
object
count
integer
value_cents
integer
stages
Array<object>
object
key
string
label
string
type
string
count
integer
value_cents
integer
pct_of_started
integer
pct_of_prev
string | null
lost_reasons
Array<object>
object
reason
string
count
integer
value_cents
integer
by_assignee
Array<object>
object
user
object
id
string
name
string
entered
integer
won
object
count
integer
value_cents
integer
lost
integer
open
object
count
integer
value_cents
integer
object
data
object
boards
array
board
string | null
Example
{ "data": { "boards": [ { "id": "01JA…", "name": "Vendas" } ], "board": { "id": "01JA…", "name": "Vendas" }, "period": { "key": "last_30d", "from": "2026-10-26", "to": "2026-11-25", "label": "Últimos 30 dias" }, "kpis": { "entered": { "count": 12, "value_cents": 3600000 }, "won": { "count": 3, "value_cents": 900000, "avg_days_to_win": 8.5 }, "lost": { "count": 2, "value_cents": 400000 }, "win_rate": 60, "open": { "count": 9, "value_cents": 2700000 }, "forecast_this_month": { "count": 2, "value_cents": 600000 } }, "stages": [ { "key": "01JA…", "label": "Novo", "type": "open", "count": 12, "value_cents": 3600000, "pct_of_started": 100, "pct_of_prev": null } ], "lost_reasons": [ { "reason": "Preço", "count": 1, "value_cents": 200000 } ], "by_assignee": [ { "user": { "id": "01JA…", "name": "Ana" }, "entered": 7, "won": { "count": 2, "value_cents": 600000 }, "lost": 1, "open": { "count": 4, "value_cents": 1200000 } } ] }}Media typeapplication/json
object
error
string
Example
{ "error": "Recurso não encontrado"}