Grep Space Pages
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/spaces/grep \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"pattern": "<string>",
"address": "<string>",
"regex": false,
"ignore_case": false,
"context": 0,
"paths_only": false,
"limit": 50
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/spaces/grep"
payload = {
"pattern": "<string>",
"address": "<string>",
"regex": False,
"ignore_case": False,
"context": 0,
"paths_only": False,
"limit": 50
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
pattern: '<string>',
address: '<string>',
regex: false,
ignore_case: false,
context: 0,
paths_only: false,
limit: 50
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/spaces/grep', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"mode": "<string>",
"data": [
{
"line": 123,
"text": "<string>",
"address": "<string>",
"id": "<string>",
"title": "<string>",
"text_truncated": true,
"before": [
{
"line": 123,
"text": "<string>",
"text_truncated": true
}
],
"after": [
{
"line": 123,
"text": "<string>",
"text_truncated": true
}
]
}
],
"has_more": true,
"object": "grep_result",
"hint": "<string>"
}Spaces
Grep Space Pages
Find the lines matching a literal string or a regular expression across your spaces.
POST
/
api
/
v1
/
spaces
/
grep
Grep Space Pages
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/spaces/grep \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"pattern": "<string>",
"address": "<string>",
"regex": false,
"ignore_case": false,
"context": 0,
"paths_only": false,
"limit": 50
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/spaces/grep"
payload = {
"pattern": "<string>",
"address": "<string>",
"regex": False,
"ignore_case": False,
"context": 0,
"paths_only": False,
"limit": 50
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
pattern: '<string>',
address: '<string>',
regex: false,
ignore_case: false,
context: 0,
paths_only: false,
limit: 50
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/spaces/grep', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"mode": "<string>",
"data": [
{
"line": 123,
"text": "<string>",
"address": "<string>",
"id": "<string>",
"title": "<string>",
"text_truncated": true,
"before": [
{
"line": 123,
"text": "<string>",
"text_truncated": true
}
],
"after": [
{
"line": 123,
"text": "<string>",
"text_truncated": true
}
]
}
],
"has_more": true,
"object": "grep_result",
"hint": "<string>"
}Body
application/json
