API Keys
ION features the ability to create API client credential sets which can be used by developers to create automated systems that interact with ION's core features.
Client credentials are used to add programmatic access to ION. This can be used for scripting, automation and IoT devices. Users create these keys in their Organization and manage, update and delete them via the API/UI.
These are operations can be done with the following queries and mutations. List API Keys
1
query APIKeys {
2
apiKeys {
3
edges {
4
node {
5
clientId clientSecret
6
}
7
}
8
}
9
}
Copied!
Create API Key
1
mutation CreateAPIKey {
2
createApiKey {
3
apikey {
4
clientId clientSecret
5
}
6
}
7
}
Copied!
Update API Key (for enabling/disabling and regenerating Client Secrets)
1
mutation UpdateAPIKey($input: APIKeyInput!) {
2
updateApiKey(input: $input) {
3
apikey {
4
clientId clientSecret enabled
5
}
6
}
7
}
8
9
{
10
"input": {
11
"clientId": <your-client-id>,
12
"enabled": true | false,
13
"regenerateSecret": true | false
14
}
15
}
Copied!
Delete API Key
1
mutation DeleteAPIKey($input: APIKeyInput!) {
2
deleteApiKey(input: $input) {
3
apikey {
4
clientId
5
}
6
}
7
}
8
9
{
10
"input": {
11
"clientId": <your-client-id>,
12
}
13
}
Copied!
Last modified 1mo ago
Copy link