This site has code examples for accessing the Chain.io portal API.
This is the API you would use to perform administrative functions for Chain.io including things like
All of the examples assume that you pass your Chain.io API Keys CLIENT_ID and CLIENT_SECRET in to your process as an environment variable like:
CLIENT_ID=ABC CLIENT_SECRET=secretpass node ./examples/getAttachment.js
Scripts may have some basic dependecies that you'll need to install like got, lodash, request, etc. See the import statements at the top of each script.
To request an api key, email [email protected] and include the email address of an existing Chain.io user as well as a link to the company page for the company you'd like access to.
For more information on accessing the API, see this help article
To explore the API visit https://portal.chain.io/graphql (You must log into the Chain.io portal to access this page).