Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

API Tester

1 sites No security coverage
View on drupal.org

API Tester embeds a REST client directly into Drupal's admin interface, allowing you to test internal or external API endpoints. It supports various authentication methods and can generate code snippets for different programming languages.

The API Tester module transforms your Drupal 10/11 site into a powerful development environment by embedding a full-featured REST client directly into the admin interface. It eliminates the need for external tools like Postman or Insomnia when testing internal Drupal routes or external third-party services. By leveraging Drupal's native authentication and session handling, it allows developers to test API responses with real user permissions and CSRF tokens in just a few clicks.

Features

  • Comprehensive Request Builder: Support for all major HTTP methods (GET, POST, PUT, PATCH, DELETE) with a clean, Postman-inspired UI.
  • Native Drupal Integration: Test endpoints as specific site users to verify complex Permission/Access Control logic without manual logout/login.
  • Multi-Auth Support: Easily configure Bearer Tokens, Basic Auth, API Keys, or use the active Drupal Session with automatic CSRF token injection.
  • Code Snippet Generation: Instantly convert your configured requests into production-ready code for 13+ languages including PHP (Guzzle), Python (Requests), and JavaScript (Fetch/Axios).
  • Request Presets: Save frequently used API calls to a sidebar library for quick access and team debugging.
  • Zero Dependencies: Built entirely with Drupal core libraries and Guzzle, ensuring a lightweight footprint and maximum compatibility.

Installation

Install the module using Composer (recommended) or download it manually to your custom modules directory.

composer require drupal/api_tester

Enable the module using Drush:

drush en api_tester

Post-Installation

After enabling the module, you must grant the necessary permissions to access the testing interface:

  1. Go to People » Permissions.
  2. Locate the API Tester section.
  3. Grant the "Use API Tester" permission to developer or administrator roles.
  4. Navigate to Configuration » Development » API Tester to begin testing.

Usage Workflow

The API Tester is designed to be intuitive for anyone familiar with modern API clients:

  • Define: Enter your endpoint URL and select the method.
  • Configure: Add headers or a JSON/Form-Data body in the dedicated tabs.
  • Authenticate: Use the "Auth" tab to pick your strategy—select "Drupal Session" to test internal routes seamlessly.
  • Execute: Click Send to view syntax-highlighted JSON, response headers, and performance timing info.

Additional Requirements

This module requires Drupal 10 or 11 and the Guzzle HTTP library (included with Drupal Core). It is compatible with modern evergreen browsers (Chrome, Firefox, Edge, Safari).

Similar projects

  • OpenAPI (For API documentation and exploration)
  • REST UI (For managing Drupal's native REST resources)
  • JSON:API Explorer (Specific for JSON:API navigation)

Supporting this Module

If you encounter bugs or have ideas for new features—such as GraphQL support or OAuth2 integration—please contribute to the issue queue. Your feedback helps keep this tool robust for the Drupal developer community!

Activity

Total releases
2
First release
Feb 2026
Latest release
4 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0 Stable Feb 19, 2026
1.0.x-dev Dev Feb 18, 2026