Logo
Search
Docs

Partner end user connections default

POST https://app.sulus.ai/api/partner-end-user/connections/{connection}/default

Mark a connection as the default location

Authentication

Send a bearer token created on your dashboard's Developer page:

Authorization: Bearer <YOUR_API_KEY>

Path parameters

connection integer Required

Connection row id.

Validation: must be a user_ghl_connects.id owned by the caller
Stored in user_ghl_connects.id

Errors

StatusMeaningBody
401 Missing or invalid bearer token {"success":false,"message":"Unauthenticated"}
404 Connection not owned by caller {"success":false,"message":"Connection not found"}
404 Reseller row missing {"success":false,"message":"Reseller not found"}
403 Feature ghl_connect not enabled for the account {"message":"This feature is not enabled for your account. Please contact your administrator.","feature":"ghl_connect"}
500 Default update failed {"success":false,"message":"Failed to update default connection"}

Notes

  • Other connections for the same user are cleared of is_default when this one is set.
curl --request POST \
  --url https://app.sulus.ai/api/partner-end-user/connections/{connection}/default \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
import requests

url = "https://app.sulus.ai/api/partner-end-user/connections/{connection}/default"
headers = {"Authorization": "Bearer <YOUR_API_KEY>"}

response = requests.post(url, headers=headers)
print(response.json())
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	url := "https://app.sulus.ai/api/partner-end-user/connections/{connection}/default"
	req, _ := http.NewRequest("POST", url, nil)
	req.Header.Add("Authorization", "Bearer <YOUR_API_KEY>")
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
Response 200
{
    "success": true,
    "message": "Default connection updated.",
    "data": {
        "connections": [
            {
                "id": 12,
                "connected": true,
                "ghl_location_id": "loc_abc123XYZ",
                "location_name": "Downtown Office",
                "ghl_company_id": "comp_def456",
                "is_default": true,
                "token_expires_at": "2026-08-30T14:00:00.000000Z",
                "updated_at": "2026-07-30T14:05:00.000000Z"
            }
        ]
    }
}