Connected apps
The apps each user connects through a sign-in link, and the apps they may choose from.
DELETE/v1/connections/{connection_id}Disconnect.
user_id names whose it is.
Request2 fields
Path
connection_idstringrequiredThe connected app's id (con_...).
- Type
string
Query
user_idstringWhose Bash: your id for the user. Absent: your company's own Bash.
- Type
string
Answers 2003 fields
object"connection"Always connection.
- Type
"connection"
idstringThe disconnected connection's id.
- Type
string
deletedtrueAlways true: Bash can no longer use the app for this user.
- Type
true
await vestra.user('traveller-42').connect.remove('con_7hs');vestra.user("traveller-42").connect.remove("con_7hs")vestra connect --remove con_7hs --user traveller-42# Get a sign-in link for one app. It is for one user: send them its url.curl "$VESTRA_BASE_URL/v1/connections" \ -H "Authorization: Bearer $VESTRA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "user_id": "traveller-42", "app": "gmail" }' # List their apps. You can also list the catalog your users may pick from.curl "$VESTRA_BASE_URL/v1/connections?user_id=traveller-42" \ -H "Authorization: Bearer $VESTRA_API_KEY" curl "$VESTRA_BASE_URL/v1/apps?search=calendar" \ -H "Authorization: Bearer $VESTRA_API_KEY" # Disconnect an app. user_id says whose connection it is.curl -X DELETE "$VESTRA_BASE_URL/v1/connections/con_7hs?user_id=traveller-42" \ -H "Authorization: Bearer $VESTRA_API_KEY"{ "method": "tools/call", "params": { "name": "connect", "arguments": { "user": "traveller-42", "app": "gmail" } }}