Archive the workspace
⛔ Archiving locks EVERYONE out — the caller included. The token that made this call stops working on its very next request, every ps_ key of the workspace stops authenticating, and embedded chat sessions are revoked. There is no unarchive endpoint: undoing it requires contacting support.
To confirm, send the workspace name in confirmName, exactly as it is (trimmed, case-sensitive). GET /v1/workspace returns it. A wrong or missing name is 400 CONFIRMATION_MISMATCH, and the response never echoes the real name.
OWNER on the wire only. Only a user credential reaches this route — an OAuth/MCP token, or an account key (ps_account_) — and only when that user is the workspace OWNER. Any workspace or number ps_ key gets 403 MACHINE_CREDENTIAL_CANNOT_MANAGE_WORKSPACE; ADMIN and below get 403 PERMISSION_DENIED.
Every response of this endpoint is sent with Cache-Control: no-store.
curl --request POST \
--url https://pilotstatus.com.br/v1/workspace/archive \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"confirmName": "Acme Holdings"
}
'import requests
url = "https://pilotstatus.com.br/v1/workspace/archive"
payload = { "confirmName": "Acme Holdings" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({confirmName: 'Acme Holdings'})
};
fetch('https://pilotstatus.com.br/v1/workspace/archive', 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://pilotstatus.com.br/v1/workspace/archive",
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([
'confirmName' => 'Acme Holdings'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/v1/workspace/archive"
payload := strings.NewReader("{\n \"confirmName\": \"Acme Holdings\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://pilotstatus.com.br/v1/workspace/archive")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"confirmName\": \"Acme Holdings\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/workspace/archive")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"confirmName\": \"Acme Holdings\"\n}"
response = http.request(request)
puts response.read_body{
"archived": true,
"archivedAt": "2026-11-08T12:00:00.000Z"
}Body
Was this page helpful?
curl --request POST \
--url https://pilotstatus.com.br/v1/workspace/archive \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"confirmName": "Acme Holdings"
}
'import requests
url = "https://pilotstatus.com.br/v1/workspace/archive"
payload = { "confirmName": "Acme Holdings" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({confirmName: 'Acme Holdings'})
};
fetch('https://pilotstatus.com.br/v1/workspace/archive', 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://pilotstatus.com.br/v1/workspace/archive",
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([
'confirmName' => 'Acme Holdings'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/v1/workspace/archive"
payload := strings.NewReader("{\n \"confirmName\": \"Acme Holdings\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://pilotstatus.com.br/v1/workspace/archive")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"confirmName\": \"Acme Holdings\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/workspace/archive")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"confirmName\": \"Acme Holdings\"\n}"
response = http.request(request)
puts response.read_body{
"archived": true,
"archivedAt": "2026-11-08T12:00:00.000Z"
}