--- title: "Panaya for Salesforce - Getting started with Panaya APIs" slug: "getting-started-with-panaya-apis" updated: 2024-12-16T07:59:19Z published: 2024-12-16T07:59:19Z canonical: "success.panaya.com/getting-started-with-panaya-apis" --- > ## Documentation Index > Fetch the complete documentation index at: https://success.panaya.com/llms.txt > Use this file to discover all available pages before exploring further. # Panaya for Salesforce - Getting started with Panaya APIs ## **Download an API Connection Software** We recommend using [Postman](https://www.getpostman.com/) as a tool for running the API connection. While there are many other tools available that will work for this purpose, in this guide, we will be demonstrating the use of [Postman](http://www.getpostman.com/). If you are already using Postman, be sure to upgrade to the latest version before proceeding with the next steps. --- ## **Import a collection of Panaya ForeSight API calls** [PAnaya API Postman](https://cdn.panaya.com/customer_education/SZ/Panaya%20Catalog%20of%20Foresight%20API%20examples%2020251.htm) After you have imported the collection into Panaya, you should see the "**Shared** **Panaya ForeSight API examples"** and an environment called "**ForeSight Shared Environment**" as highlighted below: ![](https://cdn.document360.io/f404076c-de23-4609-848e-2dfd4ef701b0/Images/Documentation/image-1733991923656.png) --- ## **Postman api_token and URL** Select the **Foresight** **Shared Environment**, and expand the environment variables view, by clicking on Variables: ![](https://cdn.document360.io/f404076c-de23-4609-848e-2dfd4ef701b0/Images/Documentation/image-1733992333160.png) Then click on the Environment link: ![](https://cdn.document360.io/f404076c-de23-4609-848e-2dfd4ef701b0/Images/Documentation/image-9SQ5RBLJ.png) You should now see a list of predefined environment variables, notice the ones highlighted in red, these are the ones you will be updating in the “Current value” column: ![](https://cdn.document360.io/f404076c-de23-4609-848e-2dfd4ef701b0/Images/Documentation/image-1733992454458.png) **Create and set the API Token -** To create your Panaya Api token, see the steps in [this article](/v1/docs/how-to-create-your-token). Set the **api_token** variable as shown above with the value you received. Ensure that your Panaya Username (Email address) is added in front of the token and separated by a colon. Be sure to set the "Current value" column of each variable, as only this column is used. After setting the api_token, it should look similar to this: ![](https://cdn.document360.io/f404076c-de23-4609-848e-2dfd4ef701b0/Images/Documentation/image-1734005020872.png) If you log into Panaya using emea.panaya.com, set the **URL** variable as follows: **![](https://cdn.document360.io/f404076c-de23-4609-848e-2dfd4ef701b0/Images/Documentation/image-1645792821882.png)** If you log into Panaya using my.panaya.com, use the **URL** variable as follows: ![](https://cdn.document360.io/f404076c-de23-4609-848e-2dfd4ef701b0/Images/Documentation/image-1645792943954.png) --- ## **Project ID** You can find the project ID in the browser URL when visiting a Panaya project. [Click here to learn how to locate the project ID](/v1/docs/project-id-for-apis) ### Get Projects IDs using API Expand the collection and click on "Get Projects" API call. Notice that the url and api_token values are dynamically passed. ![](https://cdn.document360.io/f404076c-de23-4609-848e-2dfd4ef701b0/Images/Documentation/image-1733992576327.png) Click on Send. You should receive a similar response, but with your projectId or several of them if you are connected to several projects. In our example below, the projectId is 9930. ![](https://cdn.document360.io/f404076c-de23-4609-848e-2dfd4ef701b0/Images/Documentation/image-1733992799880.png) Now set the **projectId** of the Panaya project you would like to work with in the Foresight Shared Environment **projectId** variable. ![](https://cdn.document360.io/f404076c-de23-4609-848e-2dfd4ef701b0/Images/Documentation/projectid.jpg) You should now be able to try and experiment with the rest of the API calls, more information can be found [here.](/v1/docs/panaya-foresight-apis) You may want to map the fields from your project to match the ones in the collection you have just imported, so please follow the steps in [this article](/v1/docs/map-the-api-fields-from-the-project) to do that. **Tip!** You can easily display the full API request headers and body in many different code formats such as Python, C#, Ruby, curl, etc. by choosing the required one from the **Code snippet** window: ![](https://cdn.document360.io/f404076c-de23-4609-848e-2dfd4ef701b0/Images/Documentation/Code%20snippet(1).jpg) ## Related - [Panaya Salesforce APIs](/panaya-foresight-apis.md) - [Generating Tokens](/how-to-create-your-token.md)