Issue a user integration token (Super Admin only)

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://bump.sh/nethesis/doc/nethcti-middleware/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "NethVoice - NethCTI middleware MCP server": {
    "url": "https://bump.sh/nethesis/doc/nethcti-middleware/mcp"
  }
}

Close
POST /admin/tokens/persistent/{username}/{audience}

Issue an integration token (e.g. the mobile app QR code token) for the user, without the user password. It replaces the previous token of the same audience.

When the user has no session yet (e.g. never logged in), it is created with an internal login on the NethCTI server, authorized by the super admin token that the NethCTI server reads from the module environment. It is independent from SSO. The token is issued without OTP verification, so it is refused for users with 2FA enabled.

Path parameters

  • username string Required

    Target user (case insensitive)

    Format should match the following pattern: ^[a-z0-9][a-z0-9._@-]*$.

  • audience string Required

    Integration token audience. all is accepted only by DELETE.

    Values are phone-island, mobile-app, nethlink, chat-island, or all.

Responses

  • 200 application/json

    Token issued

    Hide response attribute Show response attribute object
    • token string
  • 400

    Invalid username or audience

  • 404

    The NethCTI server refused the internal login (unknown or denied user)

  • 409

    The user has 2FA enabled

  • 503

    The super admin token is not configured and the user has no session

POST /admin/tokens/persistent/{username}/{audience}
curl \
 --request POST 'https://middleware.example.com/api/admin/tokens/persistent/{username}/{audience}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "token": "string"
}