ShapelessAI Brain API

The Brain API from ShapelessAI — 2 operation(s) for brain.

GitHub OpenAPI

Operations 8

GET /api/brain/assets GET /api/brain/assets #
POST /api/brain/{brainid} POST /api/brain/import write Import a .md/.txt/.pdf/.docx document #
POST /api/brain/scan Read a link and file what it says into Brand Memory (NDJSON) #
POST /api/brain/import Import a .md/.txt/.pdf/.docx document #
GET /api/brain/assets/{filename} Stream one asset (Range supported) #
PUT /api/brain/assets/{filename} Upload an asset #
PATCH /api/brain/assets/{filename} Rename an asset #
DELETE /api/brain/assets/{filename} Delete an asset #

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/shapelessai:shapelessai-brain-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

shapelessai-brain-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Shapelessai Brain API
  x-refined-note:
  - x-authored-by differs across the merged source definitions and was not carried
  - x-engine differs across the merged source definitions and was not carried
  - x-evidence-tiers differs across the merged source definitions and was not carried
  - x-generated differs across the merged source definitions and was not carried
  - x-generated-from differs across the merged source definitions and was not carried
  - x-generator differs across the merged source definitions and was not carried
  - x-provenance differs across the merged source definitions and was not carried
  - x-sources differs across the merged source definitions and was not carried
  version: '1.0'
  description: 'Operations tagged Brain across 2 of this provider''s published API definitions: shapelessai-openapi-generated.yml, shapelessai-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://shapelessai.com
tags:
- name: Brain
paths:
  /api/brain/assets:
    get:
      operationId: get_api_brain_assets
      tags:
      - Brain
      summary: GET /api/brain/assets
      x-source: https://shapelessai.com/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
      security:
      - bearer: []
  /api/brain/{brainid}:
    post:
      operationId: post_api_brain_brainid
      tags:
      - Brain
      summary: POST /api/brain/import write Import a .md/.txt/.pdf/.docx document
      x-source: https://shapelessai.com/docs/api
      parameters:
      - name: brainid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
        collapsed_from: 2 example path(s) differing only at brainId
      security:
      - bearer: []
  /api/brain/scan:
    post:
      summary: Read a link and file what it says into Brand Memory (NDJSON)
      operationId: postBrainScan
      responses:
        '200':
          description: OK
        '401':
          description: No credential, or not valid.
        '403':
          description: The key is missing the "write" scope.
        '429':
          description: Over the key's rate limit (600 requests an hour).
      security:
      - apiKey:
        - write
      - oauth:
        - write
      x-scope: write
      x-status: live
      tags:
      - Brain
    servers:
    - url: https://shapelessai.com
  /api/brain/import:
    post:
      summary: Import a .md/.txt/.pdf/.docx document
      operationId: postBrainImport
      responses:
        '200':
          description: OK
        '400':
          description: No multipart form, no file, an empty file, or a name we cannot store.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: No credential, or not valid.
        '403':
          description: The key is missing the "write" scope.
        '413':
          description: Over 1 MB of text, over 15 MB of PDF or Word, or extracted text over Brand Memory's 256 KB; nothing was written.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '415':
          description: Not .md, .txt, .pdf or .docx; images go to PUT /api/brain/assets/{filename}.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: No readable text in it (a scanned PDF).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Over the key's rate limit (600 requests an hour).
        '502':
          description: Brand Memory is not answering; nothing was written. Resend later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - apiKey:
        - write
      - oauth:
        - write
      x-scope: write
      x-status: live
      tags:
      - Brain
    servers:
    - url: https://shapelessai.com
  /api/brain/assets/{filename}:
    get:
      summary: Stream one asset (Range supported)
      operationId: getBrainAssetsFilename
      parameters:
      - name: filename
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '401':
          description: No credential, or not valid.
        '403':
          description: The key is missing the "read" scope.
        '429':
          description: Over the key's rate limit (600 requests an hour).
      security:
      - apiKey:
        - read
      - oauth:
        - read
      x-scope: read
      x-status: live
      tags:
      - Brain
    put:
      summary: Upload an asset
      operationId: putBrainAssetsFilename
      parameters:
      - name: filename
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '401':
          description: No credential, or not valid.
        '403':
          description: The key is missing the "write" scope.
        '429':
          description: Over the key's rate limit (600 requests an hour).
      security:
      - apiKey:
        - write
      - oauth:
        - write
      x-scope: write
      x-status: live
      tags:
      - Brain
    patch:
      summary: Rename an asset
      operationId: patchBrainAssetsFilename
      parameters:
      - name: filename
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '401':
          description: No credential, or not valid.
        '403':
          description: The key is missing the "write" scope.
        '429':
          description: Over the key's rate limit (600 requests an hour).
      security:
      - apiKey:
        - write
      - oauth:
        - write
      x-scope: write
      x-status: live
      tags:
      - Brain
    delete:
      summary: Delete an asset
      operationId: deleteBrainAssetsFilename
      parameters:
      - name: filename
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '401':
          description: No credential, or not valid.
        '403':
          description: The key is missing the "write" scope.
        '429':
          description: Over the key's rate limit (600 requests an hour).
      security:
      - apiKey:
        - write
      - oauth:
        - write
      x-scope: write
      x-status: live
      tags:
      - Brain
    servers:
    - url: https://shapelessai.com
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
      required:
      - error
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
    apiKey:
      type: http
      scheme: bearer
      description: slk_... key; scopes read, write, publish.
    oauth:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://shapelessai.com/api/auth/mcp/authorize
          tokenUrl: https://shapelessai.com/api/auth/mcp/token
          scopes:
            read: Read anything the account holds.
            write: 'Create and edit: jobs, drafts, agents, Brand Memory.'
            publish: Anything that goes out to a platform, or spends.
            wiki: Write to the wiki at /vizipedia as this account, and nothing else. A key with `write` covers it.
x-refined-from:
- shapelessai-openapi-generated.yml
- shapelessai-openapi.json