Get account

account(input: AccountIdInput!): Account!

Requires account.read.

Arguments

ArgumentTypeRequired
inputAccountIdInput!Yes

Input fields

input

AccountIdInput

FieldTypeRequired
accountIdID!Yes

Response

Returns Account!. Open the type for its fields and nested types.

FieldTypeDescription
idID!
slugString!
nameString!
kindString!
createdAtString!
updatedAtString!
membershipAccountMembership!The caller's role and resolved account capabilities.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query Account($input: AccountIdInput!) {
  account(input: $input) {
    id
    name
    slug
    createdAt
    updatedAt
  }
}
json
{
  "input": {
    "accountId": "00000000-0000-4000-8000-000000000001"
  }
}