Businesses

Unlock dataset rows into your leads

Buys rows into this account's leads, charging the same credits a search result costs. Idempotent per row: anything already owned comes back in alreadyOwned and is not charged, so a double-submit or a retry cannot bill twice. Insufficient balance rejects the whole batch with 402 rather than unlocking part of it — a partial unlock leaves you unable to tell which rows you bought. Requires the business:unlock scope when called with a scoped key.

POST/v1/businesses/unlock

Buys rows into this account's leads, charging the same credits a search result costs. Idempotent per row: anything already owned comes back in alreadyOwned and is not charged, so a double-submit or a retry cannot bill twice. Insufficient balance rejects the whole batch with 402 rather than unlocking part of it — a partial unlock leaves you unable to tell which rows you bought. Requires the business:unlock scope when called with a scoped key.

AuthorizationBearer <token>

Pass Authorization: Bearer mapleads_xxx.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Rows to buy, identified the same way the listing hands them out.

businesses*array<>

Rows already owned come back in alreadyOwned and are not charged. Identifiers that resolve to the same row are charged once.

Itemsitems <= 500

Response Body

application/json

curl -X POST "https://example.com/v1/businesses/unlock" \  -H "Content-Type: application/json" \  -d '{    "businesses": [      {        "provider": "google",        "id": "string"      }    ]  }'
{  "unlocked": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "cid": "string"    }  ],  "creditsSpent": 0,  "alreadyOwned": [    {      "provider": "google",      "id": "string"    }  ]}