curl --request GET \
--url https://melso.ai/api/secret-requests \
--header 'Authorization: Bearer <token>'import requests
url = "https://melso.ai/api/secret-requests"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://melso.ai/api/secret-requests', 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/secret-requests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://melso.ai/api/secret-requests"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://melso.ai/api/secret-requests")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://melso.ai/api/secret-requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"requests": [
{
"id": "<string>",
"kind": "<string>",
"status": "<string>",
"prefill": {
"name": "<string>",
"env_name": "<string>",
"url": "<string>",
"username": "<string>",
"cardholder": "<string>",
"note": "<string>"
},
"share": "<string>",
"area_ids": [
"<string>"
],
"workspace_name": "<string>",
"owner_name": "<string>",
"expires_at": "<string>",
"requested_by": "<string>",
"created_at": "<string>",
"task": {
"id": "<string>",
"identifier": "<string>",
"title": "<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>"
}List vault requests
Workspace member or Run token. Returns only the caller’s own requests; for a Run, those of the member who started it.
Request: None.
Response: {requests:OpenVaultRequest[]}, newest first: every request the caller has not answered yet. Each is a VaultRequestView plus requested_by (member, run or agent), created_at and task ({id,identifier,title} for the Task that waits, or null for a chat’s request or a Task the caller can no longer open). expires_at is empty except for a public link a chat got before requests needed sign-in; such a request leaves the list when its hour ends.
Status: 200; 503 vault unavailable. Authentication and resource-access errors follow Overview.
curl --request GET \
--url https://melso.ai/api/secret-requests \
--header 'Authorization: Bearer <token>'import requests
url = "https://melso.ai/api/secret-requests"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://melso.ai/api/secret-requests', 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/secret-requests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://melso.ai/api/secret-requests"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://melso.ai/api/secret-requests")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://melso.ai/api/secret-requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"requests": [
{
"id": "<string>",
"kind": "<string>",
"status": "<string>",
"prefill": {
"name": "<string>",
"env_name": "<string>",
"url": "<string>",
"username": "<string>",
"cardholder": "<string>",
"note": "<string>"
},
"share": "<string>",
"area_ids": [
"<string>"
],
"workspace_name": "<string>",
"owner_name": "<string>",
"expires_at": "<string>",
"requested_by": "<string>",
"created_at": "<string>",
"task": {
"id": "<string>",
"identifier": "<string>",
"title": "<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.
Response
{requests:OpenVaultRequest[]}, newest first: every request the caller has not answered yet. Each is a VaultRequestView plus requested_by (member, run or agent), created_at and task ({id,identifier,title} for the Task that waits, or null for a chat's request or a Task the caller can no longer open). expires_at is empty except for a public link a chat got before requests needed sign-in; such a request leaves the list when its hour ends.
Show child attributes
Show child attributes