# deleteApiKey

```graphql
mutation DeleteApiKey($input: DeleteApiKeyInput!) {
  deleteApiKey(input: $input) {
    ok
  }
}
```

Revoke an API key so that it can no longer authenticate; lists leave the key out unless status selects revoked or all.

## Arguments

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

## Variables

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

## Responses

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

## 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 DeleteApiKey($input: DeleteApiKeyInput!) {\n  deleteApiKey(input: $input) {\n    ok\n  }\n}",
  "variables": {
    "input": {
      "id": "string"
    }
  }
}'
```

## Example response

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