Postman Collection
DPC provides a collection of example requests to public DPC endpoints, the sandbox environment, and global variables.
Setting up the Postman collection
- Log into the DPC Sandbox and copy the
PUBLIC_KEY_IDyou created when setting up your DPC Sandbox credentials.- This is the DPC ID of your public key, which is returned to you when the public key is uploaded to the DPC Sandbox. You need this to generate a JSON Web Token (JWT) which will be exchanged for a bearer token.
- Open the DPC collection in Postman
- Paste the
PUBLIC_KEY_IDinto the corresponding variable in Postman - Add the following values to your vault:
- client_token: Your client token is generated through the DPC Sandbox. Be sure to save a copy of your token in a safe place.
- Private Key: If you do not already have your public and private keys, generate your public/private key pair through the DPC Sandbox.
- Within your vault, go to settings and turn on Enable support in scripts.
The JWT and bearer token are automatically generated before each request vs. having to manually refresh the bearer token every 5 minutes as described in Get a bearer token.