SnozeDevelopers
API referenceConnected Accounts

Activate or deactivate one of my accounts here

Turns the caller's own connected account on or off for this workspace. Only the owner may change their own grant, and only in a workspace they belong to. `sharedWithWorkspace` is independent of `enabled`: omitting it leaves sharing as it is, `true` additionally requires `integrations:write` and is rejected for credentials the provider did not hand over as an org-owned installation. Turning a grant off, or un-sharing it, immediately drops every cached reachability answer that resolved through it, so shared surfaces stop rendering on the next read rather than at the next cache expiry.

PUT
/v1/workspaces/{workspaceId}/connected-accounts/grant

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Path Parameters

workspaceId*string

Request Body

application/json
  1. body
connectedAccountId*string
enabled*boolean
sharedWithWorkspace?boolean|null

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X PUT 'https://api.snoze.dev/v1/workspaces/string/connected-accounts/grant' \  -H 'Content-Type: application/json' \  -d '{  "connectedAccountId": "string",  "enabled": true}'
Example Response
{  "data": {    "ok": true  }}