curl --request POST \
--url https://melso.ai/api/tasks/{id}/input \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "Include operating costs.",
"client_request_id": "8b2f6c1e-4a7d-4f5e-9c3b-1d2e3f4a5b6c"
}
'import requests
url = "https://melso.ai/api/tasks/{id}/input"
payload = {
"content": "Include operating costs.",
"client_request_id": "8b2f6c1e-4a7d-4f5e-9c3b-1d2e3f4a5b6c"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
content: 'Include operating costs.',
client_request_id: '8b2f6c1e-4a7d-4f5e-9c3b-1d2e3f4a5b6c'
})
};
fetch('https://melso.ai/api/tasks/{id}/input', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://melso.ai/api/tasks/{id}/input",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'content' => 'Include operating costs.',
'client_request_id' => '8b2f6c1e-4a7d-4f5e-9c3b-1d2e3f4a5b6c'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://melso.ai/api/tasks/{id}/input"
payload := strings.NewReader("{\n \"content\": \"Include operating costs.\",\n \"client_request_id\": \"8b2f6c1e-4a7d-4f5e-9c3b-1d2e3f4a5b6c\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}HttpResponse<String> response = Unirest.post("https://melso.ai/api/tasks/{id}/input")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"content\": \"Include operating costs.\",\n \"client_request_id\": \"8b2f6c1e-4a7d-4f5e-9c3b-1d2e3f4a5b6c\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://melso.ai/api/tasks/{id}/input")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content\": \"Include operating costs.\",\n \"client_request_id\": \"8b2f6c1e-4a7d-4f5e-9c3b-1d2e3f4a5b6c\"\n}"
response = http.request(request)
puts response.read_body{
"message_id": "<string>",
"run_id": "<string>",
"queued": true,
"attachment_ids": [
"<string>"
],
"created_at": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Send task input
Workspace member with access to this resource.
Request: content:string required (not blank, no NUL characters), attachment_ids?:UUID[], client_request_id?:UUID, fresh_session?:boolean, max_attempts?:1. Task path must be a UUID. The JSON body is limited to 1 MiB, and unknown fields are rejected.
Response: TaskInputResponse.
Status: 201, also for a replay; 400 blank or invalid content, an unknown field or a field of the wrong type, max_attempts other than 1, or a client_request_id that is not a UUID; 413 body over 1 MiB; 409 cancelled Task, missing execution settings, or a client_request_id already used with a different payload ("code":"client_request_conflict"). Authentication and resource-access errors follow Overview.
curl --request POST \
--url https://melso.ai/api/tasks/{id}/input \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "Include operating costs.",
"client_request_id": "8b2f6c1e-4a7d-4f5e-9c3b-1d2e3f4a5b6c"
}
'import requests
url = "https://melso.ai/api/tasks/{id}/input"
payload = {
"content": "Include operating costs.",
"client_request_id": "8b2f6c1e-4a7d-4f5e-9c3b-1d2e3f4a5b6c"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
content: 'Include operating costs.',
client_request_id: '8b2f6c1e-4a7d-4f5e-9c3b-1d2e3f4a5b6c'
})
};
fetch('https://melso.ai/api/tasks/{id}/input', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://melso.ai/api/tasks/{id}/input",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'content' => 'Include operating costs.',
'client_request_id' => '8b2f6c1e-4a7d-4f5e-9c3b-1d2e3f4a5b6c'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://melso.ai/api/tasks/{id}/input"
payload := strings.NewReader("{\n \"content\": \"Include operating costs.\",\n \"client_request_id\": \"8b2f6c1e-4a7d-4f5e-9c3b-1d2e3f4a5b6c\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}HttpResponse<String> response = Unirest.post("https://melso.ai/api/tasks/{id}/input")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"content\": \"Include operating costs.\",\n \"client_request_id\": \"8b2f6c1e-4a7d-4f5e-9c3b-1d2e3f4a5b6c\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://melso.ai/api/tasks/{id}/input")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content\": \"Include operating costs.\",\n \"client_request_id\": \"8b2f6c1e-4a7d-4f5e-9c3b-1d2e3f4a5b6c\"\n}"
response = http.request(request)
puts response.read_body{
"message_id": "<string>",
"run_id": "<string>",
"queued": true,
"attachment_ids": [
"<string>"
],
"created_at": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
Company API key (mwk_) or personal access token (mel_). A PAT requires X-Workspace-ID on company-scoped routes. An API key implies its own company.
Headers
Company UUID for a personal token on company-scoped operations. A company API key already binds its company.
Path Parameters
id from the corresponding authorized response.
Body
Show child attributes
Show child attributes
At most 10 servers with unique, non-reserved names. Each server uses exactly one of a remote HTTPS url or a stdio command. headers belong to remote servers; args and env belong to stdio servers. The encrypted set is limited to 64 KiB; the server rejects a larger sealed set with HTTP 413. This encrypted-size limit cannot be measured as JSON character count. Header and environment values are write-only; GET returns McpServerSummary objects.
10Show child attributes
Show child attributes