Knock

Generate a Knock user token for the current user

post
Query parameters
workspace_idstring · uuidOptional

The id of the workspace

drive_idany ofOptional

The id of the drive. If provided, generates a token scoped to workspace + this drive only. If omitted, generates a token for workspace + all drives (legacy, avoid with 50+ drives).

string · uuidOptional
or
nullOptional
Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

Successful Response

application/json
post
/knock/token

Fetch Knock notification preferences for a drive

get
Path parameters
drive_idstring · uuidRequired
Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

Successful Response

application/json
get
/knock/drives/{drive_id}/preferences

Update Knock notification preferences for a drive

put
Path parameters
drive_idstring · uuidRequired
Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

Successful Response

application/json
put
/knock/drives/{drive_id}/preferences

Last updated