Logo
?
  • Documentations
  • API Keys
    • Credits

    Get Started

    • QuickStart
    • Changelog

    BDFT APIs

    • Metadata Normalization

    Accounts

    • API Keys
    • Rate Limit
    • Consumptions

Quick Start

Setting up and have the API running just get easier.

Generate an API Key

To start using the API, you need to generate an API key. You can do this by going to the API Keys Dashboard and generating a new key.

Set Environmental Api Key

Next, configure the environmental variable for the API key. Although not necessary, this way is still suggested to prevent your api key from accidentally leaking through publishing your code. You can do so in the terminal by running:

export Insilicom_API_KEY=YOUR_API_KEY

Now you can make a request to see if the API Key works.

import json, requests, os
api_key = os.getenv('Insilicom_API_KEY')
url = "https://service.insilicom.com/open_api/beta/v1/beta_api"
headers = {
    'Content-Type': 'application/json',
    'X-API-KEY': api_key
}
data = {
    "text": "Hello, world!"
}
response = requests.request("POST", url, json = data, headers=headers)
print(response.json())