Create a target-bound provider setup URL.
POST
/v1/virtual-users/{identity_id}/connections/{provider}/authorize
const url = 'https://app.everruns.com/api/v1/virtual-users/example/connections/example/authorize';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"agent_id":"example","mode":"virtual_user","popup":false,"return_to":"/settings/connections","session_id":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.everruns.com/api/v1/virtual-users/example/connections/example/authorize \ --header 'Content-Type: application/json' \ --data '{ "agent_id": "example", "mode": "virtual_user", "popup": false, "return_to": "/settings/connections", "session_id": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”identity_id
required
string
provider
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Browser setup options. The canonical target is selected by the authorized resource path.
object
agent_id
Required when mode = identity: the agent whose service grant this is.
The grant is owned by the agent’s identity, not by the admin who
authorizes it (EVE-1030).
Optional legacy service agent target.
string | null
mode
Legacy setup mode; canonical resource paths capture the target.
string | null
Example
virtual_userpopup
Whether setup completes in a popup.
boolean | null
Example
falsereturn_to
Same-origin return path after setup.
string | null
Example
/settings/connectionssession_id
Optional session grant destination for legacy setup.
string | null
Responses
Section titled “Responses”Browser setup created
Media typeapplication/json
Browser URL returned to a bearer-authenticated consumer before navigation.
object
authorization_url
required
Navigate the browser to this provider authorization URL.
string
Example
{ "authorization_url": "https://provider.example/authorize?state=opaque"}Setup not authorized