This page explains how to use Postman to perform API calls to Clarifai by showing the actions available within the Clarifai API. You can use Postman to make a wide variety of
An active Clarifai account.
Access to your Clarifai API key and user login credentials.
Basic knowledge of API structure and JSON formatting.
This collection works in Postman for Web or in your Postman application. It may take several seconds to load.
After the Postman collection is imported, a full list of available Clarifai API calls is structured by folder in the left pane of Postman.
Follow these steps to set up your environment:
Click the Manage Environments gear icon in the upper right corner of Postman.
Select Clarifai Authentication
Add in your Clarifai API key as the initial value and current value for the
api_key variable, and add your Clarifai Application key as the initial value and current value for the
After setup is complete, you are ready to begin making API calls. In the Postman -> Clarifai folder, there are subfolders for each type of API category listed in the Clarifai API Reference. Expand the subfolders to see the HTTP methods and API call names.
When you click on an API call in the collection, it loads in the
Builder pane on the right. On this pane you can send the API call and see the returned status, response time, and API response code.
When you click on the Endpoint name a description of the endpoint and all required/optional parameters is displayed to help you build your requests:
The Params tab shows all parameters and values that are currently on the API call. Here, you are able to add parameters and values. View the available arguments in the corresponding section of the Clarifai API documentation.
This tab is an alternative to viewing the
param1:value1¶m2:value2 structure of the API call.
The ampersand (&) and colon (:) are not needed in the params table. Postman inserts these for you.
All placeholders follow the format:
<PLACEHOLDER> . They should be replaced before running a query.