curl --request POST \
--url https://melso.ai/api/secret-requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"kind": "login",
"url": "dashboard.stripe.com",
"username": "ops@example.com",
"note": "Download monthly payouts"
}
'import requests
url = "https://melso.ai/api/secret-requests"
payload = {
"kind": "login",
"url": "dashboard.stripe.com",
"username": "ops@example.com",
"note": "Download monthly payouts"
}
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({
kind: 'login',
url: 'dashboard.stripe.com',
username: 'ops@example.com',
note: 'Download monthly payouts'
})
};
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 => "POST",
CURLOPT_POSTFIELDS => json_encode([
'kind' => 'login',
'url' => 'dashboard.stripe.com',
'username' => 'ops@example.com',
'note' => 'Download monthly payouts'
]),
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/secret-requests"
payload := strings.NewReader("{\n \"kind\": \"login\",\n \"url\": \"dashboard.stripe.com\",\n \"username\": \"ops@example.com\",\n \"note\": \"Download monthly payouts\"\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/secret-requests")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"kind\": \"login\",\n \"url\": \"dashboard.stripe.com\",\n \"username\": \"ops@example.com\",\n \"note\": \"Download monthly payouts\"\n}")
.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::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"kind\": \"login\",\n \"url\": \"dashboard.stripe.com\",\n \"username\": \"ops@example.com\",\n \"note\": \"Download monthly payouts\"\n}"
response = http.request(request)
puts response.read_body{
"request": {
"id": "<string>",
"kind": "<string>"
},
"url": "<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>"
}Create vault request
Workspace member, or the Run token of an active Run. The saved item belongs to the caller; for a Run, to the member who started it.
Request: kind (login, card, text or file) and optional non-secret prefill: name, env_name, url, username, cardholder, note (at most 500 characters, shown on the request), share, area_ids. A text request needs its variable name in name or env_name; a file request needs env_name.
Response: {request:{id,kind},url:string}. url is https://<app>/settings?tab=vault&request=<id>&workspace_id=<id>: it opens the request in the caller’s Settings → Secrets once they are signed in, and never expires.
Status: 201; 400 invalid input; 403 Run token without an active Run; 503 vault unavailable. Authentication and resource-access errors follow Overview.
curl --request POST \
--url https://melso.ai/api/secret-requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"kind": "login",
"url": "dashboard.stripe.com",
"username": "ops@example.com",
"note": "Download monthly payouts"
}
'import requests
url = "https://melso.ai/api/secret-requests"
payload = {
"kind": "login",
"url": "dashboard.stripe.com",
"username": "ops@example.com",
"note": "Download monthly payouts"
}
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({
kind: 'login',
url: 'dashboard.stripe.com',
username: 'ops@example.com',
note: 'Download monthly payouts'
})
};
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 => "POST",
CURLOPT_POSTFIELDS => json_encode([
'kind' => 'login',
'url' => 'dashboard.stripe.com',
'username' => 'ops@example.com',
'note' => 'Download monthly payouts'
]),
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/secret-requests"
payload := strings.NewReader("{\n \"kind\": \"login\",\n \"url\": \"dashboard.stripe.com\",\n \"username\": \"ops@example.com\",\n \"note\": \"Download monthly payouts\"\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/secret-requests")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"kind\": \"login\",\n \"url\": \"dashboard.stripe.com\",\n \"username\": \"ops@example.com\",\n \"note\": \"Download monthly payouts\"\n}")
.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::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"kind\": \"login\",\n \"url\": \"dashboard.stripe.com\",\n \"username\": \"ops@example.com\",\n \"note\": \"Download monthly payouts\"\n}"
response = http.request(request)
puts response.read_body{
"request": {
"id": "<string>",
"kind": "<string>"
},
"url": "<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.