Query
query Accounts {
accounts {
edges {
cursor
node {
id
name
externalId
url
source
tier {
__typename
}
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"accounts": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"externalId": "string",
"url": "string",
"source": "API",
"tier": {
"__typename": "Tier"
}
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Queries
accounts
Returns a paginated list of accounts in the workspace. Use the filters argument to narrow the results and sortBy to order them (by name ascending when omitted). Requires the tenant:read permission.
QUERY
accounts(first: Int, after: String, last: Int, before: String, filters: AccountsFilter, sortBy: AccountsSort): AccountConnection!Arguments
first
Int
after
String
last
Int
before
String
filters
sortBy
Returns
edges
[AccountEdge!]!
pageInfo
Query
query Accounts {
accounts {
edges {
cursor
node {
id
name
externalId
url
source
tier {
__typename
}
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"accounts": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"externalId": "string",
"url": "string",
"source": "API",
"tier": {
"__typename": "Tier"
}
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Was this page helpful?

