API Keys
When you sign up, you receive two API Keys: the live and test keys. These are immediately active and determine the environment used by your integration.
Ease of use
The Invoicetronic API has a single entry point: https://api.invoicetronic.com/v[version]/. Your integration seamlessly works with the test (sandbox) or live environment using the appropriate API key.
The API keys are easily distinguished by their prefixes: ik_live_ and ik_test_. Let's say we want to request the events log. From the command line using curl, we could do this:
Test Key
curl https://api.invoicetronic.com/v1/log \
-u ik_test_YOUR-API-KEY:
# The colon prevents curl from asking for a password.
ik_test_.
Live Key
However:
curl https://api.invoicetronic.com/v1/log \
-u ik_live_YOUR-API-KEY:
# The colon prevents curl from asking for a password.
Weill request the event log form the live environment, as you are now using the live (ik_live_) Key.
Restricted Keys
In addition to your primary keys, you can create restricted keys with configurable permissions and access limited to specific companies, from the Dashboard or through the API with the /subkey endpoint. To learn more, see the Restricted Keys guide.
Protect access to the Dashboard
Anyone who signs in to the Dashboard can manage your keys. Enable two-factor authentication to protect your account even if someone finds out your password.