API Reference
Redaction Presets
The built-in redaction specs that the ‘preset’ form field names.
GET
/
api
/
v1
/
redact
/
presets
Redaction Presets
import requests
url = "https://www.datalab.to/api/v1/redact/presets"
response = requests.get(url)
print(response.text)curl --request GET \
--url https://www.datalab.to/api/v1/redact/presetsconst options = {method: 'GET'};
fetch('https://www.datalab.to/api/v1/redact/presets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.datalab.to/api/v1/redact/presets"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Response
200 - application/json
Successful Response
Was this page helpful?
⌘I
Redaction Presets
import requests
url = "https://www.datalab.to/api/v1/redact/presets"
response = requests.get(url)
print(response.text)curl --request GET \
--url https://www.datalab.to/api/v1/redact/presetsconst options = {method: 'GET'};
fetch('https://www.datalab.to/api/v1/redact/presets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.datalab.to/api/v1/redact/presets"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}