> For the complete documentation index, see [llms.txt](https://123-87.gitbook.io/signgate-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://123-87.gitbook.io/signgate-api/language/overview.md).

# 繁體中文 API 參考

Public API 只有兩個操作：建立 policy decision，以及 atomically consume 一個 `ALLOW`。

{% hint style="info" %}
**Primary constraint:** Public API 不提供 production execution。
{% endhint %}

## Base URL

```
$SIGNGATE_BASE_URL
```

使用 authorized integration 提供的 Preview execution environment URL。

## 驗證

```http
Authorization: Bearer <SIGNGATE_API_KEY>
```

## Endpoints

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>建立 decision</strong></td><td>POST /v1/decisions</td><td><a href="https://github.com/lukekwan/agent-payment-guard/tree/docs/doc-sg-001-api-docs/docs/gitbook/public/zh-TW/api-reference/create-decision.md">https://github.com/lukekwan/agent-payment-guard/tree/docs/doc-sg-001-api-docs/docs/gitbook/public/zh-TW/api-reference/create-decision.md</a></td></tr><tr><td><strong>Consume ALLOW</strong></td><td>POST /v1/decisions/{decision_id}/consume</td><td><a href="https://github.com/lukekwan/agent-payment-guard/tree/docs/doc-sg-001-api-docs/docs/gitbook/public/zh-TW/api-reference/consume-decision.md">https://github.com/lukekwan/agent-payment-guard/tree/docs/doc-sg-001-api-docs/docs/gitbook/public/zh-TW/api-reference/consume-decision.md</a></td></tr></tbody></table>

## Reference map

* [Schemas](https://github.com/lukekwan/agent-payment-guard/tree/docs/doc-sg-001-api-docs/docs/gitbook/public/zh-TW/api-reference/schemas.md)
* [Request schemas](https://github.com/lukekwan/agent-payment-guard/tree/docs/doc-sg-001-api-docs/docs/gitbook/public/zh-TW/api-reference/request-schemas.md)
* [Response schemas](https://github.com/lukekwan/agent-payment-guard/tree/docs/doc-sg-001-api-docs/docs/gitbook/public/zh-TW/api-reference/response-schemas.md)
* [Error responses](https://github.com/lukekwan/agent-payment-guard/tree/docs/doc-sg-001-api-docs/docs/gitbook/public/zh-TW/api-reference/errors.md)
* [Reason codes](https://github.com/lukekwan/agent-payment-guard/tree/docs/doc-sg-001-api-docs/docs/gitbook/public/zh-TW/api-reference/reason-codes.md)
* [Public OpenAPI JSON](https://raw.githubusercontent.com/lukekwan/agent-payment-guard/docs/doc-sg-001-api-docs/docs/gitbook/public/openapi/signgate-public-v0.1.openapi.json)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://123-87.gitbook.io/signgate-api/language/overview.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
