Approve Submission
curl --request POST \
--url https://api.example.com/api/bounties/{id}/approve \
--header 'Content-Type: application/json' \
--data '
{
"review_notes": "<string>"
}
'import requests
url = "https://api.example.com/api/bounties/{id}/approve"
payload = { "review_notes": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({review_notes: '<string>'})
};
fetch('https://api.example.com/api/bounties/{id}/approve', 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.example.com/api/bounties/{id}/approve",
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([
'review_notes' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://api.example.com/api/bounties/{id}/approve"
payload := strings.NewReader("{\n \"review_notes\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.example.com/api/bounties/{id}/approve")
.header("Content-Type", "application/json")
.body("{\n \"review_notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/bounties/{id}/approve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"review_notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyBounties
Approve Submission
Approve a bounty submission and trigger token payout via transferFrom.
POST
/
api
/
bounties
/
{id}
/
approve
Approve Submission
curl --request POST \
--url https://api.example.com/api/bounties/{id}/approve \
--header 'Content-Type: application/json' \
--data '
{
"review_notes": "<string>"
}
'import requests
url = "https://api.example.com/api/bounties/{id}/approve"
payload = { "review_notes": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({review_notes: '<string>'})
};
fetch('https://api.example.com/api/bounties/{id}/approve', 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.example.com/api/bounties/{id}/approve",
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([
'review_notes' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://api.example.com/api/bounties/{id}/approve"
payload := strings.NewReader("{\n \"review_notes\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.example.com/api/bounties/{id}/approve")
.header("Content-Type", "application/json")
.body("{\n \"review_notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/bounties/{id}/approve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"review_notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyRequires authentication. Founder only.
transferFrom from the founder’s wallet to the contributor’s wallet (minus platform fee). The founder must have sufficient token balance and ERC-20 allowance.
string
required
Bounty ID to approve.
Request
string
Optional review notes.
Example
curl -X POST https://api.shipyardprotocol.com/api/bounties/bnt_x1y2z3/approve \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"review_notes": "Clean implementation, well tested."}'
Response
200
{
"bounty_id": "bnt_x1y2z3",
"status": "done",
"submission_id": "sub_p1q2r3",
"contributor_tx_hash": "0xabc...",
"platform_fee_tx_hash": "0xdef..."
}
Errors
| Status | Description |
|---|---|
| 400 | Bounty not in in_review status, no pending submission, contributor has no wallet, or founder has insufficient balance/allowance |
| 403 | Not the project founder |
| 409 | Approval already in progress |
| 502 | On-chain payout failed (submission resets for retry) |
| 503 | Payouts disabled by operator |
⌘I

