API machine users: connect your systems without sharing a password

Product tours

API machine users: connect your systems without sharing a password

Give your payroll or climate system its own Agromigo account: data through the API, only the access it needs, and alerts that reach the right person.

Your payroll package needs approved hours. Your climate computer wants the same data. The quick fix is to hand over someone’s login. Then that person leaves, the connection breaks, and the records say they did things they never did.

Agromigo gives each system an account of its own, on the Machine Users screen. It signs in as itself, sees only what you allow, and can be switched off without touching anything else. Your data reaches the tools you already use, and you stay in control of every connection.

In this video

Migo shows you how to give another system its own account, with only the access it needs.

The list. Machine Users lists the accounts your other systems sign in with, one row each; a dot marks one that needs attention. Select a row, and its record opens beside the list. A climate computer or payroll system gets an account of its own, never a person’s login, so you decide exactly what each system can reach through the API.

  1. Your API machine user. MU-1 is the machine user your systems connect with through the API: its record sits beside the list (from the bottom on a phone). It is active and may read data from every site.
  2. The Next steps card. At the top of the record: without a security contact, credential and access alerts reach nobody at all.
  3. Details. The card just below lists the security contact, its type and its sites. Anything nobody has filled in shows a dash.
  4. Edit. The pencil at the top right opens the edit sheet, in cards: basic data, what it can do, the sites the system may see, and a description.
  5. Description. The last card is where you note which system uses this account and who looks after it.
  6. Nothing saved. Cancel, at the bottom right of the sheet, closes it and leaves the machine user exactly as it was.
  7. A new machine user. New, in the top right corner, opens a menu with Machine user (API) and Machine user (BI). Machine user (API) opens the same sheet, empty, starting with the Basic Data card. Once you save a new one, its secret key shows just once, so copy it straight away.
  8. API Portal. Open API Portal, in the top right corner beside New (in the three-dot menu on a phone), opens the API reference your system supplier needs to connect.
  9. Every kind of record. Down the left (behind the menu at the top left on a phone) is every kind of record a system can reach, from sites and crop cycles to employees, each with its own requests.
  10. The key. Authentication, on the right, is where your supplier pastes the machine user’s secret key. Every request needs one.
  11. A request. Each request, such as List sites, explains what it returns and shows a ready-made example, so your supplier can connect without guesswork.
  12. The employee list. Open the employees group and choose List employees: the request that returns your people, with every filter it accepts.
  13. Test Request. The Test Request button tries a request right in the reference. Your organization is already filled in, so there is nothing to look up first.
  14. Active employees, five at a time. Tick the status filter and set the page size to five. Send returns the first five active employees, each with their name and status, and a link that fetches the next five.

Your operation’s data flows safely to the tools you already use, each system on its own account with only the access it needs.

Tips

To withdraw access, set the account inactive on the Machine Users screen. Its keys stop working, and the record of what it did stays in place.

Read more

The user guide explains what these system accounts can do and how to set them up safely. Read Machine users, then Access and scope for the two kinds, site scope and the secret key. The public API and the API Portal sets out every request, filter and limit.

Want to see more? Watch the other stories.

All stories

More stories