Truv’s Postman collection lets you get started with Truv using little to no code.
Overview
The Truv Postman Collection offers a solution for getting started with your integration with little to no code needed. View the sections below for more on setting up and using Truv with Postman.
Setting up Postman
The section below covers each step for first configuring your Truv Postman Collection.
Steps
- Install Postman.
- Fork the Truv API collection.
- Once both the collection and the environment variables are imported into Postman, see the configuration section below on how to correctly configure API keys with the collection.
Configuring Postman
The Truv Postman collection uses Postman environment variables to simplify each API request.
Steps
- Select the Sandbox environment in the top right corner
- Click the eye icon to open the environment settings
- Copy in your Truv API keys from your Truv Dashboard into each field:
client_id
access_key
- Save your changes and start making Truv API requests!
Making requests
Use the steps below to start making requests to the Truv API in Postman. The example below uses the Create a User endpoint.
Steps
- In Postman, select Create a User in the users folder in the Truv API collection.
- Navigate to the Body tab.
- Select the raw radio button option below.
- Ensure the type is set to JSON.
- Provide Body Params for the following:
{
"external_user_id": "12345",
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"phone": "+14155554193",
"ssn": "222233333"
}
external_user_id
is required.- Select Save in the upper right hand corner.
- Hit Send to complete the request.