# deleteAccountApiKey

```graphql
mutation DeleteAccountApiKey($input: AccountApiKeySelectorInput!) {
  deleteAccountApiKey(input: $input) {
    ok
  }
}
```

Revoke account API key as a signed-in account administrator. Requires account.settings.manage.

## Arguments

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

## Variables

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

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The DeleteApiKeyPayload! in data.deleteAccountApiKey. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation DeleteAccountApiKey($input: AccountApiKeySelectorInput!) {\n  deleteAccountApiKey(input: $input) {\n    ok\n  }\n}",
  "variables": {
    "input": {
      "accountId": "string",
      "id": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "deleteAccountApiKey": {
      "ok": false
    }
  }
}
```
