1. Home
  2. Docs
  3. Mavryx API Reference
  4. Responses
  5. List response

List response

A List response is a type of response that returns a list of elements.

Header

Field NameTypeDescription
versionMavryx/Types/IntegerMicroservice API version
endpointMavryx/Types/StringThe responding endpoint (typically the one that was called).
refererMavryx/Types/StringRequester who called the endpoint.
raycastMavryx/Types/StringRequest tracking identifier
request_idMavryx/Types/StringRequest identifier
response_idMavryx/Types/StringResponse identifier
statusMavryx/Types/IntegerResponse status (the response code may not comply with HTTP error codes).
messageMavryx/Types/StringResponse message

Response

Field NameTypeDescription
response_typeConstIt defines whether a single object, a list of objects, or a basic type has been returned. The possible values are: list, item, simple
typeObject Type or Simple TypeThe type of the returned object
listMavryx/Types/ArrayIf a list of objects is returned, this field contains the list of objects.
items_countMavryx/Types/IntegerHow many items was returned
filtered_countMavryx/Types/IntegerHow many items fit to the query
total_countMavryx/Types/IntegerHow many items is in DB

Query parameters

Field NameTypeDescription
qMavryx/Types/StringQuery
a[]Mavryx/Types/ArrayArguments
sort[]Mavryx/Types/ArraySort
startMavryx/Types/IntegerStart from
limitMavryx/Types/IntegerHow many items to return (default: 50)

Example query

Field NameValueDescription
qq=first_name = :first_name:The query
a[]a[first_name]=johnArguments for query
sort[]sort[]=created_time ASCSort
start1
limit25
https://accounts-dev.mavryx.solutions/account/list?q=first_name%20%3D%20%3Afirst_name%3A&a[first_name]=john&sort[]=created_time%20ASC&start=1&limit=24

Example response

{
  "header": {
    "version": 20240101,
    "endpoint": "/account/list",
    "referer": "https://swagger-dev.mavryx.software",
    "raycast": "5d06f2af11af3b71ddae73a827fbc32d",
    "request_id": "0bffb5478ea1f203e1ec75b1a138e905",
    "response_id": "b474beeb6f8d8226fd487a71d362ebef",
    "status": 200,
    "message": "OK"
  },
  "response": {
    "response_type": "list",
    "type": "Mavryx/Account",
    "items_count": 4,
    "filtered_count": 4,
    "total_count": 4,            
    "list": [
      {
        "uuid": "069aa47b-1dd8-4273-8dsa-1b4dadea8ff4",
        "type": "Mavryx/Account",
        "created_time": 1571156658,
        "updated_time": null,
        "deleted_time": null,
        "is_active": true,
        "email": "dsadsa@tterewr.com",
        "first_name": "dsada",
        "last_name": "dsadas"
      },
      {
        "uuid": "10e06a62-efd2-4297-84f8-2b5fb0aaca4c",
        "type": "Mavryx/Account",
        "created_time": 1571104277,
        "updated_time": null,
        "deleted_time": null,
        "is_active": true,
        "email": "ddddd@xxxx.pl",
        "first_name": "dsadsa",
        "last_name": "dsadsa"
      },
      {
        "uuid": "18cf30b0-efea-4763-ae4f-75e1a3a82c88",
        "type": "Mavryx/Account",
        "created_time": 1663328309,
        "updated_time": null,
        "deleted_time": null,
        "is_active": true,
        "email": "xxxx@xxxx.pl",
        "first_name": "dsdsd",
        "last_name": "dddasd"
      },
      {
        "uuid": "1935eb6f-aaaa-46de-95e3-6075f724649c",
        "type": "Mavryx/Account",
        "created_time": 1571156958,
        "updated_time": null,
        "deleted_time": null,
        "is_active": true,
        "email": "yyyy@yyyy.com",
        "first_name": "aadsad",
        "last_name": "dsadsad"
      }
    ]
  }
}
Was this article helpful to you? No Yes

How can we help?