Semilattice Context API

Your context is the background on your company or product that every simulation is planned against.

GitHub OpenAPI

Operations 4

GET /v1/context Get your default context #
GET /v1/contexts List contexts #
POST /v1/contexts Create a context #
GET /v1/contexts/{context_id} Get a context #

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/semilattice-ai:semilattice-ai-context-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

semilattice-ai-context-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Semilattice Context API
  description: 'Plan and run simulations of how your users will react to your work, and read the results. Everything you create is saved in your Semilattice account, so it also appears in the app.


    Authenticate with an API key from **Settings → API Keys** in the app, sent as `Authorization: Bearer `.'
  contact:
    name: Semilattice API
    url: https://semilattice.ai/
    email: support@semilattice.ai
  version: v1.0.0
servers:
- url: https://api.semilattice.ai
security:
- BearerAuth: []
tags:
- name: Context
  description: Your context is the background on your company or product that every simulation is planned against.
paths:
  /v1/context:
    get:
      tags:
      - Context
      summary: Get your default context
      description: 'Return the context new work is planned against when none is chosen: your

        most recently updated one, else your organisation''s. Returns

        {has_context: false} when there is none at all.'
      operationId: get_context_route_v1_context_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/contexts:
    get:
      tags:
      - Context
      summary: List contexts
      description: 'List the written contexts you can plan against, yours and your

        organisation''s, most recently updated first. Pass an id as context_id when

        creating a project or simulation to plan against it.'
      operationId: list_contexts_route_v1_contexts_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Context
      summary: Create a context
      description: 'Create a context from a name and its text. It is attached to every

        simulation planned against it, so simulation inputs need not repeat it.'
      operationId: create_context_route_v1_contexts_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateContextBody'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/contexts/{context_id}:
    get:
      tags:
      - Context
      summary: Get a context
      description: Fetch one context with its full text.
      operationId: get_context_by_id_route_v1_contexts__context_id__get
      parameters:
      - name: context_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Context Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CreateContextBody:
      properties:
        name:
          type: string
          title: Name
          description: A short name, e.g. the product's name
        body:
          type: string
          title: Body
          description: 'Markdown describing the organisation or product: what it is, who uses it, what it competes with, how it is priced'
      type: object
      required:
      - name
      - body
      title: CreateContextBody
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer