Notra Agent API
The Agent API from Notra, for agent.
The Agent API from Notra, for agent.
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-agent-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 Agent 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: Agent
paths:
/v2/eve/v1/session:
post:
tags:
- Agent
operationId: createAgentSession
summary: Start a durable agent session
description: The exact eve session protocol the Notra dashboard uses, proxied through API auth. Point any eve client (eve/client, useEveAgent) at /v2 as its host with your API key as a bearer token. Returns the session id and continuation token; stream events from GET /v2/eve/v1/session/{sessionId}/stream.
x-mint:
metadata:
description: Starts a durable Notra agent session over the eve protocol the dashboard uses. Returns the session ID and continuation token; stream its events next.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAgentSessionRequest'
responses:
'200':
description: Session created
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAgentSessionResponse'
'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'
'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 check usage limits
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'502':
description: Agent session creation failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Agent service is not configured
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v2/eve/v1/session/{sessionId}:
post:
tags:
- Agent
operationId: sendAgentSessionMessage
summary: Send a follow-up message or answer a pending input request
description: Sends the next turn of an agent session. The server binds the session's stored continuation token, so the client-provided one is ignored. Answer interaction.opened events (tool approvals, questions) from the event stream via inputResponses.
x-mint:
metadata:
description: Sends the next turn of a Notra agent session, or answers pending tool approvals and questions from its event stream. The server binds the continuation token.
parameters:
- schema:
type: string
minLength: 1
required: true
name: sessionId
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SendAgentMessageRequest'
responses:
'200':
description: Upstream eve response with the next continuation token for this session.
content:
application/json:
schema:
type: object
description: The agent service's response to the message, passed through unchanged.
'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: Session not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: A message is already being processed
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 check usage limits
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Agent service is not configured
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v2/eve/v1/session/{sessionId}/stream:
get:
tags:
- Agent
operationId: streamAgentSessionEvents
summary: Stream an agent session's events
description: Durable, replayable eve session event stream (newline-delimited JSON, stream version 27). Each stored line holds a `facts` array of events or a `progress` record. Pass startIndex to resume from a known line. Includes interaction.opened events for tool approvals.
x-mint:
metadata:
description: Streams a Notra agent session's events as replayable newline-delimited JSON. Pass startIndex to resume from a known line; includes tool approval requests.
parameters:
- schema:
type: string
minLength: 1
required: true
name: sessionId
in: path
- schema:
type:
- integer
- 'null'
description: Index of the first stored line to send. Negative indices are relative to the recorded tail.
required: false
description: Index of the first stored line to send. Negative indices are relative to the recorded tail.
name: startIndex
in: query
- schema:
type: string
enum:
- '0'
- '1'
- 'true'
- 'false'
description: Use false to read recorded history without following live events.
required: false
description: Use false to read recorded history without following live events.
name: follow
in: query
- schema:
type: string
enum:
- '0'
- '1'
- 'true'
- 'false'
description: Use 1 to bound the read and return the recorded tail index.
required: false
description: Use 1 to bound the read and return the recorded tail index.
name: includeTailIndex
in: query
responses:
'200':
description: NDJSON event stream
headers:
x-eve-stream-version:
description: Version of the Eve stream protocol.
schema:
type: string
x-eve-stream-tail-index:
description: Last recorded line index for a bounded read.
schema:
type: integer
content:
application/x-ndjson:
schema:
type: string
'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: Session not found
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'
'503':
description: Agent service is not configured
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v2/agent-chats:
get:
tags:
- Agent
operationId: listAgentChats
summary: List agent sessions
x-mint:
metadata:
description: Lists recent Notra agent sessions in the workspace, newest first, up to 50 at a time. Organization API keys only see sessions that no user owns.
parameters:
- schema:
type: integer
minimum: 1
maximum: 50
default: 20
required: false
name: limit
in: query
responses:
'200':
description: Agent sessions fetched successfully
content:
application/json:
schema:
$ref: '#/components/schemas/ListAgentChatsResponse'
'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'
'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'
'503':
description: Agent service is not configured
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
ErrorResponse:
type: object
properties:
error:
type: string
code:
type: string
recovery:
type: string
required:
- error
CreateAgentSessionResponse:
type: object
properties:
ok:
type: boolean
enum:
- true
description: Always true when the session was created.
sessionId:
type: string
description: ID of the agent session, used to send follow-up messages and stream events.
required:
- ok
- sessionId
description: The newly started agent session.
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
SendAgentMessageRequest:
type: object
properties:
message:
type: string
minLength: 1
maxLength: 200000
description: The next user message. Omit when only answering a pending input request.
inputResponses:
type: array
items:
type: object
properties:
requestId:
type: string
minLength: 1
description: The interactionId of the pending interaction.opened event to answer.
optionId:
type: string
minLength: 1
description: The chosen option id from the interaction.opened event, e.g. "approve" or "deny".
required:
- requestId
- optionId
description: Answers to pending interaction.opened events (tool approvals, questions) from the event stream.
CreateAgentSessionRequest:
type: object
properties:
message:
type: string
minLength: 1
maxLength: 200000
description: The first user message of the session.
required:
- message
ListAgentChatsResponse:
type: object
properties:
sessions:
type: array
items:
$ref: '#/components/schemas/AgentSessionSummary'
description: Agent sessions visible to the caller, newest first. Organization API keys only see sessions not owned by a user.
required:
- sessions
description: Recent agent sessions in the workspace.
AgentSessionSummary:
type: object
properties:
sessionId:
type: string
description: ID of the agent session, used with the /v2/eve/v1/session endpoints.
chatId:
type:
- string
- 'null'
description: Dashboard chat the session belongs to, or null for sessions not tied to a chat, such as those started through the API.
surface:
type: string
description: Where the session was started, such as standalone-chat for sessions started through the API or task for background content tasks.
status:
type: string
description: Session state. active for open sessions; background task sessions end as completed, failed or timed_out.
createdAt:
type: string
description: When the session was started, as an ISO 8601 timestamp.
updatedAt:
type: string
description: When the session was last updated, as an ISO 8601 timestamp.
required:
- sessionId
- chatId
- surface
- status
- createdAt
- updatedAt
description: Summary of an agent session.
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