Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/marketintell-ai:marketintell-ai-sessions-api"
All apis
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.
Get an API 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 Specification
openapi: 3.2.0
info:
title: MarketIntell Sessions API
version: 0.1.0
description: 'AI-powered market intelligence with tier-aware Mastra agents and a deterministic analytical pipeline across crypto, US equities, and India stocks. REST, MCP, OpenAI-compatible, async workflow, and batch transports share one evidence/provenance/recovery contract.
**Rate limits (per minute / per day):**
- Free: 60 / 25
- Builder: 120 / 50,000
- Pro: 300 / 2,000
- Enterprise: 1,000 / unlimited
MCP has a separate per-key bucket (default 30/min, env `MCP_RATE_LIMIT_MAX`). 429 responses include `Retry-After` and machine-readable recovery fields.
**Self-registration (agents):** `POST /v1/auth/challenge` returns a SHA-256 proof-of-work challenge; submit the solved nonce to `POST /v1/auth/signup`. Follow `/.well-known/oauth-protected-resource` to the authorization-server `agent_auth` block, or read `/auth.md`.'
contact:
name: MarketIntell
email: support@marketintell.ai
url: https://marketintell.ai/contact
license:
name: Proprietary
url: https://marketintell.ai/terms
termsOfService: https://marketintell.ai/terms
x-api-lifecycle:
stability: stable
versioning: Major versions are encoded in the URL path (currently /v1). Additive fields do not change the major version.
deprecation_notice_days: 90
deprecation_header: Deprecation (RFC 9745)
sunset_header: Sunset (RFC 8594)
migration_link_relation: successor-version
servers:
- url: https://api.marketintell.ai
description: Production
- url: http://localhost:3848
description: Local development
security:
- BearerAuth: []
- ApiKeyHeader: []
tags:
- name: Sessions
description: Chat session management
paths:
/v1/sessions:
get:
operationId: getSessions
summary: List chat sessions
tags:
- Sessions
description: List the calling key's chat sessions, most-recently-active first, with cursor pagination (`next_cursor` in the response is opaque — pass it back as the `cursor` query parameter to fetch the next page). Each entry returns the session id, created_at, last_active_at, and message_count. Sessions are owner-scoped — keys only see their own.
parameters:
- name: limit
in: query
schema:
type: integer
default: 20
minimum: 1
maximum: 100
description: Max sessions to return
- name: cursor
in: query
schema:
type: string
description: Opaque pagination cursor returned as `next_cursor` from the previous page. Omit for the first page.
responses:
'200':
description: List of recent chat sessions (cursor-paginated)
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
type: object
properties:
count:
type: integer
sessions:
type: array
items:
type: object
properties:
id:
type: string
format: uuid
created_at:
type: string
format: date-time
last_active_at:
type: string
format: date-time
message_count:
type: integer
next_cursor:
type: string
nullable: true
example:
success: true
data:
count: 2
sessions:
- id: 9f2c4b76-2d18-4c8f-a3a7-6c8a8f2d4ab1
created_at: '2026-04-21T10:00:00.000Z'
last_active_at: '2026-04-21T13:42:00.000Z'
message_count: 14
- id: aabb1234-bc56-4d78-9012-3456789abcde
created_at: '2026-04-20T18:11:00.000Z'
last_active_at: '2026-04-21T11:05:00.000Z'
message_count: 6
next_cursor: MjAyNi0wNC0yMVQxMTowNTowMC4wMDBafGFhYmIxMjM0LWJjNTYtNGQ3OC05MDEyLTM0NTY3ODlhYmNkZQ==
/v1/sessions/{id}/messages:
get:
operationId: getSessionsIdMessages
summary: Get session messages
tags:
- Sessions
description: Get the conversation history for a specific session you own. Returns up to `limit` messages (default 50, max 200) in chronological order with role, content, and timestamp. 404 if the session doesn't exist or isn't owned by the calling key.
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
- name: limit
in: query
schema:
type: integer
default: 50
minimum: 1
maximum: 200
description: Max messages to return
responses:
'200':
description: Session message history
content:
application/json:
schema:
type: object
required:
- session_id
- messages
properties:
session_id:
type: string
format: uuid
messages:
type: array
items:
type: object
required:
- role
- content
properties:
role:
type: string
enum:
- user
- assistant
- system
content:
type: string
created_at:
type: string
format: date-time
tools_used:
type: array
items:
type: string
description: MCP/Mastra tool ids invoked while generating this message
/v1/sessions/{id}:
delete:
operationId: deleteSessionsId
summary: Delete a session
tags:
- Sessions
description: Delete a chat session you own. Cascades to all messages in the session. Returns 404 if the session doesn't exist or isn't owned by the calling key. Idempotent only in the sense that a second call returns 404, not 200.
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Session deleted
content:
application/json:
schema:
type: object
required:
- success
properties:
success:
type: boolean
deleted:
type: integer
description: Rows removed
'404':
description: Session not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
components:
schemas:
ErrorEnvelope:
type: object
required:
- success
- error
properties:
success:
type: boolean
enum:
- false
error:
type: string
description: Human-readable error message
code:
type: string
description: Stable machine-readable error code, when present
request_id:
type: string
description: Correlation id from the X-Request-ID header
retry_after_ms:
type: integer
description: Suggested back-off for 429 responses (mirrors the Retry-After header in ms)
securitySchemes:
BearerAuth:
type: http
scheme: bearer
ApiKeyHeader:
type: apiKey
in: header
name: X-API-Key