maestro-api
SKILL.md
Maestro API
Use this skill when the user wants a direct HTTP call to a Maestro endpoint. The intended path is short: resolve the exact operation page, send the real request, satisfy the live SIWX challenge, and only buy credits if the server still returns 402.
Fast Path
- Resolve the exact operation page in
docs.gomaestro.org. - Read the page's
.mdform and use itsOpenAPIblock as the source of truth. - Build the request URL from
servers:plus the operation path. - Send the real request with no auth or payment headers.
- If the response is
200, return the data. - If the response is
402withextensions.sign-in-with-x, sign the SIWX challenge and retry the exact same request withsign-in-with-x. - If that retry returns
200, return the data. - If that retry returns
402plusAuthorization: Bearer <jwt>, buy credits from the latestaccepts[]entry and retry the exact same request withAuthorizationandX-PAYMENT. - Reuse the JWT for follow-up queries until it expires or Maestro asks for more credits.
Resolve Endpoint From Docs
Use docs only to find the exact operation page. Do not browse broadly once you have it.