Specifying API keys in your applications

Once you've added an API key, you can use it in your applications. When using either the Python or the Node.js SDK, you do this in the following manner:

# Import the Inkit Python package
import inkit
from inkit.exceptions import InkitResponseException

# Replace the string below with your API key
inkit.api_token = "ENTER YOUR API KEY"
// Import the Inkit Node.js package
const Inkit = require("inkit")

// Replace the string below with your API key
Inkit.apiToken = "ENTER YOUR API KEY"

If you are making direct HTTP requests to our endpoint URLs, you should include the following in the header:

'X-Inkit-API-Token: ENTER YOUR API KEY'

In either case, replace ENTER YOUR API KEY with your API key.