marketplace_migrate_connection
Migrate an existing external authentication connection by supplying OAuth2 tokens or basic credentials, app IDs, and account identifier to set up auth for a GHL location.
Instructions
Migrate external authentication connection
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "<type>",
"appId": "<appId>",
"appVersionId": "<appVersionId>",
"accountId": "<accountId>"
},
"name": "marketplace_migrate_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Type of authentication - basic or oauth2 | |
| appId | Yes | App ID | |
| apiKey | No | API Key (supported when type is basic) | |
| scopes | No | OAuth2 scopes (optional for oauth2) | |
| expiryAt | No | Timestamp for access token expiry (optional for oauth2) | |
| expiryIn | No | Access token expiry time in milliseconds (optional for oauth2) | |
| accountId | Yes | Connection identifier | |
| isDefault | No | Whether this is the default connection for the location (optional, defaults to false) | |
| locationId | No | Location ID Defaults to GHL_LOCATION_ID when omitted. | |
| accessToken | No | Access token (required when type is oauth2) | |
| displayName | No | Display name for the connection (optional, defaults to accountId) | |
| appVersionId | Yes | App Version ID | |
| refreshToken | No | Refresh token (required when type is oauth2) | |
| basicCredentials | No | Basic auth credentials as key/value pairs (supported when type is basic). Keys are validated against the app version externalAuthConfig.fields. |