Skip to main content
POST
Approving through the API carries out the worker’s action as if a person clicked Approve in Heliyos: the email is sent, the deal is changed, the meeting is booked. It cannot be undone. Read the review with Get a review first, and approve only what a person has confirmed.
In the Heliyos MCP server: heliyos_reviews_decide.

Authorizations

Authorization
string
header
required

A workspace API key, sent as Authorization: Bearer heliyos_.... Create one in Heliyos under Settings → API keys. A key acts as a workspace admin in the one workspace it was created in.

Path Parameters

id
string
required

The review's id.

Pattern: ^[0-9a-fA-F]{24}$

Body

application/json
decision
enum<string>
required

approved carries out the action. rejected drops it.

Available options:
approved,
rejected
Example:

"approved"

comment
string | null

A note kept on the review, up to 5,000 characters. Empty or null stores nothing.

Maximum string length: 5000
Example:

"Confirmed with Dana by phone."

feedback
string | null

What to tell the worker, up to 5,000 characters: why you rejected it, what to change, or your answer to a question (kind: question). Empty or null sends nothing.

Maximum string length: 5000
Example:

"Hold the email until legal signs off on the discount."

data
object

deal_update, approving only: the deal's fields to write, as field key to value. Replaces the worker's proposed fields, so include every field you want written. Validated against the deal's object. Omit to write the proposal as it is.

Example:
relationships
string[]

deal_update, approving only: ids of the company and people records to link to the deal, up to 500. Omit, or send an empty list, to keep the links the worker proposed.

Maximum array length: 500

A 24-character hexadecimal id.

Pattern: ^[0-9a-fA-F]{24}$
schemaId
string

deal_update creating a deal, approving only: the pipeline (deal object) to create it in. Defaults to the one the worker proposed. Must be a deal object of this workspace.

Pattern: ^[0-9a-fA-F]{24}$
Example:

"66f1a8c3e4b0a1b2c3d4e5f6"

args
object

A paused action, approving only: the arguments you changed, by name, as in proposal.args. They are merged over the worker's arguments, so send only what changes.

Example:

Response

The decision and the review after it.

meta
object
required
data
object
required