List your active mobile users

Read and search your agent's mobile users, with filters for name, location, role, and active status.

Every REST endpoint shares one base URL and needs a full-scope Agent API Token:

https://mcp.onkey.chat/functions/v1/rest-api

GET /users lists and searches your agent's mobile users. By default it returns your active users.

curl "https://mcp.onkey.chat/functions/v1/rest-api/users" \
  -H "Authorization: Bearer okm_<your-token-here>"

You'll get back { "users": [...], "count": N }. Each user includes an is_payroll_synced flag (see the payroll note below).

Filters

All filters are optional query parameters, and they combine with AND — pass several to narrow the list further.

ParameterWhat it does
queryMatches first or last name (case-insensitive, partial).
locationCase-insensitive, partial match on location.
roleCase-insensitive, partial match on role title.
activeWhich users to include: true (the default — active users only), false (inactive only), or all (both).

For example, every active cashier in Glendale:

curl -G "https://mcp.onkey.chat/functions/v1/rest-api/users" \
  -H "Authorization: Bearer okm_<your-token-here>" \
  --data-urlencode "location=Glendale" \
  --data-urlencode "role=Cashier"

For the full request and response schema, see the API Reference.

📘

Payroll-managed rosters

Reading works the same whether or not your roster is payroll-synced — this endpoint always lists your users. What doesn't apply to a payroll-managed roster is managing those users: creating, editing, and deleting are blocked, because payroll is the source of truth. Each row's is_payroll_synced flag tells you which users are owned by the provider. See Payroll-managed rosters.

Next steps


Did this page help you?