Skip to Content
MCPs

Complete agent app install

Finish an install: the frontend posts back the query params the vendor redirect carried. Only the admin who began the install can complete it.

POST
/mcps/{mcp_id}/agent-connections/complete

Finish an install: the frontend posts back the query params the vendor redirect carried. Only the admin who began the install can complete it.

Authorization

ApiKeyAuth
headerAuthorizationBearer <token>

Bearer token authentication. Send an API key (a saai_api_-prefixed token) as Authorization: Bearer <token>.

Required permission

manage_mcps

Path Parameters

mcp_id*string
Formatuuid

Request Body

application/json
  1. body
state*string

The state the vendor redirect carried.

Lengthlength <= 512
params*

The vendor's query params (code, installation_id, setup_action, error).

ticket?string

The ticket a sign-in returned with: alone it lists the installations, with installation_id in params it binds one.

Lengthlength <= 8192

Response Body

The request has succeeded.

application/json
  1. response

The admin signed in to the vendor without installing: bind one of these or install anew.

installations*array<>

Installations the admin administers; empty means install first.

install_url*string

Vendor install page for another account.

ticket*string

Opaque proof of which installations the admin may bind; send it back with the choice.

Example Request
curl -X POST 'https://your-org.aisecurity.services.us.connect.secureauth.com/api/v1/mcps/497f6eca-6276-4993-bfeb-53cbbbba6f08/agent-connections/complete' \  -H 'Content-Type: application/json' \  -d '{  "state": "string",  "params": {    "property1": "string",    "property2": "string"  }}'
Example Response
{  "installations": [    {      "installation_id": "string",      "account": "string",      "personal": true    }  ],  "install_url": "string",  "ticket": "string"}