curl --request POST \
--url https://api.getoneprofile.ai/assistant/actions/{proposal_id}/reject/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/assistant/actions/{proposal_id}/reject/"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getoneprofile.ai/assistant/actions/{proposal_id}/reject/', 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.getoneprofile.ai/assistant/actions/{proposal_id}/reject/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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.getoneprofile.ai/assistant/actions/{proposal_id}/reject/"
req, _ := http.NewRequest("POST", 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.post("https://api.getoneprofile.ai/assistant/actions/{proposal_id}/reject/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/assistant/actions/{proposal_id}/reject/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"applied_result": {},
"approve_label": "<string>",
"batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"decided_at": "2023-11-07T05:31:56Z",
"decided_by_display_name": "<string>",
"error": "<string>",
"grantable": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "verb",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"origin": "chat",
"price_aside": "<string>",
"price_credits": 123,
"price_label": "<string>",
"proposed_at": "2023-11-07T05:31:56Z",
"source_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source_record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "proposed",
"summary": "<string>",
"verb": "<string>",
"verb_label": "<string>",
"charged_credits": 123,
"destructive": false,
"detail": {
"kind": "text",
"after": "",
"before": "",
"landing": {
"adds": "<string>",
"table_name": "<string>",
"sample_columns": [
"<string>"
],
"sample_rows": [
[
"<string>"
]
]
},
"search": {
"record_type": "people",
"query": {}
},
"search_before": {
"record_type": "people",
"query": {}
},
"text": ""
},
"expected_credits": 123,
"loss": "<string>",
"prepared_column": {
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dependent_column_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
},
"price_per": "call",
"runs_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Reject a proposed action
Decline a proposal. Nothing runs, and the card records who said no. With dry_run, answers the card as declining it would leave it and changes nothing.
curl --request POST \
--url https://api.getoneprofile.ai/assistant/actions/{proposal_id}/reject/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/assistant/actions/{proposal_id}/reject/"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getoneprofile.ai/assistant/actions/{proposal_id}/reject/', 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.getoneprofile.ai/assistant/actions/{proposal_id}/reject/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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.getoneprofile.ai/assistant/actions/{proposal_id}/reject/"
req, _ := http.NewRequest("POST", 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.post("https://api.getoneprofile.ai/assistant/actions/{proposal_id}/reject/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/assistant/actions/{proposal_id}/reject/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"applied_result": {},
"approve_label": "<string>",
"batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"decided_at": "2023-11-07T05:31:56Z",
"decided_by_display_name": "<string>",
"error": "<string>",
"grantable": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "verb",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"origin": "chat",
"price_aside": "<string>",
"price_credits": 123,
"price_label": "<string>",
"proposed_at": "2023-11-07T05:31:56Z",
"source_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source_record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "proposed",
"summary": "<string>",
"verb": "<string>",
"verb_label": "<string>",
"charged_credits": 123,
"destructive": false,
"detail": {
"kind": "text",
"after": "",
"before": "",
"landing": {
"adds": "<string>",
"table_name": "<string>",
"sample_columns": [
"<string>"
],
"sample_rows": [
[
"<string>"
]
]
},
"search": {
"record_type": "people",
"query": {}
},
"search_before": {
"record_type": "people",
"query": {}
},
"text": ""
},
"expected_credits": 123,
"loss": "<string>",
"prepared_column": {
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dependent_column_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
},
"price_per": "call",
"runs_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
Path Parameters
Query Parameters
Report what would happen, and change nothing.
Response
Successful Response
One action the assistant proposed or applied, and what became of it: the card.
Prices are quoted in credits, never tenths, and never as a raw id: who
decided is a display name resolved at this boundary. applied_result
is the verb's own record of what it made (the new column's id, the rows
enrolled), which is what the card links to.
The verb's or tool's own record of what it made; null until applied. A tool card carries content (what the assistant read back), link (an app path to the thing), link_label (its name), entity_id, opens (whether the page should go to the link when this lands) and made (what was created, for the AI-made mark), plus any facts the tool added.
What the Approve button says: "Approve", or with the most it spends, "Approve · up to 8 credits", or with a flat price, "Approve · 8 credits", or per day, "Approve · up to 145 credits a day".
Cards the assistant raised together in one reply share this, so they can be shown and approved as a group. Null for a card raised on its own.
Why an approval failed to apply, in plain words; null otherwise.
Whether the card may offer Approve and allow in this conversation: only a pending proposal of a verb that is not a send.
verb for one of the eight workspace actions, tool for an API operation the assistant asked to call on your behalf.
verb, tool Which surface raised a proposal.
Kept as its own enum rather than reusing the thread-store origins: a scheduled search proposes with no conversation behind it at all, and the activity feed needs to say so.
chat, agent, scheduled_search, table_assistant What a waiting card says beside its Approve button, when the button does not say it all: "usually about 24", "Free", "Free to build · sending about 45 credits". Null when the button says everything.
The published price of the operation when it was proposed, in credits; null when free.
What the card says it costs: "Free", or the most it can spend, "Up to 16.5 credits"; for a run charged by use, "Up to 65 credits · usually about 24"; for a flat price (a run of enrichments that each have one price), the one figure, "2,800 credits"; once that run has ended, "Charged 23.8 credits"; and for a card priced per day, "Up to 145 credits a day", before and after it is approved.
The agent column whose run raised the card; null for every other origin. What puts a card on its table's page when its arguments name a sequence or a destination instead of the table.
The row the agent was working on when it raised the card; null otherwise.
Where one proposed action stands.
PROPOSED waits on a person. APPLIED happened. DISMISSED is a person saying no. FAILED is an approval whose apply raised; the error stays with the row so the card can say why instead of vanishing.
UNDONE is HISTORY ONLY. Nothing reaches it any more: undo was taken out while the assistant moved from eight hand-written verbs to any route it may call, because reversing an arbitrary write is per-route work nobody has done yet. The member stays because rows in this state were written before that, and a status the code cannot read is an activity feed that raises instead of loading.
proposed, applied, undone, dismissed, failed What the card proposes: one of the eight workspace verbs, or the name of an API operation the assistant asked to call. kind says which.
What the run this card started was charged, in credits, once it finished. Null until then, and for every card that starts no run.
Whether approving this removes something. A destructive card is drawn apart from the safe ones, is never offered a standing grant, and is listed on its own in the confirm an Approve all opens.
What the card shows under its summary, when one line is not enough to decide on: a prompt being rewritten, an email being reworded. Null for most cards, which say it all in the summary.
Show child attributes
Show child attributes
What the run usually costs, in credits, read from what the same kind of cell has been charged before; equal to price_credits for a flat price, which the card then says as one figure. Null for a card whose price is the whole story.
What approving a destructive card takes away, and whether it comes back, in one sentence; null when nothing is removed.
The column this card created before it was decided, so it can be opened from the card while it waits. Null for every other card. Approving runs the column; dismissing removes it, because adding it and running it were one decision.
Show child attributes
Show child attributes
What price_credits is the price of. call: the most approving this card may spend, once. day: the card starts something that keeps spending by itself (no tool raises one today), and price_credits is the most one day may cost ("Approve · up to 145 credits a day"). A total of several cards, such as Approve all's, leaves a day card out of its one-off sum.
call, day The column approving this card runs, while the card waits: the one it added, or one already on the table that it names. Lets the column's own panel approve this card instead of starting a second run. Null for a card that runs no column, and once the card is decided.
Was this page helpful?