Ledger AI Terminal
The same evidence-backed investigation the website runs, exposed as an API. Billed against a separate monthly question allowance.
Generated page
This page is generated from the published OpenAPI schema. Do not edit it by hand — run npm run generate:api.
POST /v1/ai-terminal
Ledger AI Terminal answer
Runs the same Ledger AI Terminal investigation used by the website and returns an AI answer, evidence citations, conversation metadata, normal API usage, and the separate 50/month Ledger AI question usage.
API key requiredRequest body (application/json)
| Field | Required | Type | Description |
|---|---|---|---|
question | yes | string | Natural-language question for Ledger AI Terminal. Alias: message, prompt, or query. |
conversationId | no | string | Existing Ledger AI conversation id to continue. Alias: conversation_id. |
messages | no | array | Optional user/assistant message history; the latest user message is used as the question. |
Example
bash
curl -sS "https://theneuralledger.com/v1/ai-terminal" \
-H "Authorization: Bearer $TNL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"question":"what are the most important news in Turkey today?","conversationId":"conv_123"}'Responses
| Status | Meaning |
|---|---|
200 | Successful response. |
401 | Missing or invalid API key. |
429 | Monthly API call limit exceeded. |
POST /v1/ai-terminal/chat
Ledger AI Terminal chat alias
Alias of /v1/ai-terminal for chat-oriented clients. Each successful request reserves one Ledger AI Terminal question before model work begins.
API key requiredRequest body (application/json)
| Field | Required | Type | Description |
|---|---|---|---|
question | yes | string | Natural-language question for Ledger AI Terminal. Alias: message, prompt, or query. |
conversationId | no | string | Existing Ledger AI conversation id to continue. Alias: conversation_id. |
messages | no | array | Optional user/assistant message history; the latest user message is used as the question. |
Example
bash
curl -sS "https://theneuralledger.com/v1/ai-terminal/chat" \
-H "Authorization: Bearer $TNL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"question":"what are the most important news in Turkey today?","conversationId":"conv_123"}'Responses
| Status | Meaning |
|---|---|
200 | Successful response. |
401 | Missing or invalid API key. |
429 | Monthly API call limit exceeded. |