Skip to main content

Explore APIs with Postman

Postman is a widely used API testing tool. It supports advanced test scripts and automation features. This guide shows you how to quickly test the Nexconn Platform Chat API by using the preconfigured Collection and environment files.

Before you begin

  • Install Postman. Postman v10 or later is recommended.
  • Create an app in the Nexconn Developer Console.
  • Get valid App-Key and App-Secret credentials for your app.
  • Download the Postman Collection and environment package, then extract the following files:
    • postman_collection.json: the API request Collection file
    • postman_environment.json: the environment configuration file
Version compatibility

We recommend using Postman v10 or later to ensure all features work as expected. Some scripting features may not be supported in older versions.

Step 1: Import the Collection

  1. Open Postman.

  2. In the upper-left corner, click Import.

  3. Select the postman_collection.json file that you downloaded.

  4. After the import is complete, you will see:

    • A Nexconn Collection in the left navigation pane
    • Multiple API categories inside the Collection, such as user management, group management, and message sending
    • Individual API requests inside each category

Step 2: Configure environment variables

  1. Import or create an environment.

    1. Open Postman.

    2. In the left navigation pane, click Environments > Import.

    3. Select the postman_environment.json file that you downloaded.

    4. After the import is complete, a Nexconn environment appears in the left navigation pane.

  2. Activate the environment.

    In the upper-right corner, click the environment selector, which defaults to No Environment, and then select Nexconn from the drop-down list.

    Confirm the active environment

    After activation, Nexconn appears in the upper-right corner. This indicates that the environment is currently active.

  3. Configure your credentials.

    In the left navigation pane, select Environments and open the Nexconn environment. Then set the following variables:

    VariableValue
    App-KeyYour App Key from the Nexconn Console
    App-SecretYour App Secret from the Nexconn Console
    Hosthttps://[data center domain] for your app. See Base URL.
    info
    • Nonce, Timestamp, and Signature are generated automatically. You do not need to edit them.
    • After updating variables, save the changes. Use Ctrl+S on Windows or Command+S on macOS. Otherwise, the changes will not be saved.

Step 3: Send a request

The following example uses the Get User Info API to demonstrate the full debugging workflow.

  1. In the left navigation pane, open Collection > IM Server > User Management > POST Get User Info.

  2. Configure the request parameters:

    • In the Params tab, update the URL parameters if needed.
    • In the Body tab, set the request body.
    JSON
    {
    "userId": "user_001"
    }
  3. Click Send to send the request.

    Postman includes built-in automatic signing for the Nexconn API. Each time you send a request, Postman automatically generates the signature and adds it to the request headers. For details about the signing logic, see API request signature.

  4. After the request succeeds, you will see a response similar to the following:

    • HTTP status: The status bar at the top shows the HTTP status code. 200 OK means the request succeeded. 4xx and 5xx indicate an error.
    • Response body: The API returns the actual data in JSON format.
    JSON
    {
    "code": 0,
    "data": {
    "userId": "user_001",
    "nickname": "Zhang San",
    "portraitUri": "https://example.com/avatar.jpg"
    }
    }
  5. You can also open the Console panel at the bottom to view debugging details such as:

    • The original signature source string used for signature verification
    • The actual headers sent with the request
    • Request timing details for performance analysis