SnozeDevelopers
API referenceIntegrations

Create an integration connection

Registers a provider connection from credentials the caller already holds, sealing any supplied secret before storage and returning only connection metadata. Requires the `integrations:write` workspace permission. Prefer the install flow for providers that support OAuth. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.

POST
/v1/workspaces/{workspaceId}/integrations/connections

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
provider*string
key?string|null
label*string
authKind?|null
secret?|null
manifest?|null

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X POST 'https://api.snoze.dev/v1/workspaces/string/integrations/connections' \  -H 'Content-Type: application/json' \  -d '{  "provider": "string",  "label": "string"}'
Example Response
{  "data": {    "id": "string",    "workspaceId": "string",    "provider": "string",    "key": "string",    "label": "string",    "enabled": true,    "authKind": "api_key",    "hasSecret": true,    "externalAccountId": "string",    "health": "unknown",    "consecutiveFailures": 0,    "lastSuccessfulSyncAt": "string",    "lastFailureAt": "string",    "lastError": "string",    "nextSyncAt": "string",    "manifest": {},    "createdByUserId": "string",    "createdAt": "string",    "updatedAt": "string"  }}