aiXplain Sessions API

The Sessions API from aiXplain — 2 operation(s) for sessions.

Operations 2

GET /v1/sessions GET /v1/sessions #
POST /v1/sessions/{id}/messages User message is posted to POST /v1/sessions/{id}/messages (carrying the… #

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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/aixplain:aixplain-sessions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

aixplain-sessions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: aiXplain Sessions API
  version: '2026-09-22'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-09-22: 5 operation(s) read from 4 public documentation page(s) (each operation names its page in x-source). This is not the provider''s published contract; aiXplain has published no machine-readable contract that the pipeline could find. Engine: local.'
  x-source-kind: mostly-language-sdk-reference
  x-source-caveat: 'every page read was a language SDK reference (a client library), not a REST reference: paths and methods are the ones those pages name, and no request or response shape was taken from them'
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-09-22'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.aixplain.com/resources/faqs
  - https://docs.aixplain.com/api-reference/python/aixplain/v2/agent
  - https://docs.aixplain.com/api-reference/python/aixplain/v2/session
  - https://docs.aixplain.com/api-reference/python/aixplain/v2/trigger
servers:
- url: https://platform-api.aixplain.com
tags:
- name: Sessions
paths:
  /v1/sessions:
    get:
      operationId: get_v1_sessions
      tags:
      - Sessions
      summary: GET /v1/sessions
      x-source: https://docs.aixplain.com/api-reference/python/aixplain/v2/session
      parameters:
      - name: agent
        in: query
        required: false
        schema:
          type: string
        description: Filter by agent — an Agent instance or an agent id string.
      - name: status
        in: query
        required: false
        schema:
          type: string
        description: Filter by session status (e.g. "active").
      - name: user_id
        in: query
        required: false
        schema:
          type: string
        description: Filter by owning user id.
      - name: created_after
        in: query
        required: false
        schema:
          type: string
        description: Lower bound on the session's creation time (datetime or ISO string).
      - name: created_before
        in: query
        required: false
        schema:
          type: string
        description: Upper bound on the session's creation time (datetime or ISO string).
      - name: memory_enabled
        in: query
        required: false
        schema:
          type: boolean
        description: When true return memory‑on sessions; when false return memory‑off sessions; null applies no filter.
      - name: page_number
        in: query
        required: false
        schema:
          type: integer
        description: Zero‑indexed page number (default 0).
      - name: page_size
        in: query
        required: false
        schema:
          type: integer
        description: Page size (default 20).
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1SessionsResponse'
  /v1/sessions/{id}/messages:
    post:
      operationId: post_v1_sessions_id_messages
      tags:
      - Sessions
      summary: User message is posted to POST /v1/sessions/{id}/messages (carrying the…
      x-source: https://docs.aixplain.com/api-reference/python/aixplain/v2/agent
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
components:
  schemas:
    GetV1SessionsResponse:
      type: object
      properties:
        sessions:
          type: array
          description: Array of Session objects.
        page_number:
          type: integer
          description: Current page number.
        page_size:
          type: integer
          description: Size of each page.
        total:
          type: integer
          description: Total number of sessions matching the filters.