# The Art of Seamless API Integration source: https://developer.mastercard.com/blog/the-art-of-seamless-api-integration/index.md Authors: Tom Crofts, Karen Avetisyan. What does Mastercard deliver? At Mastercard Developers, we aim to provide the complete API developer experience. As host to more than a hundred APIs, we deliver a secure key distribution network to safeguard authentication, encryption, privacy, and data integrity for our developers. Understand our seamless testing experience One of the ways we maximize the developer experience is by ensuring a seamless testing experience. Secure API testing often demands significant developer time, patience, and accuracy. After creating a project and obtaining credentials, developers still need to take several steps to ensure successful API calls. This can include configuring environments, setting up the correct request bodies, authorization headers, parameters, and query strings, or enabling authentication and encryption---all of which are supported by Mastercard. Navigating this process can be tricky, but at Mastercard Developers, we make sure that API testing doesn't become an exercise in futility. Instead, we do the heavy lifting for you through concise documentation and integrated tooling. What is Mastercard's solution? We believe developers should have quick access to a sandbox that's pre-configured, sequenced, and organized by resource folders. Work with our APIs without hurdles To facilitate this, we designed Gold Standard template documentation which provides high-level information about the API and focuses on creating a 'Quick Start' experience for developers who want immediate access to the API, and an 'Integration and Testing' section for information about making calls to sandbox or production environments. Postman and Insomnia Integration We've integrated our sandbox testing with popular API collaboration tools, such as Postman and Insomnia. Postman is an API platform which has API client functionality but also allows users to work with Mastercard APIs in developers' own environments as they build. Postman Collections are files created from an OpenAPI specification as "portable sets of API requests that you can reuse, automate, and share with others." \[1\] Insomnia is an alternative API platform we use which has native encryption and collections support, environment isolation, and plugin architecture. From our Integration and Testing page we allow developers to quickly reach our Postman Collections page, or to start using our Insomnia Plugin. From the Postman workspace page, users can fork an API collection at the click of a button and begin making calls to their sandbox environment without having to write code. How does testing with Mastercard work? Get to know our API collection workspaces At Mastercard, we support service teams by maintaining and managing their API collection workspaces. This includes updating YAML files, managing keys, handling special use cases, maintaining encryption libraries and helping to secure sensitive data. Currently, our API Consultancy and Standards team maintains automated Postman Collection pipelines for 40 of our APIs that convert each API's OpenAPI (YAML) specification file into a Postman Collection which is hosted on the 'Mastercard Developers Collections Workspace'. Postman Collections improve API interoperability, support serialization and parsing, and facilitate validation with tools like Newman---which we leverage to mock responses and conduct batch testing. \[2\] Mastercard Places Postman Workspace Postman Collections allow developers to manage and import environment-variables, encryption and authentication configurations inside a unified space. Workspaces make sharing pre-formed API requests with partners very easy. Partners can run a single API request, a folder or the entire collection. If a developer needs assistance, we have Postman and Insomnia tutorials to guide them through app configurations and support teams on standby. By providing these automated testing solutions, visiting developers don't have to write code and can integrate faster. Try our Mastercard Insomnia Plugin Insomnia is valuable because it supports end-to-end encryption via environment variables. It features a simple, user-friendly interface for quickly importing and exporting collections. To streamline this process for you, we have created our own Mastercard Insomnia Plugin. Mastercard Insomnia environment from plugin Our Mastercard Insomnia plugin generates the necessary OAuth signatures, manages certificate-based authentication, and handles payload encryption---allowing developers to focus on testing business logic rather than wrestling with security implementation details. Import an Insomnia Collection Scripting Postman and Insomnia support pre-request and post-response scripting, enabling you to write scripts for the regular user flow after a user clicks 'send request'. These scripts allow us to provide greater automated data capabilities for our service owners. We can simulate concurrent user interactions (for example, issuer and third-party requests), represent data more dynamically, and enforce stricter conditions in outbound calls (such as checking the geolocation of a request). Pre-request scripting in Places API on Postman Mastercard's mission: Better Testing, Better Experience See how we can improve your experience Our goal is to make testing seamless. We achieve this through our concise documentation and robust API tooling. We have enabled support for third-party clients like Insomnia and Postman, allowing users to execute API calls, initiate scripting, and automate processes effortlessly. Get Started Today! Join developers who trust Mastercard Visit our Developer Portal and create an account. Explore our APIs, such as the "BIN Lookup API" featuring its own 'Quick Start Guide,' the "Places API" with an 'Integration and Testing' page, and the "Click to Pay: Issuer Enrollment" featuring its own 'Insomnia Collection' and 'Postman Collection' pages. Explore our Postman Workspace, fork your first collection and start making calls in minutes. Resources Postman Docs, 'Collections Overview', available at: https://learning.postman.com/docs/collections/collections-overview/ Postman, 'Run and test collections from the command line using Newman CLI', available at: https://learning.postman.com/docs/collections/using-newman-cli/command-line-integration-with-newman/