Documentation v1.24
Last updated 2026-05-25 Give feedback

MagicPay SDK

The SDK is the right entry point when you own the surrounding agent, browser, or backend runtime and need MagicPay as the Memory request layer.

SDK client and request flow

Install

Use the public package in trusted Node or TypeScript runtimes.

Shell
npm i @mercuryo-ai/magicpay-sdk

Client Responsibilities

The SDK handles communication with MagicPay. Your app still owns browser control, provider calls, UI, and what happens after a Memory-managed result is returned. Memory fill is target-agnostic by design: the same value-free flow writes an approved value into an API header, a provider SDK call, or a browser field, with MagicBrowse as the browser adapter.

  • Create workflow sessions.
  • Resolve Memory-managed field values through requests.
  • Run Memory-managed actions.
  • Ask the user to choose from runtime-provided options.
  • Wait for request results without writing custom polling.

Security Rule

Treat request artifacts as short-lived handoff material. Do not log them, print them, store them in prompts, or give them to the LLM.

MagicPay public documentation.