Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

API Tester

1 sites No security coverage Drupal 10–11
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!

Depends on

Dependencies of the latest stable release

  • system Drupal core
  • user Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Feb 2026
Latest release
6 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

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