AHG Extensions for AtoM

Home / Plugins / REST API

REST API

Enhanced REST API v2 with API key management, full CRUD operations, batch processing, webhooks with HMAC signatures and retry logic, rate limiting, and GLAM/DAM sector support

CategoryIntegration and APIs
PackageahgAPIPlugin
Version1.2.0
StatusInstalls from source. Clean-database install not yet verified.
External servicesCan use, when installed: Apache Jena Fuseki triplestore, ExifTool
LicenceAGPL-3.0-or-later
InstallFrom the source repository: see Installation below. No packaged download yet.

Enhanced REST API v2 for Access to Memory (AtoM) 2.x The AtoM MCP server (in development) works through this API: it reads records, their text and images, and sends proposals that an archivist reviews before anything changes. Video walkthrough: AtoM MCP Server in Action

Features

  • API Key Management - Create and manage API keys with granular scopes (read/write/delete)
  • Rate Limiting - Configurable rate limits per API key (requests/hour)
  • Request Logging - Full request/response logging for analytics and debugging
  • Webhooks - Real-time notifications for record changes
  • Batch Operations - Process multiple records in a single request
  • Full Data Export - Get complete record data with ?full=true parameter
  • GLAM/DAM Support - Sector filtering for Archive, Museum, Library, Gallery, DAM

Requirements

  • AtoM 2.8 or higher
  • PHP 8.1 or higher
  • atom-framework installed and configured

Installation

cd /path/to/atom
php bin/atom extension:enable ahgAPIPlugin

Manual Installation

  1. Copy the plugin to your AtoM plugins directory:
   cp -r ahgAPIPlugin /path/to/atom/plugins/
  1. Run the database migrations:
   php atom-framework/bin/install-plugin-schema.php --database=<database> --user=<user> --password=<password> --plugin=ahgAPIPlugin   # from the AtoM root; never a plain mysql < install.sql
  1. Enable the plugin in apps/qubit/config/settings.yml:
   all:
     .settings:
       enabled_modules:
         - apiv2
  1. Clear the cache:
   php symfony cc

Try it

This feature is for signed-in staff, so it is not open on the public demo.

Source and README on GitHub · Questions: support@theahg.co.za or WhatsApp