The MESA Admin API allows you to programmatically interact with MESA. All requests must include your API key which can be found in My Account > Credentials.
Key
Value
{url}
https://api.getmesa.com/v1
{uuid}
Your store’s unique identifier: {{uuid}}.myshopify.com
Note: Storage has been deprecated in favor of Data by MESA. Returns a list of all Storage item names. To get a Storage value, call GET {{url}}/admin/{{uuid}}/storage/{{storage_name}}.json
To find the Task ID, click on a step in the Activity List > Request Details, and copy the last ID hash from the URL
Example: "65f3459357ca4e809608c8fb"
Header parameters
Body
Response
Successful response
Body
any
Request
Run a test
Trigger a test with a specific that is passed as the payload body parameter. To test an actual payload, consider running a test in the UI and replaying the task with POST replay.json.
Updates the Inputs, Outputs, Credentials and Storage for an automation. Updating scripts requires separate calls to the Script POST endpoing for each script.
POSThttp://{{url}}/admin/{uuid}/automations.json
Path parameters
uuid*string
Header parameters
Body
object
Response
Successful response
Body
any
Request
Get list of automations
Returns a list of automations for a store, sorted by most recently created first.
constresponse=awaitfetch('http://{{url}}/admin/{uuid}/automations.json', { method:'GET', headers: {"Content-Type":"application/json" }, body:JSON.stringify({"automations": [ {"uuid":"my-store","created_by":"","key":"etsy_order_send_to_google_sheets","name":"Send Etsy orders to Google Sheets","version":"1.0.0","template":"etsy/order/send_to_google_sheets","description":"<p>Consolidate your Etsy orders in Google Sheets for real-time tracking and improved order management. This template will automatically send Etsy order details to a Google Sheets spreadsheet when a customer completes an order on Etsy.</p>","video":"","is_premium":false,"tags": [],"source":"","destination":"","enabled":false,"did_complete":false,"logging":true,"debug":false,"setup":"incomplete","seconds":135,"notifications": {"enabled":false,"emails": ["example@theshoppad.com" ] },"_id":"65f1fdbbb54ac273e806026b","created_at":"Mar 13 2020","updated_at":"Mar 13 2024","__$markdownParsed":true } ] }),});constdata=awaitresponse.json();