nuberea-com Chat API
Send messages and receive streamed AI responses.
Send messages and receive streamed AI responses.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/nuberea-com:nuberea-com-chat-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: NuBerea Chat API
version: 1.0.0
description: 'Integrate AI-powered theological insights into your own applications. The NuBerea API provides streaming chat — backed by the same engine that powers the NuBerea app.
## Authentication
All endpoints require a **NuBerea account**. Sign up at nuberea.com using Google, Apple, or Discord.
Pass your ID token as a Bearer token in the `Authorization` header:
```
Authorization: Bearer
```
### Obtaining a token
NuBerea supports **Google**, **Apple**, and **Discord** sign-in (no email/password). To obtain a token programmatically, use the Firebase JS SDK with your provider of choice:
```javascript
import { initializeApp } from ''firebase/app'';
import { getAuth, signInWithPopup, GoogleAuthProvider } from ''firebase/auth'';
const app = initializeApp({
apiKey: ''REDACTED_GOOGLE_API_KEY'',
authDomain: ''nuberea-b0aad.firebaseapp.com'',
projectId: ''nuberea-b0aad'',
});
const auth = getAuth(app);
const provider = new GoogleAuthProvider();
provider.addScope(''email'');
const { user } = await signInWithPopup(auth, provider);
const idToken = await user.getIdToken();
```
**Supported providers:**
- `GoogleAuthProvider` — Google sign-in
- `OAuthProvider(''apple.com'')` — Apple sign-in
- `OAuthProvider(''oidc.discord'')` — Discord sign-in
> **Note:** ID tokens expire after 1 hour. Call `user.getIdToken(true)` to force-refresh, or use `onIdTokenChanged` to listen for automatic refreshes.'
contact:
name: Streams, LLC
email: support@streamsapps.com
servers:
- url: https://api.nuberea.com/v1
description: Production
security:
- firebaseAuth: []
tags:
- name: Chat
description: Send messages and receive streamed AI responses.
paths:
/chat:
post:
operationId: sendChatMessage
summary: Send a Chat Message
description: 'Send a user message and receive a streamed AI response. Supports multi-turn context, workflow selection, source collection selection, reasoning controls, and optional passage context. Advanced models, reasoning levels, and research collections require a paid plan. If a requested option is not included in the account''s plan, the API automatically uses the closest available option. Requests are subject to tiered rate limiting.
**Response format:** Server-Sent Events (SSE). Text chunks use unnamed `data:` events. The stream can also emit `thinking`, `tool_call_start`, and `tool_call` events before a final `done` event carries the complete structured response.'
tags:
- Chat
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ChatRequest'
example:
userMessage: What does justification mean in Romans?
gptModel: 5.6 terra
previous_response_id: null
enabledCollections:
- bible
- macula_greek
workflowMode: parse
reasoning:
effort: medium
responses:
'200':
description: SSE stream of AI response chunks followed by a `done` event.
content:
text/event-stream:
schema:
type: string
example: 'event: thinking
data: {"idleMs":2000,"elapsedMs":2000,"message":"Thinking…"}
event: tool_call_start
data: {"toolName":"query_verse","arguments":{"source":"greek","book":"John","chapter":1,"verse":1},"output":"","status":"in_progress"}
data: {"chunk":"John 1:1 begins…"}
event: done
data: {"message":"John 1:1 begins…","responseID":"resp_abc123","isVerified":true,"workflowMode":"parse","toolCalls":[]}'
'400':
description: Validation error — missing or invalid fields in the request body.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication token.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: The account's current plan does not include this endpoint.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: 'Internal server error (delivered as SSE `event: error`).'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
ChatRequest:
type: object
required:
- userMessage
- gptModel
properties:
userMessage:
type: string
minLength: 1
description: The user's message.
gptModel:
type: string
enum:
- 4o
- o3
- '4.1'
- 4.1 mini
- 4.1 nano
- 4o mini
- 4 nano
- 5 nano
- 5 mini
- '5'
- '5.1'
- '5.2'
- '5.5'
- '5.6'
- 5.6 luna
- 5.6 terra
- 5.6 sol
description: AI model tier to use. If the selected model is not included in the account's plan, the API uses the Standard model.
previous_response_id:
type:
- string
- 'null'
description: Response ID from the prior exchange to maintain conversation context.
enabledCollections:
type:
- array
- 'null'
description: Source collections requested for the agent. Only collections included in the account's plan are made available.
items:
type: string
enum:
- bible
- macula_greek
- macula_lxx
- lexicon_ubs_greek
- lexicon_lsj
- macula_hebrew
- vulgate_latin
- lexicon_bdb
- lexicon_abbott_smith
- transcription_cntr
- synoptic
- bible_graph
workflowMode:
type:
- string
- 'null'
enum:
- read
- compare
- parse
- variants
- witnesses
- redaction
- theme_trace
- translation
- null
description: Optional research workflow used to narrow instructions and tools.
reasoning:
type:
- object
- 'null'
additionalProperties: false
properties:
effort:
type:
- string
- 'null'
enum:
- none
- minimal
- low
- medium
- high
- xhigh
- max
- ultra
- null
mode:
type:
- string
- 'null'
enum:
- pro
- null
passageContext:
type:
- object
- 'null'
additionalProperties: false
required:
- reference
- translation
- selectedText
- selectionKind
properties:
reference:
type: string
translation:
type: string
selectedText:
type: string
selectionKind:
type: string
enum:
- verse
- footnote
footnoteRef:
type: string
footnoteText:
type: string
ErrorResponse:
type: object
description: Standard error response body.
properties:
code:
type: string
description: Machine-readable error code (e.g. VALIDATION_ERROR, INTERNAL_SERVER_ERROR).
message:
type: string
description: Human-readable error message.
details:
type: array
items:
type: string
description: Additional detail strings (e.g. individual validation failures).
securitySchemes:
firebaseAuth:
type: http
scheme: bearer
bearerFormat: Firebase ID Token
description: 'Sign in with your NuBerea account credentials to obtain an ID token. Pass it as `Authorization: Bearer <token>`. Tokens expire after 1 hour. See the Authentication section above for details.'