# sudoMode

> Gives you the status of "sudo mode" for the authentication token you're using.

Required permission: Authenticated

Source: https://docs.gastrogate.io/docs/api/queries/sudoMode

```graphql
sudoMode: SudoModeTicket
```

## Returns

[`SudoModeTicket`](https://docs.gastrogate.io/docs/api/types/SudoModeTicket.md)

## Example

```graphql
query SudoMode {
  sudoMode {
    id
    expiresAt
  }
}
```

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