WhatsApp Gateway
API referenceMedia storage

Link or unlink the session attachment bucket

PUT
/api/v1/sessions/{session}/storage

Authorization

AuthorizationBearer <token>

Send Authorization: Bearer <token>. The token can be a login JWT from the frontend or an api-key for a script. JWT access comes from the person's organization role. Api-key access comes from the permissions saved on the key.

In: header

Path Parameters

session*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

bucketId*|

Storage connection id, or null to stop capturing new attachments.

Response Body

application/json

application/json

curl -X PUT "https://example.com/api/v1/sessions/string/storage" \  -H "Content-Type: application/json" \  -d '{    "bucketId": "string"  }'
{  "bucketId": "string"}
{  "error": {    "code": "not_found",    "details": {      "property1": null,      "property2": null    },    "message": "session not found"  }}