Skip to main content
POST

Send portfolio

Writes one page of your portfolio: for each contract, the person (by CPF/CNPJ), their phones and the debt. No call is created. Available only to debt-collection workspaces in Brazil (see Debt collection portfolio).

Endpoint

Request headers

string
required
Bearer token. Format: Bearer talq_your_environment_token_here
string
required
application/json

Request body

array
required
A list of 1 to 500 contracts. Each item is an object; each object is one contract.

Contract fields

Contract field names are lowercase and case-sensitive: Installments or Due_Date are not recognized and go to the free fields. Only the document (cpf, CPF…) and the phones accept any case. Money accepts both decimal separators: 1234.56, 1234,56, 1.234,56, 1,234.56, 1234, with or without R$. 1.234 (one separator followed by exactly 3 digits) is ambiguous and refused: send 1234 or 1.234,00. Negative values are refused.

Installments

installments is optional. Each installment: When the contract has installments:
  • the contract’s due date becomes the oldest installment with a balance;
  • the overdue amount becomes the sum of the open balances;
  • if all are paid, the contract is written with overdue amount 0.00. This is not a payment record: to take the contract out of collection, use Record payment.
A contract sent without installments has no installments: installments from an earlier send are removed. To keep them, always send them. The same installment written another way (175 and 175.00, 10/07/2026 and 2026-07-10) does not count as a change.

WhatsApp opt-in

WhatsApp is only sent to people who agreed to receive it, and you, the creditor, report that consent.
  • Consent applies to every phone on the row. If only one phone has consent, send that phone on a row with whatsapp_opt_in and the others on a row without the field.
  • The latest send wins: sim after não grants again; não after sim revokes. Every change is kept in the history.
  • An empty or absent field does not change what was already recorded.
  • An empty category with sim means reminder (due-date reminders). An empty category with não revokes all categories.
  • If the person replied “parar” (stop) to a message, nothing you send later resumes messages to that number.

Examples

Portfolios over 500 contracts

Split into pages of up to 500 and send them one at a time. There is no batch to open or close: each page stands alone. Add up written from the responses and collect the rejected lists. row is the position inside the page: row 3 of page 2 is contract 503.

Response

200 OK whenever the page was processed, even with refused rows.
integer
Contracts received in the page.
integer
Contracts written. The same external_debt_id twice in a page, with the same CPF, counts twice and the last one wins.
integer
Contracts written without any usable phone. The contract links to the person who already has that CPF; if none exists, it stays without a person until a send with a phone.
array
Refused rows, in page order. Each has row (position in debts, from 1), external_debt_id (as sent, or null), reason (stable code, use it for automation) and message (human text, may change).

Why a row is refused

A refused row is not written; the rest of the page goes on. Reasons, in the order they are checked: A phone on a do-not-call list does not refuse the row: the phone is stored and each campaign applies its own list when dialing.

Error responses

Nothing from the request is written in these cases, except on 500.