> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.athenaintel.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.athenaintel.com/_mcp/server.

# Decide approval

POST https://api.athenaintel.com/api/v0/approvals/{approval_id}/decide
Content-Type: application/json

Record the caller's decision on an active approval; the waiting run resumes once the mode's aggregation settles it. The caller must be one of the approval's listed approvers and still satisfy the selector that named them, and may not decide what they published or started unless the step allows self-approval. An edited_payload is accepted only against the approval's editable_schema; a standing request only when the approval's gate allows standing grants, on an approving option (otherwise 400 with detail.reason standing_not_allowed). Every refusal carries detail.reason with the decision service's code. Where the installation enforces passkey checks, an approve needs a check covering this decision in the X-Athena-Decision-Check header (otherwise 403 with detail.reason decision_check_required), and the person's device key may then decide with one.

Reference: https://docs.athenaintel.com/api-reference/approvals/decide

## Authentication

- `X-API-KEY` header (required) — API Key authentication via header

## Request

### Path parameters

- `approval_id` (string, required) — Unique identifier of the approval

### Body (application/json)

This endpoint expects an ApprovalDecideRequestIn.

- `option` (string, required) — One of the options the approval offered (e.g. approve, reject)
- `edited_payload` (map from string to any, optional, nullable) — The edited subject, when the approval allows edits
- `note` (string, optional, nullable) — A note recorded with the decision
- `standing` (StandingGrantIn, optional, nullable) — A standing-grant request; refused with detail.reason standing_not_allowed unless the approval's gate allows standing grants, and only with an approving option

## Response

### 200

Decision recorded

- `approval_id` (string, required)
- `decided_by` (string, required) — Principal ref of the decider
- `decision_id` (string, required)
- `grant_id` (string, required, nullable) — The approval grant written with a settling decision
- `outcome` (string, required, nullable) — The aggregated result when this decision settled the approval
- `settled` (boolean, required) — Whether this decision settled the approval (the run resumes)
- `state` (string, required) — The approval's state after the decision

## Errors

### 400 Bad Request Error

Unknown option, an edit the approval does not accept or that fails its schema, a standing request the step does not allow, or a subject not decidable here

- `detail` (ApprovalErrorDetailOut, required) — ``detail`` of a coded approval refusal.

### 403 Forbidden Error

The Automations gate denied, the caller may not decide this approval (not an approver, separation of duties, membership lapsed), or approving needs a passkey check (decision_check_required)

- `Decide_approval_public_api_v0_approvals__approval_id__decide_postRequestForbiddenError`
  - ApprovalErrorOut: ApprovalErrorOut
  - AutomationsUnavailableErrorOut: AutomationsUnavailableErrorOut

### 404 Not Found Error

Approval not found

- `message` (string, required)

### 409 Conflict Error

The approval is no longer active

- `detail` (ApprovalErrorDetailOut, required) — ``detail`` of a coded approval refusal.

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

### 503 Service Unavailable Error

Decision recorded but the waiting run could not be told, or a passkey check could not be verified now (decision_check_unavailable)

- `detail` (ApprovalErrorDetailOut, required) — ``detail`` of a coded approval refusal.

## Types

### StandingGrantIn

Approve once for a while.

- `duration` (string, required) — How long the grant runs, e.g. 7d or 36h

### ApprovalErrorDetailOut

``detail`` of a coded approval refusal.

- `code` (enum, required)
  - Allowed values: `APPROVAL_DENIED`, `APPROVAL_NOT_ACTIVE`, `APPROVAL_REFUSED`, `APPROVAL_RESUME_FAILED`
- `message` (string, required)
- `reason` (string, required) — The decision service's stable code

### ApprovalErrorOut

Body of a coded approval refusal.

- `detail` (ApprovalErrorDetailOut, required) — ``detail`` of a coded approval refusal.

### AutomationsUnavailableErrorOut

Body of the 403 the Automations gate returns.

- `detail` (AutomationsDenialDetailOut, required) — ``detail`` of the 403 the Automations gate returns.

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `ctx` (ValidationErrorCtx, optional)
- `input` (any, optional)

### AutomationsDenialDetailOut

``detail`` of the 403 the Automations gate returns.

- `hint` (string, required) — The next step that lifts the denial
- `message` (string, required) — Human-readable denial
- `reason` (enum, required) — Which of the gate's three checks failed: the deployment has Automations off, the caller is not a member of the workspace, or the workspace is not enrolled
  - Allowed values: `not_provisioned`, `not_permitted`, `workspace_not_enrolled`
- `code` ("AUTOMATIONS_UNAVAILABLE", optional, default: AUTOMATIONS_UNAVAILABLE) — Stable code for a denial by the Automations gate

### ValidationErrorLocItems

- string
- integer

### ValidationErrorCtx

## Examples

**Request**

```json
{
  "option": "approve",
  "note": "Reviewed the exceptions list."
}
```

**Response**

```json
{
  "approval_id": "string",
  "decided_by": "string",
  "decision_id": "string",
  "grant_id": "string",
  "outcome": "string",
  "settled": true,
  "state": "string"
}
```

**SDK Code**

```python
import requests

url = "https://api.athenaintel.com/api/v0/approvals/approval_id/decide"

payload = {
    "option": "approve",
    "note": "Reviewed the exceptions list."
}
headers = {
    "X-API-KEY": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.athenaintel.com/api/v0/approvals/approval_id/decide';
const options = {
  method: 'POST',
  headers: {'X-API-KEY': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"option":"approve","note":"Reviewed the exceptions list."}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.athenaintel.com/api/v0/approvals/approval_id/decide"

	payload := strings.NewReader("{\n  \"option\": \"approve\",\n  \"note\": \"Reviewed the exceptions list.\"\n}")

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

	req.Header.Add("X-API-KEY", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.athenaintel.com/api/v0/approvals/approval_id/decide")

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

request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"option\": \"approve\",\n  \"note\": \"Reviewed the exceptions list.\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.athenaintel.com/api/v0/approvals/approval_id/decide")
  .header("X-API-KEY", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"option\": \"approve\",\n  \"note\": \"Reviewed the exceptions list.\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.athenaintel.com/api/v0/approvals/approval_id/decide', [
  'body' => '{
  "option": "approve",
  "note": "Reviewed the exceptions list."
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-API-KEY' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.athenaintel.com/api/v0/approvals/approval_id/decide");
var request = new RestRequest(Method.POST);
request.AddHeader("X-API-KEY", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"option\": \"approve\",\n  \"note\": \"Reviewed the exceptions list.\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-API-KEY": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "option": "approve",
  "note": "Reviewed the exceptions list."
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.athenaintel.com/api/v0/approvals/approval_id/decide")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```