Skip to main content
POST
Create API key

Authorizations

Authorization
string
header
required

An InsightChain API key: ic_live_... for your organization, ic_test_... for its sandbox

Body

application/json
name
string
required
Required string length: 1 - 80
scopes
enum<string>[]

A key can only hand out scopes it holds itself (execute counts as holding read)

Minimum array length: 1
Available options:
read,
ingest,
execute,
approve,
keys
daily_limit
integer
default:1000

Requests a day

Required range: 1 <= x <= 10000
expires_at
string<date-time> | null

When the key stops working: a date-time (not a bare date) at least one minute and at most five years from now; null for a key that does not expire

environment
enum<string>

Must be the calling key's own environment (the default); a key cannot create keys for the other one

Available options:
live,
test

Response

Created

key
object
required
secret
string
required

The key's secret. Shown in this response only; store it now

plaintext
string
required
deprecated

Deprecated: the same value as secret

request_id
string
required

Quote this when asking about the request; also the X-Request-ID header