For developers

B-LINK API

Connect your pages to a CRM, spreadsheets and automations: read leads and statistics, create pages and blocks from your own code.

What the API is for

  • Leads from the «Lead form», «Booking», «Quiz» and other blocks land straight in your CRM, Google Sheet or Telegram via n8n, Make or Zapier.
  • View and click statistics — in your own dashboards and reports.
  • Bulk creation of pages and blocks: agencies and franchises set up dozens of pages by script, not by hand.

How to get a key

The key is issued on the BUSINESS plan under «Account → API». It gives full access to your account — never publish it or put it into page code. If it leaks, regenerate it in the same place.

The API is available on the BUSINESS plan — Pricing

How to make requests

Every address starts with the base URL. The key is sent in the Authorization header as a Bearer token. Responses are JSON; the limit is 60 requests per minute (429 when exceeded). Lists are paginated with page and results_per_page; the response carries meta with the total.

Base URLhttps://b-link.cc/api
AuthorizationheaderBearer {api_key}
Content-Typeheaderapplication/json или application/x-www-form-urlencoded

Example

curl "https://b-link.cc/api/user" \
  -H "Authorization: Bearer {api_key}"

Errors

On error you get an HTTP code and JSON like {"error": {"message": "…"}}: 401 — missing/invalid key or the plan has no API; 404 — object not found or not yours; 429 — rate limit; 400 — invalid parameters (message says which).

Resources

Page blocks — Example

The block type is a catalog key (hero, link, socials, contacts, catalog, booking, faq …). The settings field takes the same keys as the block form in the editor; unknown fields are dropped, images cannot be uploaded through the API.

GET https://b-link.cc/api/biolinks-blocks?link_id={link_id}
POST https://b-link.cc/api/biolinks-blocks
curl -X POST "https://b-link.cc/api/biolinks-blocks" \
  -H "Authorization: Bearer {api_key}" \
  -H "Content-Type: application/json" \
  -d '{"link_id": {link_id}, "type": "link", "settings": {"name": "Записаться", "icon": "fa fa-calendar-check"}, "location_url": "https://t.me/yourname"}'
POST https://b-link.cc/api/biolinks-blocks/{id}
DELETE https://b-link.cc/api/biolinks-blocks/{id}

Leads — Example

curl "https://b-link.cc/api/data?link_id={link_id}&results_per_page=50" \
  -H "Authorization: Bearer {api_key}"

No-code integrations

In n8n, Make or Zapier add an «HTTP Request» step: GET, the leads address (see «Leads»), header Authorization: Bearer YOUR_KEY. Run it on a schedule every 5–10 minutes and pass new records on — to a CRM, a sheet or a messenger. Ready-made lead notifications to Telegram and email already exist under «Account → Notifications», no code needed.