Postman is a tool for making your API development faster and easier. This tutorial demonstrates how to create a Postman collection, which you can then use to easily create Custom connectors in PowerApps.

Prerequisites

Create a Postman Collection

Let's build a Postman Collection for the Azure Cognitive Services Text Analytics API. This API identifies the language, sentiment, and key phrases in text that you pass to it.

  1. The first step in creating a Postman Collection is to create a request. When creating the request, you can set the HTTP verb, the request URL, query or path parameters, headers, and the body. For more information, see Sending Requests in the Postman documentation. For the Detect Language API endpoint, set the values as follows:

    Postman request

    Details of parameters and values used:

    Parameter Value
    Verb POST
    Request URL https://westus.api.cognitive.microsoft.com/text/analytics/v2.0/languages
    Params numberOfLanguagesToDetect
    Authorization “No Auth”
    Headers Ocp-Apim-Subscription-Key =
    Content-Type = application/json
    Body {
       "documents": [
         {
            "id": "1",
            "text": "Hello World"
         }
      ]
    }
  2. Click Send to make the request and get the response back.

  3. Click Save to save the request into a Postman Collection.

    Postman response

  4. Provide a Request name and Request description in the Save Request dialog box. You will use these values in your custom connector.

    Postman Save Collection

    You can also save the response to the request. Custom connectors currently only support a single response per request. If you save multiple responses per request, only the first one is used.

    Postman Save Response

  5. Continue building your Postman Collection by creating and saving other requests and responses.

  6. Once you have completed building the Postman Collection for all your requests and responses, export the collection.

    Postman Export

  7. Choose Collection v1 as the export format.

    Postman Export

You can now use this Postman collection to create a custom connector in PowerApps. For more information, see Register and use custom connectors in PowerApps.