Skip to main content
POST
Start Agent Onboarding

Overview

No authentication is required for this endpoint, it’s how a bot gets an API key in the first place. See the Agent onboarding API for the full flow.
Requests are rate-limited globally and per IP. A 429 includes a Retry-After header in seconds.

Body Parameters

string
A name for the bot starting the flow, shown to the owner during signup so they know what’s asking. Max length 64. Allowed characters: letters, numbers, spaces, and ._/-.
object
Values to pre-fill the owner’s sign-up form. Pass what the bot already knows. Invalid values are dropped silently, never a 400. Values that survive validation are appended to verification_url_complete as a URL fragment, form-encoded the way URLSearchParams does it (@ becomes %40, + becomes %2B, a space becomes +). The fragment stays in the owner’s browser; Bland never stores or logs pre-fill values.
string
Full name, up to 128 characters. Split on its first space into first and last name when first_name and last_name are absent.
string
First name, up to 128 characters.
string
Last name, up to 128 characters.
string
Email address, up to 128 characters. Dropped unless it has the shape x@y.z.
string
Phone number, up to 128 characters, normalized to E.164 with US as the default region. Dropped when it can’t be normalized.

Response

object
Device and user codes for the flow.
string
Opaque code your bot polls with at /v1/agent/onboarding/poll. Keep this private.
string
Short code to show the owner. They enter this at verification_url if it isn’t already pre-filled.
string
The page where the owner completes signup, without the code embedded.
string
The same page with user_code pre-filled. When prefill values survive validation, they are appended as a URL fragment, for example ...?code=BQPL-7VXR#first_name=Sam&last_name=Lee&email=sam%40example.com&phone=%2B14155550123. Prefer this when you can show a clickable link.
number
Seconds until the codes expire (900, 15 minutes).
number
Minimum seconds to wait between calls to /poll.
null | array
null on success.

Docs for agents: llms.txt