Skip to main content
POST
/
api
/
captain
/
connector
/
test
Test connector connection
curl --request POST \
  --url http://localhost:63372/api/captain/connector/test \
  --header 'Content-Type: application/json' \
  --cookie captain_session= \
  --data '
{
  "connector_type": "meepachat",
  "url": "wss://chat.example.com/api/bot-gateway",
  "bot_token": "bot.secret"
}
'
{
  "ok": true,
  "message": "Server reachable, bot token valid",
  "latency_ms": 45
}

Authorizations

captain_session
string
cookie
required

HMAC-signed session cookie returned by /api/captain/auth/login. Valid for 7 days. Invalidated when password changes.

Body

application/json
connector_type
string
required
Example:

"meepachat"

url
string
Example:

"wss://chat.example.com/api/bot-gateway"

bot_token
string
Example:

"bot.secret"

Response

Connector test result

ok
boolean
required
message
string
required
Example:

"Server reachable, bot token valid"

latency_ms
integer
Example:

45