Apidog

All-in-one Collaborative API Development Platform

API Design

API Documentation

API Debugging

API Mocking

API Automated Testing

Sending Array in form-data with Postman

Learn how to format your array correctly and send it seamlessly within Postman! This article will include techniques and streamline for mastering API testing, all to achieve efficient API development.

David Demir

David Demir

Updated on November 29, 2024

API testing sometimes requires sending an Array in form-data format. In this article, we will discuss how to achieve this using Postman.

💡
Apidog is a convenient API management tool that allows you to specify the form-data parameter type directly to Array, which is convenient because you can easily add values. Also, you can check the sent Array array data on the actual Request tab.

Apidog is a completely free tool, so get this tool for free by clicking the button below now!
button

Why send an Array in form-data?

When it comes to API testing, sending an Array in form-data is necessary due to the convenient data format it provides. There are two main reasons for sending an Array in form-data:

HTTP Protocol Specification

The HTTP protocol defines form-data as a way to transfer data in the request body. This format allows associating multiple values with a single key, enabling the server to interpret the values as an array.

Server-side Implementation

The server-side implementation also plays a role in determining how an Array in form-data is handled. Most web application frameworks support passing arrays in form-data, ensuring the data is interpreted correctly on the server side.

Sending Array with Postman

Postman is a popular tool for API development and testing. Here's how you can send an Array in form-data using Postman:

What is Postman (A Tutorial for Beginners)
What is Postman? This article will provide a comprehensive introduction to Postman, so let’s get started.

Create an HTTP POST or PUT request in Postman as form-data

Create Request

Input the Array values as key-value pairs. If you input the same key multiple times, Postman will automatically convert them into an array when sending the request.

Add Values

Verify the sent form-data after sending the request. You will see the data formatted as an Array.

Verify Result
What is Postman (A Tutorial for Beginners)
What is Postman? This article will provide a comprehensive introduction to Postman, so let’s get started.

Using Apidog for Easier Array Data Transmission

Apidog offers a powerful API client tool that allows you to easily send Array data in form-data. Here's how you can do it with Apidog:

Step 1: Open Apidog, create a new POST request, switch to the Body tab, and select form-data. You can directly specify the data type as "array".

apidog body form-data set data type array

Step 2: If your array data has multiple values, you can add as many values as needed by clicking the "+" icon.

apidog set multiple values

Step 3: Click the "Send" button to send the request. You can then check the sent data in the "Actual Request" tab to confirm that the Array data was sent correctly as form-data.

apidog display array values in actual request
button

Conclusion

In conclusion, this article explained the importance of sending Array data in form-data during API testing and provided a guide on how to do it using Postman. Additionally, utilizing powerful API development tools like Apidog can enhance the efficiency of API testing processes.

How to Use Cursor Tab Completion FeatureViewpoint

How to Use Cursor Tab Completion Feature

This tutorial will guide you through understanding, using, and mastering Cursor Tab, transforming it from a neat feature into an indispensable part of your coding arsenal.

Mark Ponomarev

April 18, 2025

How to Use Google Gemini 2.5 Pro with Open Codex CLI (Open Codex CLI)Viewpoint

How to Use Google Gemini 2.5 Pro with Open Codex CLI (Open Codex CLI)

Open Codex CLI is an open-source tool that brings the power of large language models (LLMs) directly into your terminal workflow. This guide focuses specifically on leveraging one of the most advanced models available today – Google's Gemini 2.5 Pro – within the Open Codex CLI environment. Open Codex CLI is a fork of the original OpenAI Codex CLI, maintaining its core functionality but significantly expanding its capabilities by adding support for multiple AI providers, including Google Gemini.

Emmanuel Mumba

April 18, 2025

How to Use Google Gemini 2.5 Flash via APIViewpoint

How to Use Google Gemini 2.5 Flash via API

Google's advancements in artificial intelligence continue to accelerate, and the introduction of Gemini 2.5 Flash marks another significant step. This model, available in preview, builds upon the speed and efficiency of its predecessor (2.0 Flash) while integrating powerful new reasoning capabilities. What makes 2.5 Flash particularly compelling for developers is its unique hybrid reasoning system and the introduction of a controllable "thinking budget," allowing fine-tuning of the balance betwe

Ashley Innocent

April 18, 2025