API reference

me

Required permission: Authenticated

graphql
me: User

Returns

User

Example

graphql
query Me {
  me {
    id
    termsOfServiceAccepted
    username
    isEphemeral
    isSuperUser
    hasBedrockAccess
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "query { me { __typename } }"}'