Labelling
Upload queries
Upload unlabelled queries as JSONL for teacher labeling.
POST
/
v1
/
labeling
/
sources
Upload queries
curl --request POST \
--url https://api.sqwish.ai/v1/labeling/sources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-ndjson' \
--data '<string>'import requests
url = "https://api.sqwish.ai/v1/labeling/sources"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/x-ndjson"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/x-ndjson'},
body: '<string>'
};
fetch('https://api.sqwish.ai/v1/labeling/sources', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"rows": 123,
"sha256": "<string>",
"input": {
"format": "json",
"sha256": "<string>",
"bytes": 123
},
"created_at": 123
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}Authorizations
Create an API key in the console.
Headers
Query Parameters
Required string length:
1 - 120Pattern:
^[^\x00-\x1f\x7f]+$Body
application/x-ndjson
One JSON object per line.
The body is of type string.
Upload queries
curl --request POST \
--url https://api.sqwish.ai/v1/labeling/sources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-ndjson' \
--data '<string>'import requests
url = "https://api.sqwish.ai/v1/labeling/sources"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/x-ndjson"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/x-ndjson'},
body: '<string>'
};
fetch('https://api.sqwish.ai/v1/labeling/sources', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"rows": 123,
"sha256": "<string>",
"input": {
"format": "json",
"sha256": "<string>",
"bytes": 123
},
"created_at": 123
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}