---
title: "Approve a proposed data read"
method: POST
path: "/v1/apps/{id}/mining/templates/{templateId}/approve"
tags: ["Apps"]
---

# Approve a proposed data read

`POST /v1/apps/{id}/mining/templates/{templateId}/approve`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/apps/{id}/mining/templates/{templateId}/approve`
- Auth: HTTP bearer

Grants the app the right to run this read and marks it `approved`. A revoked read is re-approved the same way. Approving an already approved read changes nothing. Requires the `owner` access tier on the app (a human workspace owner).

## Path parameters

- `id` string, uuid, required
- `templateId` string, uuid, required

## Response `200`

The approved read.

- AppRulesTemplate: One data read a rule-finding app may run over a source connection once approved.
  - `id` string, uuid
  - `app_id` string, uuid
  - `name` string
  - `connection_id` string, uuid
  - `sql_text` string
  - `sql_hash` string: Hex SHA-256 of the statement; a changed statement is a new read and needs a new approval.
  - `params_schema` object, nullable
  - `key_column` string
  - `columns` string[], nullable
  - `watermark_column` string, nullable
  - `max_rows` integer
  - `feature_row` boolean
  - `state` 'pending' | 'approved' | 'revoked'
  - `proposed_by` string, nullable
  - `proposed_in_round` string, uuid, nullable
  - `approved_by` string, nullable
  - `approved_at` string, date-time, nullable
  - `created_at` string, date-time

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.
- `429`: Daily rate limit exceeded.

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/apps/:id/mining/templates/:templateId/approve/post.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
