Query Structured File
curl --request POST \
--url https://api.zerodrive.dev/v1/primitives/query \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>",
"where": {},
"select": [
"<string>"
],
"limit": 100
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: '<string>', where: {}, select: ['<string>'], limit: 100})
};
fetch('https://api.zerodrive.dev/v1/primitives/query', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/primitives/query"
payload = {
"path": "<string>",
"where": {},
"select": ["<string>"],
"limit": 100
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Query Structured File
Query rows, JSON pointers, Markdown sections, or YAML keys inside a structured file.
POST
https://api.zerodrive.dev
/
v1
/
primitives
/
query
Query Structured File
curl --request POST \
--url https://api.zerodrive.dev/v1/primitives/query \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>",
"where": {},
"select": [
"<string>"
],
"limit": 100
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: '<string>', where: {}, select: ['<string>'], limit: 100})
};
fetch('https://api.zerodrive.dev/v1/primitives/query', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/primitives/query"
payload = {
"path": "<string>",
"where": {},
"select": ["<string>"],
"limit": 100
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}
