Query
query CompanyApiKeys {
companyApiKeys {
edges {
cursor
node {
id
name
capabilities
workspaces {
__typename
}
createdAt
expiresAt
}
}
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
totalCount
}
}Response
{
"data": {
"companyApiKeys": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"capabilities": [
"string"
],
"workspaces": {
"__typename": "WorkspaceConnection"
},
"createdAt": "value",
"expiresAt": "value"
}
}
],
"pageInfo": {
"startCursor": "string",
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true
},
"totalCount": 1
}
}
}companyApiKeys
Every active company API key of the company, never their tokens. Needs a company API key with api_keys:read.
QUERY
companyApiKeys(first: Int, after: String): CompanyApiKeyConnection!Arguments
first
Int
default:100
How many to return: 100 by default, at most 500. 0 returns only totalCount.
after
String
The endCursor of the previous page.
Returns
edges
This page, in order.
pageInfo
Where this page sits in the list.
totalCount
Int!
How many there are across all pages.
Query
query CompanyApiKeys {
companyApiKeys {
edges {
cursor
node {
id
name
capabilities
workspaces {
__typename
}
createdAt
expiresAt
}
}
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
totalCount
}
}Response
{
"data": {
"companyApiKeys": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"capabilities": [
"string"
],
"workspaces": {
"__typename": "WorkspaceConnection"
},
"createdAt": "value",
"expiresAt": "value"
}
}
],
"pageInfo": {
"startCursor": "string",
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true
},
"totalCount": 1
}
}
}