Using Postman to Connect to the Stripe API
What's Postman?
Postman is a collaborative platform for API development. Developers can use Postman to develop, manage, test, and document APIs. Its user-friendly interface makes it simple to collaborate on APIs, making it an ideal platform for cross-functional teams.
Setting up Postman
- Download and install the Postman app.
- Open the Postman application and complete the setup process.
- Enter “Stripe” in the search bar at the top of the page and select Stripe Developers APIs.
- In the Collection tab, find the most recent collection and click the Fork button to add it to your collection.
Generating your secret keys
Stripe servers authenticate and authorize API requests using bearer token authorization. To set this up, you will need to create a Stripe account.
- Go to https://dashboard.stripe.com/ and follow the instructions there to create your account.
- The secret key is on the homepage of the dashboard. Click it to copy it to your clipboard.
note
Don't share your secret key with other users for security purposes.
- Return to the Postman app.
- Click Environments > Add (+).
- Enter a name for the environment in the Name field (e.g., Stripe API).

-
In the Variable cell, enter
secret_key. -
In the Current Value cell, paste the secret key copied from the Stripe Dashboard.
-
Click on Save.
-
To set the environment to the Stripe API environment, click the Environment dropdown menu in the top right corner of the workspace.
Stripe servers will now authenticate and authorize your API requests.
Connection prerequisites
To connect to the Stripe API, you need the base URL: https://api.stripe.com