Skip to content
myela

Postman and Bruno collections, and a skill that teaches a coding agent the rules.

If you’d rather click through the API before you write code, import a collection. If you work with a coding agent, give it the Myela agent skill so it knows the rules it can’t guess.

The Postman and Bruno collections are generated from the same route table, so they hold the same 11 folders and 63 requests in the same order. They walk an integration step by step, and each request saves the ids it creates into variables the next request reads. For every field and response, use the API reference.

Download the files from the collections page:

File What it is
myela-v1.postman_collection.json The Postman collection.
myela-v1.postman_environment.json The Postman environment for the sandbox. Import this one with the collection.
myela-v1-local.postman_environment.json A Postman environment for a gateway running on your own machine. You won’t need it.
myela-v1.bruno_collection.json The Bruno collection, with Sandbox and Local environments built in.
  • Postman: Import, then File. Import the collection and the sandbox environment.
  • Bruno: Collection, Import, Bruno Collection. The Sandbox environment is included.

No credentials are included. Paste a test key into MYELA_API_KEY: the Postman environment leaves it empty, and Bruno ships a placeholder. A live key also needs request signing, which neither tool does out of the box, so keep the collections on the sandbox.

Variable What it holds
BASE_URL The API host. The sandbox environment sets it for you.
MYELA_API_KEY Your secret test key. Every request sends it as a bearer token.
MYELA_PUBLISHABLE_KEY Your publishable test key, for the Elements requests.
ELEMENTS_ORIGIN Your checkout page’s origin, for opening a checkout session.
PAYMENT_TOKEN A card token to charge or save.
Folder Requests Count
00 · Start here Read your capabilities. 1
01 · Customers & cards Create, read, update, and list customers. Open a checkout session, add a card from a token, list saved cards, set the default. 8
02 · Payments Charge a saved card, with and without tip and tax. Charge a new card. Authorize, capture, void, refund, retrieve, list. 9
03 · Addresses Create, list, retrieve, update, set default. 5
04 · Plans and subscriptions Create, retrieve, and list plans. Create, retrieve, list, and cancel subscriptions. 7
05 · Invoices and scheduled collection Create, retrieve, list, schedule, cancel a schedule, collect due invoices now (sandbox), list attempts, void. 8
06 · Recurring invoices Create, retrieve, list, update, pause, resume, cancel. 7
07 · Payment links Create, retrieve, list, cancel. 4
08 · Webhook endpoints and deliveries Create, list, retrieve, update, and delete endpoints. List, retrieve, and replay deliveries. 8
09 · Myela Elements (browser) Open a checkout session, and exchange a token. 2
10 · Bulk actions Bulk-create customers, bulk-capture payments, read a job, resume a job. 4

Two parts have no method in the Node SDK yet: the bulk actions and the request that collects due invoices in the sandbox. Call those over HTTP.

integrate-myela-payments is a skill for coding agents. It teaches the agent the Myela rules it can’t safely guess: card-capture boundaries, minor-unit amounts, capabilities, idempotency, request signing, webhook verification, and which SDK features are available. Use it to plan, write, review, or debug an integration with the Payments API.

The bundle is documentation only: a SKILL.md, three reference files, and an agent config file. It holds no scripts, credentials, or network tools, and no permission to run a payment. Its rules tell the agent never to ask for a secret key, never to send a request to Myela, never to target production, never to handle raw card numbers, and never to branch on which provider is behind an account.

  1. Download integrate-myela-payments.zip.
  2. Unzip it into the skills directory your agent reads. Keep the integrate-myela-payments/ folder.
  3. Ask the agent for the task and name the skill: $integrate-myela-payments followed by what you want built.

The skill plans and reviews sandbox code. It never runs it. Running requests from an agent is a separate capability that doesn’t exist yet.

The downloadable bundle predates the published SDK, and two of its notes are out of date. It says @myela/payments isn’t on npm; it is. It says capture doesn’t take an idempotency key; capture does, and void and refund still don’t. Where the skill and these pages disagree, these pages are current. See Capture, void, and refund.