Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • General Information

Managing datasets through mxHERO V3 API

Updated at April 1st, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • General Information
  • Pre-deployment
  • Forwarding Address (Archiving Address)
  • Email Flow (Fusion)
  • Mailbox (Email Sync)
  • Storage
    Box Service Account OneDrive for Organizations
  • Mail2Sign
    Box Sign DocuSign
  • Login
  • mxHERO AI
  • Labs
  • Basics
  • Mail2Cloud Dashboard
  • Auto Filling
  • Drag And Drop
  • MXHERO App
+ More

To generate your API Key goto "Settings" - “Integrations”; and scroll down to Integrate with mxHERO API





When enabling the integration, an API key will be generated that should be used as the value of the "x-api-key" header in requests (it should replace the {api-key} you see in the examples)

API call examples


To get a dataset created:
curl -X GET "https://api.mxhero.com/v3/organizations/{organization ID}/datasets/{dataset ID}" -H "accept: application/json" -H "x-api-key: {api-key}"
 
To put values on a dataset:
curl -X PUT "https://api.mxhero.com/v3/organizations/{organization ID}/datasets/{dataset ID}" \
-H "accept: application/json" -H "Content-Type: application/json" \
-H "x-api-key: {api-key}" \
-d "{ \"id\": \"17539a6e-4ccb-447d-b14d-75968bc6a843\", \"organizationId\": \"my-organization-id\", \"name\": \"dataset for test\", \"rows\": { \"john.doe@test.com\": [ \"John Doe\" ], \"jane.doe@mxhero.com\": [ \"Jane Doe\" ] } }"
 
To put an individual value:
curl -X PUT https://api.mxhero.com/v3/organizations/{organization ID}/datasets/{dataset ID}/row?key=KEY_NAME \
-H "accept: application/json" -H "Content-Type: application/json" \
-H "x-api-key: API_KEY"  \
-d "[\"KEY_VALUE\"]"
 
To delete an individual value:
curl -X DELETE https://api.mxhero.com/v3/organizations/{organization ID}/datasets/{dataset ID}/row?key={key-name} \
-H "accept: application/json" \
-H "x-api-key: {api-key}"
 

To find out the dataset ID you can go to the datasets list and click on "Edit" on the dataset you require. This will redirect you to the editing page for that dataset and you will be able to see the ID in the URL of the page.

To know your organization ID you can go to Organization and Domains
integration mxhero

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Tutorial: Creating a Drag And Drop rule
  • Tutorial: Creating a Protect Attachments rule (Emailflow)
  • Tutorial: Using multiple SharePoint sites to storage attachments
astors-3-tiny.png

Company

Home

About

News

Blog

Security & Trust

Terms of Service

Privacy Policy

Service Status

Partners

Products & Papers

Data Sheets

Products

FAQ

Roadmap

Contact

Sales

Support

Videos

Japan

Report Incident

Contact Us!
  • LinkedIn

contact@mxhero.com

3x Astors Homeland Security Platinum Award for Best Email Security Solution

© 2022 mxHERO Inc.

BoxElite.png

USA

100 Pine St., Suite 1250

San Francisco, CA 94111

USA

​

Japan

105-0003

DLX Building 9F

Nishi-Shinbashi 1-13-1

Minato-ku, Tokyo

Japan

Definition by Author

0
0
Expand