API Reference
Connect
Connect API

Connect API

Connect a website chat widget and inbox to Pcampus.

Base URL: https://connect-api.pcampus.co
Widget: https://connect.pcampus.app/widget.js

⚠️

Connect is not a sellable SKU yet — this page is a connect example only.

How to connect the API

Authorization: Bearer pip_YOUR_API_KEY
x-tenant-id: your-tenant-id

Example — list conversations

curl "https://connect-api.pcampus.co/v1/conversations?limit=20" \
  -H "Authorization: Bearer pip_YOUR_API_KEY" \
  -H "x-tenant-id: your-tenant-id"

Sample response

{
  "data": [
    {
      "conversationId": "conv_001",
      "channel": "web",
      "customerName": "Alex Rivera",
      "lastMessage": "I need help with an order",
      "status": "open"
    }
  ]
}

Example — add the widget

<script src="https://connect.pcampus.app/widget.js"></script>
<script>
  PcampusConnect.init({
    tenantId: "your-tenant-id",
  })
</script>

Get the key and tenant from Console, same as other APIs.

Connect overview →