BrightshoalDocsOpen console
MenuAPI reference

API reference

API reference

A REST API over HTTPS with JSON bodies. Every page here is generated from the OpenAPI contract the API itself serves, so what you read is what it accepts.

Rate limits
120 requests a minute per key, 600 per organization. Rate limits
Base URL
https://api.myleadsfactory.tech/api
Authentication
Authorization: Bearer vak_... Keys
Errors
The HTTP status plus a JSON body with an error code. Errors
Lists
Calls, leads, conversations and logs page by cursor: limit, cursor, next_cursor. Pagination
OpenAPI
openapi.json for Postman, Insomnia or a client generator
Web chat from a browser
The public chat API, with a publishable key

Build

Assistants An assistant is one agent: its instructions, model, voice, tools and channels. Every call and chat runs on an assistant, and every update creates a new version. 15 endpoints.Knowledge Knowledge bases hold the pages, documents and text an assistant answers from. Sources are revised, approved and published as immutable publications, then attached to assistants. 18 endpoints.Phone numbers Search, buy or import numbers, then attach an assistant so it answers inbound calls on that number. 10 endpoints.Calls Place outbound phone calls, start browser calls, and read every call back with its transcript, costs, recordings and analysis. 8 endpoints.Publishable keys Publishable keys (pk_live_...) let a browser start web chats with one assistant from the origins you allow. They are safe to ship in page source; secret API keys are not. 8 endpoints.Public chat API The versioned API for your own chat interface, in a page or an app: start a conversation with a publishable key, then send messages with the conversation token it returns. It runs the same conversations as the chat widget. 16 endpoints.WhatsApp Connect a WhatsApp Business Account from Meta and assign its numbers to assistants. 7 endpoints.Provider credentials Bring your own provider accounts (model, voice and telephony providers). Secrets are encrypted at rest and never returned. 3 endpoints.Voices and models Discover the voices and models a provider offers, and the registry of everything an assistant can be configured with. 5 endpoints.

Results

Monitor

Organization