Skip to main content
POST
Ask a restaurant to connect its account

Authorizations

Authorization
string
header
required

Your API key, sent as Authorization: Bearer <key>. Live and test keys are separate; the key you send decides which world the call acts in. To try calls, use a test key (it starts with lst_test_): no real courier is sent and no real money moves, but webhooks fire and the dropoff.phone you give can receive WhatsApp messages, so use your own number. A live key (it starts with lst_live_) books and charges real deliveries.

Body

application/json

The restaurant owner to ask, and where to send them back.

owner_email
string
required

The email of the person who signs in to the restaurant's Listo account.

redirect_uri
string
required

Where the owner's browser returns after approving.

state
string

An opaque value returned to redirect_uri unchanged, up to 255 characters.

Maximum string length: 255

Response

Created.

A connection request waiting for the restaurant owner to approve it.

url
string<uri>
required

The consent page to send the owner to.

expires_at
string<date-time>
required

When the link stops working.