Query
query ApiKeys($where: ApiKeysFilterInput!) {
apiKeys(where: $where) {
edges {
cursor
node {
apiIds
createdBy
createdOn
id
keyPrefix
keySuffix
}
}
nodes {
apiIds
createdBy
createdOn
id
keyPrefix
keySuffix
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Variables
{
"where": {}
}Response
{
"data": {
"apiKeys": {
"edges": [
{
"cursor": "string",
"node": {
"apiIds": [
"string"
],
"createdBy": "string",
"createdOn": "string",
"id": "id",
"keyPrefix": "string",
"keySuffix": "string"
}
}
],
"nodes": [
{
"apiIds": [
"string"
],
"createdBy": "string",
"createdOn": "string",
"id": "id",
"keyPrefix": "string",
"keySuffix": "string"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": 1
}
}
}Queries
apiKeys
Lists the current tenant’s API keys, filtered by where.keyType and where.status; pass an empty where for all. The secrets aren’t included.
QUERY
apiKeys(after: String, before: String, first: Int, last: Int, where: ApiKeysFilterInput!): ApiKeysConnectionArguments
after
String
Returns the elements in the list that come after the specified cursor.
before
String
Returns the elements in the list that come before the specified cursor.
first
Int
Returns the first n elements from the list.
last
Int
Returns the last n elements from the list.
where
required
Returns
edges
[ApiKeysEdge!]
A list of edges.
nodes
[ApiKey!]
A flattened list of the nodes.
pageInfo
Information to aid in pagination.
totalCount
Int!
Identifies the total count of items in the connection.
Query
query ApiKeys($where: ApiKeysFilterInput!) {
apiKeys(where: $where) {
edges {
cursor
node {
apiIds
createdBy
createdOn
id
keyPrefix
keySuffix
}
}
nodes {
apiIds
createdBy
createdOn
id
keyPrefix
keySuffix
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Variables
{
"where": {}
}Response
{
"data": {
"apiKeys": {
"edges": [
{
"cursor": "string",
"node": {
"apiIds": [
"string"
],
"createdBy": "string",
"createdOn": "string",
"id": "id",
"keyPrefix": "string",
"keySuffix": "string"
}
}
],
"nodes": [
{
"apiIds": [
"string"
],
"createdBy": "string",
"createdOn": "string",
"id": "id",
"keyPrefix": "string",
"keySuffix": "string"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": 1
}
}
}Was this page helpful?