Profiles Endpoints
A comprehensive solution for searching and retrieving individual or multiple profiles.
This article explains the available endpoints for the Profiles API. The Profiles API enables you to search for and retrieve profiles. Below are the available endpoints:
1. Search Profiles
The Search Profiles
endpoint allows you to search for profiles in a specified collection. You can use the endpoint to search for profiles by product ID, collection name, search string, and more.
Request Parameters
The Search Profiles
endpoint supports the following parameters:
Parameters | Required/Optional | Data Type | Description |
---|---|---|---|
product_Id | Required | string | The unique product ID. |
collection | Required | string | The collection name of the profile to search from. |
search | Optional | string | The search string. |
page | Optional | integer | Fetch results from the given page number. |
perpage | Optional | integer | Number of results per page. |
facets | Optional | array of string | Fetch the facet information, should be comma-separated. |
filterQuery | Optional | string | Query to filter listings. |
retrieveAttributes | Optional | array of string | Attributes to retrieve. |
referrences | Optional | array of string | Field references to fill, should be comma separated. |
Response Payload
The response payload of the Search Profiles
endpoint will contain the search results based on the provided parameters. Below is an example of a response object:
2. Get A Profile
The Get A Profile
endpoint allows you to retrieve a specific profile by ID. You can use this endpoint to retrieve a single profile from a specified collection.
Request Parameters
The Get A Profile
endpoint supports the following parameters:
Parameter | Required/Optional | Data Type | Description |
---|---|---|---|
product_id | Required | string | The unique product ID. |
id | Required | string | Profile ID to fetch. |
collection | Required | string | Name of the profile collection, for example, Architects, Builders, etc. |
referrences | Optional | array of string | Field referrences to fill, should be comma separated |
Response Payload
The response payload of the Get A Profile
endpoint will contain the requested profile information, as shown in the example below.
3. Get Multiple Profiles
The Get Multiple Profiles
endpoint allows you to retrieve multiple profiles at once. You can use this endpoint to retrieve multiple profiles from a specified collection by providing a list of profile paths.
Request Parameters
The Get Multiple Profiles
endpoint supports the following parameters:
Parameter | Required/Optional | Data Type | Description |
---|---|---|---|
product_id | Required | string | The unique product ID. |
paths | Required | array of string | Paths of profiles. Paths are made up of collection name and id. |
referrences | Optional | array of string | Fields to attach references, should be comma separated. |
Response Payload
The response payload of the Get Multiple Profiles
endpoint will contain the requested profile information for multiple profiles. Below is a response example for multiple profiles.