FLAM

Search

1 Search route on the FLAM API: One field over the whole house.

Base URL https://api.flam.fashion. Send Authorization: Bearer flam_sk_… on every call; a handful of routes are session-only and say so. How keys and roles work.

One field over the whole house

Four lanes in ONE statement — piece (assets, matched on filename AND the sku: tag), collection (folders), look, workflow (lookbook templates). Under 2 characters is not an error: the same query runs wide open and the answer arrives as a flat recent list with groups: [].

Parameters

InNameTypeRequiredNotes
queryqstringno

Responses

StatusMeaning
200Grouped hits, or recent for a short query
401No valid session

200 returns:

{
  "query": "string",
  "groups": [
    {
      "kind": "piece",
      "items": [
        {
          "id": null,
          "kind": null,
          "title": null,
          "meta": null,
          "thumbUrl": null
        }
      ],
      "total": 0
    }
  ],
  "recent": [
    {
      "id": "string",
      "kind": "piece",
      "title": "string",
      "meta": "string",
      "thumbUrl": "string"
    }
  ]
}

Call it

curl -X GET "https://api.flam.fashion/api/toolkit/search" \
  -H "Authorization: Bearer $FLAM_API_KEY"