# account

```graphql
query Account($input: AccountIdInput!) {
  account(input: $input) {
    id
    slug
    name
    kind
    createdAt
    updatedAt
    membership {
      role
      capabilities
    }
  }
}
```

Return an account with the caller's role and capabilities in it. Requires account.read.

## Arguments

| Name              | Type            | Required | Description |
| ----------------- | --------------- | -------- | ----------- |
| `input`           | AccountIdInput! | Yes      |             |
| `input.accountId` | ID!             | Yes      |             |

## Variables

```json
{
  "input": {
    "accountId": "string"
  }
}
```

## Responses

| Status | Description                   |
| ------ | ----------------------------- |
| 200    | The Account! in data.account. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query Account($input: AccountIdInput!) {\n  account(input: $input) {\n    id\n    slug\n    name\n    kind\n    createdAt\n    updatedAt\n    membership {\n      role\n      capabilities\n    }\n  }\n}",
  "variables": {
    "input": {
      "accountId": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "account": {
      "id": "string",
      "slug": "string",
      "name": "string",
      "kind": "string",
      "createdAt": "string",
      "updatedAt": "string",
      "membership": {
        "role": "string",
        "capabilities": [
          "string"
        ]
      }
    }
  }
}
```
