Skip to content

Start a browser connection

Start a connection that the wallet owner approves in the browser. Show authorization_url to the user, then poll Get the connection result. Keep poll_secret private.

POST
/connect/requests

Request Body​

application/json

Name shown to the user on the approval page (max 120 characters).

Max Length120

Connect this existing Agent ID. Omit it to let the user pick an identity or create a new one.

Max Length128

How long the token can be used. The user can change it when approving.

Valid values"1h""24h""7d""1mo""180d""1y"

Optional display hints about where the agent runs. Unknown values become unknown.

Responses​

Connection request created.

application/json

Connection request ID (cr_…).

Secret for polling. Never show it to the user or put it in a URL.

Seconds until the request expires.

Minimum seconds between polls.

Page where the user approves the connection.

{
  "request_id": "<string>",
  "poll_secret": "<string>",
  "expires_in": "<integer>",
  "poll_interval": "<integer>",
  "authorization_url": "<string>"
}

Guide

Examples, field notes, and error handling: read the guide.

Released under the MIT License.