Skip to main content
POST
/
api
/
v1
/
custom_pipelines
/
describe
Describe Customizer
import requests

url = "https://www.datalab.to/api/v1/custom_pipelines/describe"

payload = { "messages": [{ "content": "<string>" }] }
headers = {
    "X-API-Key": "<api-key>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
curl --request POST \
--url https://www.datalab.to/api/v1/custom_pipelines/describe \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"messages": [
{
"content": "<string>"
}
]
}
'
const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({messages: [{content: '<string>'}]})
};

fetch('https://www.datalab.to/api/v1/custom_pipelines/describe', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://www.datalab.to/api/v1/custom_pipelines/describe"

payload := strings.NewReader("{\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ]\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
{
  "message": "<string>",
  "proposed_description": "<string>"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Authorizations

X-API-Key
string
header
required

Cookies

wos-session
string
datalab_active_team
string

Body

application/json

Request for the customizer description chat endpoint.

messages
ChatMessage · object[]
required
Maximum array length: 10

Response

Successful Response

Response from the customizer description chat endpoint.

message
string
required

Assistant's response text

proposed_description
string | null

Non-null when the system has enough conviction to propose a processor description