Set up API Key

You will need to set up an API key to authenticate with Tonic Textual. You can find your API key in the Tonic Textual dashboard. You can set it as an environment variable

export TONIC_TEXTUAL_API_KEY="<API-KEY>""

You can can also pass the API key as a parameter when initializing the TonicTextual object

from tonic_textual.api import TonicTextual

textual = TonicTextual("<TONIC-TEXTUAL-URL>", api_key="<API-KEY>")