Skip to content
Whats91

Hand the conversation back to Whats91 internal automation.

Release Session

Summary

Hand the conversation back to Whats91 internal automation.

Prerequisites

  • Authorization: Bearer w91_live_xxx
  • Content-Type: application/json for JSON requests
POST/api/v2/custom-boards/sessions/{sessionUid}/release

Release an active session lease.

ParameterTypeRequiredDescription
sessionUidstringRequiredSession UID returned by acquire.
ownerTokenstringRequiredOwner token returned by acquire.
senderIdstringOptionalWhatsApp registered sender phone number.
reasonstringOptionalFree-text release reason stored for audit.
cURL
curl -X POST "https://graph.whats91.com/api/v2/custom-boards/sessions/cbs_abc123/release" \
  -H "Authorization: Bearer w91_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "senderId": "913614068784",
    "ownerToken": "one-time-release-token",
    "reason": "board_flow_completed"
  }'
200 OK
{
  "success": true,
  "message": "Custom board session released",
  "data": {
    "session": {
      "sessionUid": "cbs_abc123",
      "status": "RELEASED",
      "releasedAt": "2026-06-28T12:45:00.000Z"
    }
  },
  "metadata": {
    "apiVersion": "v2",
    "requestId": "request-uuid"
  }
}

Release deletes the lease and lets Whats91 internal automation respond again from the next inbound message.

SDK Examples

Use these examples as starting points for server-side implementations.

cURL
curl -X POST "https://graph.whats91.com/api/v2/custom-boards/sessions/{sessionUid}/release" \
  -H "Authorization: Bearer w91_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{
  "senderId": "913614068784",
  "ownerToken": "one-time-release-token",
  "reason": "board_flow_completed"
}'
Node.js
const response = await fetch("https://graph.whats91.com/api/v2/custom-boards/sessions/{sessionUid}/release", {
  method: "POST",
  headers: {
    "Authorization": "Bearer w91_live_xxx",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "senderId": "913614068784",
    "ownerToken": "one-time-release-token",
    "reason": "board_flow_completed"
  })
});

const data = await response.json();
console.log(data);
PHP
$ch = curl_init("https://graph.whats91.com/api/v2/custom-boards/sessions/{sessionUid}/release");
curl_setopt_array($ch, [
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer w91_live_xxx",
    "Content-Type: application/json"
  ],
  CURLOPT_POSTFIELDS => json_encode([
    "senderId" => "913614068784",
    "ownerToken" => "one-time-release-token",
    "reason" => "board_flow_completed"
  ])
]);

$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests

response = requests.request(
    "POST",
    "https://graph.whats91.com/api/v2/custom-boards/sessions/{sessionUid}/release",
    headers={
        "Authorization": "Bearer w91_live_xxx",
        "Content-Type": "application/json",
    },
    json={
        "senderId": "913614068784",
        "ownerToken": "one-time-release-token",
        "reason": "board_flow_completed"
    }
)

print(response.json())
C#
using System.Text;

using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer w91_live_xxx");

var request = new HttpRequestMessage(HttpMethod.Post, "https://graph.whats91.com/api/v2/custom-boards/sessions/{sessionUid}/release");
request.Content = new StringContent(
  """
  {
    "senderId": "913614068784",
    "ownerToken": "one-time-release-token",
    "reason": "board_flow_completed"
  }
  """,
  Encoding.UTF8,
  "application/json"
);

var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());

Related APIs