API reference

sudoMode

Gives you the status of "sudo mode" for the authentication token you're using. Required permission: Authenticated

graphql
sudoMode: SudoModeTicket

Returns

SudoModeTicket

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 } }"}'