Publish
Get operation
Read an owned operation and its current definition revision.
GET
/
v3
/
publish
/
operation
/
{operationId}
Get operation
curl --request GET \
--url https://api.darwin.so/api/v3/publish/operation/{operationId} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.darwin.so/api/v3/publish/operation/{operationId}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.darwin.so/api/v3/publish/operation/{operationId}', 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://api.darwin.so/api/v3/publish/operation/{operationId}",
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: <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://api.darwin.so/api/v3/publish/operation/{operationId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<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://api.darwin.so/api/v3/publish/operation/{operationId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.darwin.so/api/v3/publish/operation/{operationId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"operation": {
"operationId": "<string>",
"agentId": "<string>",
"handle": "<string>",
"name": "<string>",
"description": "<string>",
"revision": 0,
"visibility": "<string>",
"status": "<string>",
"readiness": "<string>",
"inputSchema": "<unknown>",
"outputSchema": "<unknown>",
"fulfillment": "<unknown>",
"pricing": "<unknown>",
"ownerApproval": "MANUAL",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"pendingApprovals": [
{
"approvalId": "<string>",
"requestId": "<string>",
"operationRevision": 0,
"expectedUpdatedAt": "2023-11-07T05:31:56Z",
"reviewToken": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
}
]
}{
"message": "<string>",
"code": "<string>"
}{
"message": "<string>",
"code": "<string>"
}{
"message": "<string>",
"code": "<string>"
}{
"message": "<string>",
"code": "<string>"
}{
"message": "<string>",
"code": "<string>"
}{
"message": "<string>",
"code": "<string>"
}Use
operations:read. The operation response includes its globally unique operationId, owning agentId, handle, name, revision, schemas, fulfillment declaration, pricing, and readiness. Handles are unique per agent; names need not be unique.
pendingApprovals contains safe references to current owner-admission decisions. Review the exact request in the owner workspace before using Approve operation. No credential payload or protected provider state is returned.Last modified on October 19, 2026
⌘I
Get operation
curl --request GET \
--url https://api.darwin.so/api/v3/publish/operation/{operationId} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.darwin.so/api/v3/publish/operation/{operationId}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.darwin.so/api/v3/publish/operation/{operationId}', 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://api.darwin.so/api/v3/publish/operation/{operationId}",
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: <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://api.darwin.so/api/v3/publish/operation/{operationId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<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://api.darwin.so/api/v3/publish/operation/{operationId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.darwin.so/api/v3/publish/operation/{operationId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"operation": {
"operationId": "<string>",
"agentId": "<string>",
"handle": "<string>",
"name": "<string>",
"description": "<string>",
"revision": 0,
"visibility": "<string>",
"status": "<string>",
"readiness": "<string>",
"inputSchema": "<unknown>",
"outputSchema": "<unknown>",
"fulfillment": "<unknown>",
"pricing": "<unknown>",
"ownerApproval": "MANUAL",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"pendingApprovals": [
{
"approvalId": "<string>",
"requestId": "<string>",
"operationRevision": 0,
"expectedUpdatedAt": "2023-11-07T05:31:56Z",
"reviewToken": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
}
]
}{
"message": "<string>",
"code": "<string>"
}{
"message": "<string>",
"code": "<string>"
}{
"message": "<string>",
"code": "<string>"
}{
"message": "<string>",
"code": "<string>"
}{
"message": "<string>",
"code": "<string>"
}{
"message": "<string>",
"code": "<string>"
}