Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Trustwell Genesis Foods API provides a powerful way to access food data, perform analyses, query standard entities, and create new ingredients or recipes. Built on GraphQL, the API allows you to define precisely what data you need and retrieve it efficiently. This guide will walk you through how to authenticate and start making queries and mutations using the API.

Obtaining your API Key

  • Only Administrators with API Access will have the ability to generate an API Key.

  • Treat your API Key like a password. Keep it secret; keep it safe.

To start using the Genesis Foods API, follow these steps:

  1. Log into the Genesis Foods application.

    Generate an API Key.

    Only Administrators with API Access will have the ability to generate an API Key
  2. In the lower left, click the vertical ellipsis next to your Organization Name / Username.

  3. Select Profile.

    image-20241010-225201.pngImage Added
  4. Select API Tokens along the top.

    image-20241010-225301.pngImage Added
  5. Click Create API Token.

  6. Enter a Label.

  7. Click Create Token.

  8. Once created, we recommend using the Copy button to copy the string to the clipboard. image-20241010-230028.pngImage Added

    • Important: This is the only time you will be able to obtain this Token. Should this be lost, the Token should be deleted and a new one created.

    • Preserve this Token string as you would other secrets / passwords.

  9. Include this API Key in the request headers for every request you make.

...