Mutations
createApiKey
Creates a new API key for a user or an application. API keys are used to authenticate with the ION API and are required to obtain access tokens for performing operations.
MUTATION
createApiKey(description: String, name: String): CreateAPIKeyArguments
description
String
name
String
Returns
apikey
Mutation
mutation CreateApiKey {
createApiKey {
apikey {
_created
_etag
_updated
clientId
clientSecret
createdByApiClient {
id
name
}
}
}
}Response
{
"data": {
"createApiKey": {
"apikey": {
"_created": "value",
"_etag": "string",
"_updated": "value",
"clientId": "string",
"clientSecret": "string",
"createdByApiClient": {
"id": 1,
"name": "string"
}
}
}
}
}Was this page helpful?
⌘I
Mutation
mutation CreateApiKey {
createApiKey {
apikey {
_created
_etag
_updated
clientId
clientSecret
createdByApiClient {
id
name
}
}
}
}Response
{
"data": {
"createApiKey": {
"apikey": {
"_created": "value",
"_etag": "string",
"_updated": "value",
"clientId": "string",
"clientSecret": "string",
"createdByApiClient": {
"id": 1,
"name": "string"
}
}
}
}
}