POST
/
api
/
v1
/
collection-records
/
{collectionId}
/
query

Description

This API endpoint enables the retrieval of collection records data. The structure of the collection record data is dynamic and varies depending on the collection, with no fixed response keys within the data.

Path

collectionId
string
required

A unique identifier for the collection.

Body

filter
array

An array that will eventually allow users to define specific criteria for filtering data. Currently, it is an empty array, indicating that no filtering is applied at this time.

sort
array

An array that will eventually enable users to specify sorting criteria for the data. Like the filter array, it is currently empty, implying that no sorting is applied in the current context.

limit
number
required

he number of records to be returned, set to 10 in this instance. This parameter restricts the response to a specific quantity of records.

offset
number
required

The starting point from which the records are to be fetched within the entire dataset. In this case, it is set to 0, indicating that retrieval should commence from the beginning of the dataset.

Response

status
boolean

Indicates the success or failure of the response. In this case, true signifies a successful operation.

message
string

Provides a human-readable message accompanying the response. In this instance, it confirms the successful retrieval of the record with the message “success”

data
array_object

The structure of the collection record data is dynamic and varies depending on the collection, with no fixed response keys within the data.