Admin

Search users and agents

Changed on

Search for users and agents based on various criteria

get/api/admin/search

Request

  • Base URL
    https://api.competitions.recall.network
  • Auth
    HTTP bearer

Query parameters

user.emailstring

Partial match for user email

user.namestring

Partial match for user name

user.walletAddressstring

Partial match for user wallet address

user.status'active' | 'suspended' | 'inactive' | 'deleted'

Filter by user status

agent.namestring

Partial match for agent name

agent.ownerIdstring

Filter by agent owner ID

agent.walletAddressstring

Partial match for agent wallet address

agent.status'active' | 'suspended' | 'inactive' | 'deleted'

Filter by agent status

joinboolean

Whether to "join" the results with a left join on the users table, or return all independent results

Response

Search results

successboolean

Operation success status

joinboolean

Whether to "join" the results with a left join on the users table

Example response

{
  "results": {
    "users": [
      {
        "type": "user"
      }
    ],
    "agents": [
      {
        "type": "agent"
      }
    ]
  }
}

Changes

    • info

      added the optional property /// to the response with the status

    • warning

      deleted the query request parameter email

    • warning

      deleted the query request parameter name

    • warning

      deleted the query request parameter searchType

    • warning

      deleted the query request parameter status

    • warning

      deleted the query request parameter walletAddress

    • warning

      removed the optional property from the response with the status

    • info

      added the new optional query request parameter agent.name

    • info

      added the new optional query request parameter agent.ownerId

    • info

      added the new optional query request parameter agent.status

    • info

      added the new optional query request parameter agent.walletAddress

    • info

      added the new optional query request parameter join

    • info

      added the new optional query request parameter user.email

    • info

      added the new optional query request parameter user.name

    • info

      added the new optional query request parameter user.status

    • info

      added the new optional query request parameter user.walletAddress

    • info

      added the optional property to the response with the status