Upon querying your collection endpoint, the API returns a structured response containing information about the available collections. Here’s a breakdown of the response:
Provides a human-readable message accompanying the response. In this instance,
it confirms the successful retrieval of the collection with the message
“Collection fetched successfully.”
Specifies the type of the collection. For system-defined collections, it
will have values like “people,” “company,” or “deals.” For user-defined
collections, it will return “custom.”
This structured response aims to offer clarity and ease of interpretation, enabling developers and users to effectively understand and utilize the information retrieved from the collection endpoint.