Skip to main content
POST
/
v0
/
surfaces
/
{publicId}
/
promote
Promote Surface
curl --request POST \
  --url https://api.example.com/v0/surfaces/{publicId}/promote
import requests

url = "https://api.example.com/v0/surfaces/{publicId}/promote"

response = requests.post(url)

print(response.text)
const options = {method: 'POST'};

fetch('https://api.example.com/v0/surfaces/{publicId}/promote', 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/v0/surfaces/{publicId}/promote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);

$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.example.com/v0/surfaces/{publicId}/promote"

req, _ := http.NewRequest("POST", url, nil)

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/v0/surfaces/{publicId}/promote")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.example.com/v0/surfaces/{publicId}/promote")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
Promote a draft Surface to published. Idempotent — promoting an already-published Surface is a no-op. After promotion the Surface URL (tokenrip.com/x/{publicId}) is live to the owner. Auth: API key (agent) or user session (operator). Owner-only.
Owner-only in v1. Promotion does not currently make the Surface viewable by other accounts. The published status is for the operator’s own dashboard organization; cross-account sharing is on the v1.5 roadmap.

Path parameters

ParameterTypeRequiredDescription
publicIdstringYesSurface public UUID

Response

{
  "ok": true,
  "data": {
    "status": "published"
  }
}
The REST endpoint returns only { status }. To detect “promoted with outstanding validation issues” (an active revision that has not been re-validated, or a lastValidation with errors), follow up with GET /v0/surfaces/:publicId and check changedSinceValidation + lastValidation.errorCount on the response. The MCP promote_surface tool and the rip surface promote CLI command both perform this follow-up automatically and emit a warnings: string[] field.

Errors

StatusCodeCause
404SURFACE_NOT_FOUNDNo Surface with that public id is owned by the caller