Skip to main content
POST
/
api
/
files
/
v1
/
filesets
/
{filesetId}
/
query
Query Files
curl --request POST \
  --url https://example.com/v1/api/files/v1/filesets/{filesetId}/query \
  --header 'Content-Type: application/json' \
  --header 'X-DOMO-Developer-Token: <api-key>' \
  --data '
{
  "query": "<string>",
  "directoryPath": "<string>",
  "topK": 123
}
'
{
  "matches": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "node": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "path": "<string>",
        "name": "<string>",
        "fileType": "<string>",
        "contentType": "<string>",
        "size": 123,
        "created": 123,
        "type": "<string>"
      },
      "score": 123
    }
  ]
}

Authorizations

X-DOMO-Developer-Token
string
header
required

Domo Developer Token for authentication.

Path Parameters

filesetId
string<uuid>
required

Body

application/json
query
string
required

Text to search for in Files.

directoryPath
string | null

Limit search to a specific directory.

topK
integer | null

Maximum number of results to return.

Response

A list of matching files with relevance scores.

matches
object[]