1. Users
Returning.AI
  • Getting Started
  • Users
    • User directory and provisioning
    • Get Users with Filters
      POST
    • Create New User
      POST
    • Get User Data
      POST
    • Manage User Account
      POST
    • Get User Milestones
      POST
    • Update User Data, Identifier, And Roles
      POST
    • Update User XP and Currency
      POST
  • Messaging
    • Agent messaging workflow
    • Get Messages
      GET
    • Send Message
      POST
    • Reply Message
      POST
    • React Message
      POST
    • Upload message images
      POST
  • Gamification
    • Leaderboards
      • Leaderboards
      • List leaderboards with pagination
      • Create a new leaderboard
      • Update an existing leaderboard
      • Get a single leaderboard by ID
      • Delete a leaderboard
    • Streaks & Mini Games
      • Mini-game State and History
      • List user streak logs
      • List mini-game logs by user email
      • Get current mini-game and streak state
      • Update user spin-wheel information
    • Referral
      • Referral Program Integration
      • Get referral programs
      • Get user's referral summary
    • Rolling Data
      • Get Daily Calculation Data
      • Get Rolling Calculation Data
    • Match Predictions
    • Get tier configuration
      GET
    • Get daily user XP and coin changes
      POST
    • Search user gamification logs
      POST
    • Get user activity stats
      POST
  • Rewards & Redemptions
    • Store catalog to redemptions
    • Update redemption order status or refund
      PUT
    • List redemption orders by user email
      POST
    • List redemption statuses
      POST
    • Get redemption status by ID
      POST
    • List redemption orders by community
      POST
    • Create redemption order status
      POST
    • Get redemption order status history
      POST
  • Chart Analysis
    • Create Analysis
    • Get Analysis
    • Update Analysis
    • Delete Analysis
    • List Analyses
    • Append Drawings
  • Bulk Operations
    • Bulk user updates
    • List bulk update jobs
    • Get bulk update job status
    • Get bulk update job details
    • Bulk update users from CSV
    • Bulk update premium currency from CSV
  • Channels
    • Iframe
    • List integration channels
  • Events
    • Outgoing webhooks
      • Encryption
      • User Joins Server
      • User Visits server
      • New Message Posted Anywhere
      • New Message Posted To channel
      • Purchased Store Item
    • Incoming webhooks
      • API Keys & Encryption
      • Send message into channels
      • Update Custom User Fields
      • Update In-game currency
  • Widgets
    • Authenticated Widgets
    • Public widgets
    • Channels
    • Leaderboard
    • Milestone
    • Socials
    • Store
  • Community Analytics
    • Get Loyalty Overview
    • Get Phone Verification Contacts
  • Store
    • Store catalog
    • Purchase History
      • Update redemption instructions or voucher details
    • Categories
      • List Store categories
      • Create Store category
      • Get Store category by ID
      • Update Store category
      • Delete Store category
    • Products
      • List products
      • Update products in bulk
      • Create products in bulk
      • Create product with vouchers
      • Read product
      • Update product and append vouchers
      • Delete product
    • Redemption-transaction
      • Get redemption transaction detail
    • Get Store configuration
    • Update Store configuration
  • Community
    • Community directory and appearance
    • Appearance
      • Update community theme colors
      • Update community bot profile
      • Update community URL metadata
      • Update community name and URL
    • Community Users
      • Get community users
      • Get user
    • Create community
  • API Keys
    • API key lifecycle
    • Community API Keys
      • Create API key
      • Read API keys
      • Delete API key
      • Update API key
    • User API Keys
      • List user API keys
      • Create user API key
      • Update user API key
      • Delete user API key
      • Get current API key information
  • User Fields
    • User field definitions and history
    • User Field History
      • Get all user field histories in a community
      • Get user field histories for a specific field
      • Get user field histories for a specific user
      • Get user field histories of specific user field and user
      • Update A User Field Value
      • Deprecated Field-First History Write
      • Deprecated Field-First History Read
    • Get A User Field Definition
    • Update A User Field Definition
    • Create A User Field Definition
    • Delete A User Field Definition
    • List User Field Definitions
  • Legacy
    • Servers
      • Create server
      • List servers
      • Update server metadata
    • Bulk Operations
      • Bulk import users from CSV
    • Authentication
      • Secure Auth
      • Register user with password
      • Verify user email
      • Log in user with password
    • Badges
      • List badges
      • Create badge
      • Update badge
      • Delete badge
      • Remove badge from user
      • Award badge to user
    • Messaging
    • Roles & Permissions
      • List server roles
      • Create role
      • Update role
      • Delete role
      • List user roles
      • Add role to user
      • Remove role from user
    • Users
      • Get user
      • Upload user avatar
    • Channels
      • Create channel
      • Update channel
      • Delete channel
    • API Keys
      • List integration API keys
      • Create integration API key
      • Delete integration API key
      • Update integration API key
  1. Users

