# listKarmaLocations

> Required permission: RestaurantWrite

Source: https://docs.gastrogate.io/docs/api/mutations/listKarmaLocations

```graphql
listKarmaLocations(
  restaurantId: ID!
  apiKey: String!
): [KarmaLocation!]
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `restaurantId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `apiKey` | [`String`](https://docs.gastrogate.io/docs/api/types/String.md)! |  |

## Returns

\[[`KarmaLocation`](https://docs.gastrogate.io/docs/api/types/KarmaLocation.md)!\]

## Example

```graphql
mutation ListKarmaLocations($restaurantId: ID!, $apiKey: String!) {
  listKarmaLocations(restaurantId: $restaurantId, apiKey: $apiKey) {
    id
    address
    city
    country
    name
    zip
  }
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { listKarmaLocations(...) { __typename } }"}'
```
