Notra Chats API
Manage chat sessions. Organization is inferred from the API key (identity.externalId).
Manage chat sessions. Organization is inferred from the API key (identity.externalId).
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/usenotra-com:usenotra-com-chats-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: Notra Chats API
version: 1.0.0
description: OpenAPI schema for Notra content endpoints. Use GET /v1/status for public reachability. Error responses include recovery guidance. Breaking changes ship under a new major path; deprecated operations send Deprecation and Sunset headers at least 90 days before removal.
servers:
- url: https://api.usenotra.com
description: Production
- url: https://demo-api.usenotra.com
description: Sandbox with sample data. Get a free sandbox key at demo.usenotra.com, no signup needed
security:
- BearerAuth: []
tags:
- name: Chats
description: Manage chat sessions. Organization is inferred from the API key (identity.externalId).
paths:
/v1/chats:
get:
tags:
- Chats
operationId: listChats
summary: List chats
description: Returns the organization's chat sessions without their messages. Use GET /v1/chats/{chatId} to load a conversation.
x-mint:
metadata:
description: Lists the workspace's chat sessions with Notra's assistant, without their messages. Load a full conversation with the endpoint that gets a single chat.
responses:
'200':
description: Chats fetched successfully
content:
application/json:
schema:
$ref: '#/components/schemas/GetChatsResponse'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Authentication service unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
post:
tags:
- Chats
operationId: createChat
summary: Start a new chat and stream the reply
description: Creates a chat session, sends the first message, and streams the assistant reply. Read the X-Chat-Id response header to continue the conversation with POST /v1/chats/{chatId}.
x-mint:
metadata:
description: Starts a new chat with Notra's assistant, sends the first message and streams the reply. Read the X-Chat-Id response header to continue the conversation.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SendChatMessageRequest'
responses:
'200':
description: Streaming UI message stream (newline-delimited JSON chunks). Read the `X-Chat-Id` response header for the chat id, or take it from the `start` chunk's `messageMetadata.chatId`.
content:
text/event-stream:
schema:
type: string
'400':
description: Invalid request body
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden, or usage limit reached
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Chat not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Chat is generating or pending approvals have changed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'413':
description: Request body exceeds 16 MiB
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded. This endpoint allows 30 requests per 1 minute per organization.
headers:
RateLimit-Limit:
description: Maximum requests allowed in the current window.
schema:
type: integer
RateLimit-Remaining:
description: Requests remaining in the current window.
schema:
type: integer
RateLimit-Reset:
description: Seconds until the current window resets.
schema:
type: integer
Retry-After:
description: Seconds the client should wait before retrying.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitErrorResponse'
'500':
description: Failed to process chat request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Authentication service unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/chats/by-external:
get:
tags:
- Chats
operationId: getChatByExternalChannel
summary: Get a chat by external channel id
description: Looks up the chat session linked to a Discord or Slack channel, or tagged with a dashboard id. Link a chat by passing externalChannelId when you create it.
x-mint:
metadata:
description: Looks up the chat session linked to a Discord or Slack channel, or tagged with a dashboard ID. Link a chat by passing externalChannelId when you create it.
parameters:
- schema:
type: string
enum:
- discord
- slack
- dashboard
description: 'Source the chat was linked with: a messaging platform, or dashboard for your own id.'
example: discord
required: true
description: 'Source the chat was linked with: a messaging platform, or dashboard for your own id.'
name: source
in: query
- schema:
type: string
minLength: 1
maxLength: 200
description: Channel ID on that platform, or the id you tagged the chat with.
example: channel_123
required: true
description: Channel ID on that platform, or the id you tagged the chat with.
name: id
in: query
responses:
'200':
description: Chat fetched successfully
content:
application/json:
schema:
$ref: '#/components/schemas/ChatSessionSummary'
'400':
description: Invalid query params
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Chat not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Authentication service unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/chats/{chatId}:
get:
tags:
- Chats
operationId: getChat
summary: Get a single chat with messages
description: Returns the chat session and its full message history in UI message format.
x-mint:
metadata:
description: Returns one chat session with Notra's assistant and its full message history in UI message format, so you can display or continue the conversation.
parameters:
- schema:
type: string
minLength: 1
example: chat_abc123
required: true
name: chatId
in: path
responses:
'200':
description: Chat fetched successfully
content:
application/json:
schema:
$ref: '#/components/schemas/GetChatResponse'
'400':
description: Invalid path params
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Chat not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Authentication service unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
post:
tags:
- Chats
operationId: postChatMessage
summary: Post a message to an existing chat and stream the reply
description: 'Sends a message or resumes pending tool approvals and streams the assistant reply. Earlier messages are included automatically. To approve or deny tools, send approvals: [{ "id": "", "approved": true }] for every pending approval in the latest assistant message, without a message field; use "approved": false to deny. Approval IDs are emitted in tool-approval-request chunks and stored on tool parts in chat history.'
x-mint:
metadata:
description: Sends a message to an existing chat and streams the assistant reply. Also approves or denies pending tool calls; earlier messages are included automatically.
parameters:
- schema:
type: string
minLength: 1
example: chat_abc123
required: true
name: chatId
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SendChatMessageRequest'
responses:
'200':
description: Streaming UI message stream (newline-delimited JSON chunks). Read the `X-Chat-Id` response header for the chat id, or take it from the `start` chunk's `messageMetadata.chatId`.
content:
text/event-stream:
schema:
type: string
'400':
description: Invalid request body
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden, or usage limit reached
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Chat not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Chat is generating or pending approvals have changed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'413':
description: Request body exceeds 16 MiB
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded. This endpoint allows 30 requests per 1 minute per organization.
headers:
RateLimit-Limit:
description: Maximum requests allowed in the current window.
schema:
type: integer
RateLimit-Remaining:
description: Requests remaining in the current window.
schema:
type: integer
RateLimit-Reset:
description: Seconds until the current window resets.
schema:
type: integer
Retry-After:
description: Seconds the client should wait before retrying.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitErrorResponse'
'500':
description: Failed to process chat request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Authentication service unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
SendChatMessageRequest:
type: object
properties:
message:
type: string
minLength: 1
maxLength: 50000
description: The user message to send.
example: Summarize what shipped in the last week.
approvals:
type: array
items:
type: object
properties:
id:
type: string
minLength: 1
maxLength: 500
approved:
type: boolean
reason:
type: string
maxLength: 2000
required:
- id
- approved
minItems: 1
maxItems: 50
description: Respond to every pending tool approval in the latest assistant message. Send either message or approvals. Only supported on an existing chat.
model:
type: string
enum:
- auto
- zai/glm-5.3
- zai/glm-5.3-flash
- anthropic/claude-opus-5.5
- anthropic/claude-opus-5
- anthropic/claude-opus-4.8
- anthropic/claude-sonnet-5
- anthropic/claude-sonnet-4.6
- anthropic/claude-haiku-4.5
- openai/gpt-6-sol
- openai/gpt-6-luna
- openai/gpt-5.6-sol
- openai/gpt-5.5
- openai/gpt-5.4
description: Deprecated and ignored. Chats always respond with GLM 5.3 Flash.
deprecated: true
example: zai/glm-5.3-flash
enableThinking:
type: boolean
description: Allow the model to reason before answering.
example: false
thinkingLevel:
type: string
enum:
- 'off'
- low
- medium
- high
description: How much reasoning effort to spend when thinking is enabled.
example: medium
timezone:
type: string
minLength: 1
maxLength: 100
description: IANA time zone used to interpret dates in the conversation.
example: Europe/Berlin
context:
type: array
items:
oneOf:
- type: object
properties:
type:
type: string
enum:
- github-repo
integrationId:
type: string
owner:
type: string
repo:
type: string
required:
- type
- integrationId
- owner
- repo
- type: object
properties:
type:
type: string
enum:
- linear-team
integrationId:
type: string
teamName:
type: string
required:
- type
- integrationId
- type: object
properties:
type:
type: string
enum:
- mcp-server
integrationId:
type: string
name:
type: string
minLength: 1
maxLength: 200
required:
- type
- integrationId
- name
description: 'Integrations the assistant may use as tools in this chat: connected GitHub repositories, Linear teams, or MCP servers.'
externalChannelId:
$ref: '#/components/schemas/PublicExternalChannelId'
ErrorResponse:
type: object
properties:
error:
type: string
code:
type: string
recovery:
type: string
required:
- error
ChatSessionSummary:
type: object
properties:
chatId:
type: string
description: The chat's ID, used as chatId in /v1/chats/{chatId}.
title:
type: string
description: Title of the chat, written from its first user message, or "New chat" before there is one.
createdAt:
type: string
description: When the chat was created, as an ISO 8601 timestamp.
updatedAt:
type: string
description: When the chat last changed, such as a new message, as an ISO 8601 timestamp.
pinnedAt:
type:
- string
- 'null'
description: When the chat was pinned, as an ISO 8601 timestamp, or null when it isn't pinned.
externalChannelId:
type:
- object
- 'null'
properties:
source:
type: string
enum:
- discord
- slack
- dashboard
- agent
description: Where the chat is linked, which is a Discord or Slack channel, a dashboard id or an agent.
id:
type: string
maxLength: 200
description: Channel ID on that platform or the id the chat was tagged with, which is always set for discord and slack and optional for other sources.
required:
- source
description: The external channel the chat is linked to, or null or absent when it isn't linked.
required:
- chatId
- title
- createdAt
- updatedAt
- pinnedAt
description: A chat session without its messages.
GetChatResponse:
type: object
properties:
chat:
$ref: '#/components/schemas/ChatSessionSummary'
messages:
type: array
items:
$ref: '#/components/schemas/ChatMessage'
description: The full conversation in AI SDK UI message format, oldest first.
required:
- chat
- messages
description: A chat session with its full message history.
RateLimitErrorResponse:
type: object
properties:
error:
type: string
limit:
type: integer
minimum: 1
description: Requests allowed per window.
remaining:
type: integer
minimum: 0
description: Requests left in the current window.
reset:
type: integer
description: When the window resets, as a Unix timestamp in milliseconds. Retry-After gives the wait in seconds.
required:
- error
- limit
- remaining
- reset
GetChatsResponse:
type: object
properties:
chats:
type: array
items:
$ref: '#/components/schemas/ChatSessionSummary'
description: Chats with pinned ones first, most recently pinned first, then the rest by most recent activity.
required:
- chats
description: The organization's chat sessions, without their messages.
ChatMessage: {}
PublicExternalChannelId:
type: object
properties:
source:
type: string
enum:
- discord
- slack
- dashboard
id:
type: string
maxLength: 200
required:
- source
description: Link the chat to a Discord or Slack channel, or tag it with your own dashboard id, so it can be found later with GET /v1/chats/by-external.
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: API Key
description: 'Send your API key in the Authorization header as Bearer API_KEY. Account API keys work in every workspace you belong to: send X-Notra-Organization-Id with the workspace id or slug to choose one. Workspace endpoints require it when you belong to more than one workspace; GET /v1/me/workspaces works without it. Organization keys only accept their own workspace there.'
externalDocs:
description: Notra API versioning and deprecation policy
url: https://www.usenotra.com/docs/api/versioning