List Operations
curl --request GET \
--url https://composer.personal.ai/lab/api/v1/operations \
--header 'x-api-key: <x-api-key>'import requests
url = "https://composer.personal.ai/lab/api/v1/operations"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://composer.personal.ai/lab/api/v1/operations', 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://composer.personal.ai/lab/api/v1/operations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>"
],
]);
$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://composer.personal.ai/lab/api/v1/operations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://composer.personal.ai/lab/api/v1/operations")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://composer.personal.ai/lab/api/v1/operations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"name": "<string>",
"description": "<string>",
"input_schema": {},
"output_schema": {},
"mutates": true
}Composer API Basics
List Operations
List every operation, with its input and output schemas
GET
/
lab
/
api
/
v1
/
operations
List Operations
curl --request GET \
--url https://composer.personal.ai/lab/api/v1/operations \
--header 'x-api-key: <x-api-key>'import requests
url = "https://composer.personal.ai/lab/api/v1/operations"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://composer.personal.ai/lab/api/v1/operations', 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://composer.personal.ai/lab/api/v1/operations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>"
],
]);
$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://composer.personal.ai/lab/api/v1/operations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://composer.personal.ai/lab/api/v1/operations")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://composer.personal.ai/lab/api/v1/operations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"name": "<string>",
"description": "<string>",
"input_schema": {},
"output_schema": {},
"mutates": true
}Overview
Returns every operation available, with a description and JSON Schemas (draft 2020-12) for its input and output. Use it to discover operations beyond the ones in this reference.Member keys can’t list operations.
Authorization
Response
An array of operations:Example Success Response
[
{
"name": "agent.get",
"description": "Fetch one agent by slug. ...",
"input_schema": {
"type": "object",
"properties": { "slug": { "type": "string" } },
"required": ["slug"]
},
"output_schema": { "type": "object" },
"mutates": false
}
]
Example cURL
cURL
curl 'https://composer.personal.ai/lab/api/v1/operations' \
--header 'x-api-key: <your-api-key>'