Get Users with Filters

POST
/v1/users/filter

What this endpoint does#

Searches members in the API key's community. Use it for back-office sync, reconciliation, and segmented reporting when you do not already have a single identifier.
It is not proof that a user is active in the admin list. Soft-deleted members can still appear here. It does not return custom-field values, XP, or coins. For one known email or numeric platform id, use POST /v1/users/info.
INFO
Workflow
Authenticate → POST /v1/users/filter with both fields and filter → paginate data.data → call POST /v1/users/info when you need the full profile.

Quick start#

Both fields and filter are required on the current public runtime. Omitting either returns 400. An empty filter object is valid and returns the community directory page.

Authentication and permission#

Send Authorization: Bearer <COMMUNITY_API_KEY>. The key must include Get User Data (getUserData). Keep it server-side.
FailureObserved resultRecovery
Missing Authorization401 AUTHENTICATION_REQUIRED A valid bearer token or API key is required for this endpoint.Add the Bearer community key.
Invalid token401 API request rejectedReplace the key.

Complete examples#

Email match (200). fields plus filter.email returns data.pagination.total: 1 when that member exists in this community.
Empty filter (200). "filter": {} with fields returns the community directory. On 2026-08-19 Codex this was 59 rows in one page.
Unknown email (200). A well-formed email that does not match returns 200 with data.data: [] and total: 0. That is not a 404.
Malformed body (400). {} returns detail.fields: Required and detail.filter: Required. Sending fields without filter returns only detail.filter: Required.
Treat names and emails in examples as synthetic.

Success and readback#

HTTP 200. Envelope is { status: "success", data: { pagination, data } }. There is no top-level message on the current runtime.
data.data is an array of user objects containing only the requested fields. pagination includes total, currentPage, totalPages, hasNextPage, and hasPrevPage.
This is a read. Repeat the same request to refresh. Use POST /v1/users/info when you need the full profile for one row.
CHECK
Readback
A 200 with total: 0 means no rows matched this community and filter. It does not prove the email is unknown globally. A later POST /v1/users/info may still find the same email.

Errors and recovery#

StatusWhenRecovery
400 Get users by filter endpoint validation error.Missing fields, missing filter, or invalid field namesSend both keys. filter may be {}.
401 AUTHENTICATION_REQUIREDMissing or invalid Bearer tokenAdd a valid community key.
200 empty data.dataValid query, no matchesStop or widen filter. Do not treat this as 404.
A 500 was not induced in the 2026-08-19 Codex run.

Retry safety#

TIP
Exact retry
This POST does not create users. Retry timeouts and 500 with bounded backoff. Do not retry 400 or 401 without changing the body or credential. Repeating a successful filter does not duplicate members.

Gotchas#

Apidog's schema currently marks only fields as required. The public gateway also requires filter.
Soft-deleted members can still appear in filter results. Use POST /v1/users/manage status plus admin UI, not this list, as proof of deletion.
GET /v1/communities/{communityId}/users?page=&limit= returns empty data on the current runtime. Prefer this filter endpoint for search, and the community list with no query string for the default first page.

Next steps#

Get User Data
Resolve one email or numeric platform id into the full profile.

Request

Body Params application/json

Examples

Responses

🟢200OK
application/json
Request completed successfully.
Bodyapplication/json

🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠409
🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://adss-integration.returning.ai/apis/v1/users/filter' \
--header 'Content-Type: application/json' \
--data '{
    "fields": [
        "email",
        "join_date",
        "first_name",
        "last_name"
    ],
    "filter": {
        "join_date": {
            "lte": "2025-08-28",
            "gte": "2025-01-01"
        },
        "first_name": "Annie"
    }
}'
Response Response Example
200 - Success Example
{
    "status": "success",
    "data": {
        "pagination": {
            "total": 14,
            "currentPage": 1,
            "totalPages": 1,
            "hasNextPage": false,
            "hasPrevPage": false
        },
        "data": [
            {
                "email": "Test@gmail.com",
                "join_date": "2025-03-03T03:24:54.828Z",
                "first_name": "Test",
                "last_name": "Lee"
            },
            ...
            {
                "email": "coffeeplanetklee@outlook.com",
                "join_date": "2025-02-13T04:44:56.067Z",
                "first_name": "Klee",
                "last_name": "Planet"
            }
        ]
    }
}
Modified at 2026-08-18 17:20:28
Previous
User directory and provisioning
Next
Create New User
Built with