GET /facets

GET /facets

Fetch all facets

Query parameters

  • Search by facet type

    Values are routine_goals, skin_types, or skin_concerns.

Responses

GET /facets
curl \
 -X GET https://api.cosmily.com/api/v1/facets \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": [
    {
      "id": 1,
      "facet_type": "skin_types",
      "facet_value": "dry skin",
      "menuindex": 0,
      "created_at": "2021-10-04T13:24:22.000Z",
      "updated_at": "2021-11-13T20:23:18.000Z"
    }
  ]
}
Response examples (200)
{
  "data": [
    {
      "id": 1,
      "menuindex": 0,
      "created_at": "2021-10-04T13:24:22.000Z",
      "facet_type": "skin_types",
      "updated_at": "2021-11-13T20:23:18.000Z",
      "facet_value": "dry skin"
    }
  ]
}