Skip to main content
POST
/
styles
/
{id}
/
search
Semantic search a style's linked-folder assets
curl --request POST \
  --url http://localhost:3001/api/v1/styles/{id}/search \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "query": "a dark logo on a transparent background",
  "limit": 5
}
'
{
  "data": [
    {
      "id": "9b3f0c12-6e8a-4d2b-bc91-0a7e2f1d3c45",
      "name": "logo-dark.png",
      "url": "https://cdn.example.com/uploads/usr_8a2f3c/logo-dark.png",
      "similarity": 0.89
    }
  ]
}

Authorizations

x-api-key
string
header
required

Path Parameters

id
string<uuid>
required

Body

application/json
query
string
required
Required string length: 1 - 500
limit
integer
Required range: 1 <= x <= 50

Response

OK

data
object[]
required