Skip to main content

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Postman Collection

DPC provides a collection of example requests to public DPC endpoints, the sandbox environment, and global variables.

Download Postman Collection

Setting up the Postman collection

  1. Log into the DPC Sandbox and copy the PUBLIC_KEY_ID you 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.
  2. Open the DPC collection in Postman
  3. Paste the PUBLIC_KEY_ID into the corresponding variable in Postman
  4. 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.
  5. 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.

Looking for U.S. government information and services?
Visit USA.gov