Bulk upgrade leads to customers

POST https://api.tamio.com/v2/leads/bulk/upgrade

Upgrades multiple leads to customer status in a single operation. This converts leads to customers in the system, typically used when leads complete a purchase or sign a contract. Maximum 50 leads per operation.

Body Parameters

leads array of string*

Array of lead UUIDs to upgrade

Responses

200 Leads upgraded successfully

Leads upgraded successfully

status integer
ids array of string

UUIDs of the upgraded leads

400 Bad request. Possible `error_code` values:
401 Missing or invalid API key
/leads/bulk/upgrade
1const response = await fetch("https://api.tamio.com/v2/leads/bulk/upgrade", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200,
  "ids": []
}