TenkaTenka
Sign in

Tenka Help Center › Developer area › SDK

SDK

Ready-made JavaScript and Python client, generated from the contract.

The SDK is generated from the same contract as this reference, on every version: one file, no dependencies, one method per operation. Download it again when the API history announces a change.

tenka.js tenka.py openapi.json

How to use

Node (SDK)
import { Tenka } from "./tenka.js";

const tenka = new Tenka(process.env.TENKA_API_KEY, "https://tenka.app.br/api/v1");
const me = await tenka.getMe();
const page = await tenka.getClientes({ limit: 50 });

The methods

SDK methodOperationDescription
getMeGET /api/v1/meKey's account
getClientesGET /api/v1/clientesList /clientes
postClientesPOST /api/v1/clientesCreate /clientes
postLeadsPOST /api/v1/leadsCreate /leads
getLeadsGET /api/v1/leadsList /leads
getProjetosGET /api/v1/projetosList /projetos
getFornecedoresGET /api/v1/fornecedoresList /fornecedores
getProdutosGET /api/v1/produtosList /produtos
getCentrosResultadoGET /api/v1/centros-resultadoList /centros-resultado
getNaturezasGET /api/v1/naturezasList /naturezas
getContasBancariasGET /api/v1/contas-bancariasList /contas-bancarias
getFuncionariosGET /api/v1/funcionariosList /funcionarios
getOrdensServicoGET /api/v1/ordens-servicoList /ordens-servico
getRolosGET /api/v1/rolosList /rolos
getLotesGET /api/v1/lotesList /lotes
getRemessasGET /api/v1/remessasList /remessas
getOrdensProducaoGET /api/v1/ordens-producaoList /ordens-producao
getFichasTecnicasGET /api/v1/fichas-tecnicasList /fichas-tecnicas
getTaloesGET /api/v1/taloesList /taloes
getAchadosGET /api/v1/achadosList /achados
getContratosGET /api/v1/contratosList /contratos
getMovimentacoesGET /api/v1/movimentacoesList /movimentacoes
getTicketsGET /api/v1/ticketsList /tickets
postRemessasPOST /api/v1/remessasCreate /remessas
postApontamentosPOST /api/v1/apontamentosCreate /apontamentos
getClientesIdAlteracoesGET /api/v1/clientes/{id}/alteracoesChange log of a /clientes record
getTicketsIdAlteracoesGET /api/v1/tickets/{id}/alteracoesChange log of a /tickets record
getMovimentacoesIdAlteracoesGET /api/v1/movimentacoes/{id}/alteracoesChange log of a /movimentacoes record
getContratosIdAlteracoesGET /api/v1/contratos/{id}/alteracoesChange log of a /contratos record
getProjetosIdAlteracoesGET /api/v1/projetos/{id}/alteracoesChange log of a /projetos record
getLeadsIdAlteracoesGET /api/v1/leads/{id}/alteracoesChange log of a /leads record
getFornecedoresIdAlteracoesGET /api/v1/fornecedores/{id}/alteracoesChange log of a /fornecedores record
getProdutosIdAlteracoesGET /api/v1/produtos/{id}/alteracoesChange log of a /produtos record
getFuncionariosIdAlteracoesGET /api/v1/funcionarios/{id}/alteracoesChange log of a /funcionarios record
getOrdensServicoIdAlteracoesGET /api/v1/ordens-servico/{id}/alteracoesChange log of a /ordens-servico record
postClientesLotePOST /api/v1/clientes/loteBatch create /clientes (up to 200)
postLeadsLotePOST /api/v1/leads/loteBatch create /leads (up to 200)
postTicketsLotePOST /api/v1/tickets/loteBatch create /tickets (up to 200)
getAnaliticoGET /api/v1/analiticoBI dataset catalog
getAnaliticoDatasetGET /api/v1/analitico/{dataset}Run a BI dataset (JSON or CSV)