Skip to content

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 required

Request body (application/json)

FieldRequiredTypeDescription
questionyesstringNatural-language question for Ledger AI Terminal. Alias: message, prompt, or query.
conversationIdnostringExisting Ledger AI conversation id to continue. Alias: conversation_id.
messagesnoarrayOptional 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

StatusMeaning
200Successful response.
401Missing or invalid API key.
429Monthly 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 required

Request body (application/json)

FieldRequiredTypeDescription
questionyesstringNatural-language question for Ledger AI Terminal. Alias: message, prompt, or query.
conversationIdnostringExisting Ledger AI conversation id to continue. Alias: conversation_id.
messagesnoarrayOptional 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

StatusMeaning
200Successful response.
401Missing or invalid API key.
429Monthly API call limit exceeded.

The Neural Ledger API