Ophis Intent API

The Intent API from Ophis — 1 operation(s) for intent.

GitHub OpenAPI

Operations 1

POST /api/intent Parse a natural-language swap request #

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/ophis-fi:ophis-fi-intent-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

ophis-fi-intent-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ophis Intent API
  version: 1.0.0
  summary: Parse a natural-language swap request into a structured intent.
  description: Turns a natural-language swap request (e.g. "swap 100 USDC for ETH on Optimism") into a structured intent with recognized entities. Backed by LibertAI Qwen. Public and unauthenticated; rate-limited to 30 requests/minute/IP. For the full agent toolset (quotes, building bounded signable orders, tier lookups) use the Ophis MCP server at https://mcp.ophis.fi/mcp.
  contact:
    name: Ophis
    url: https://ophis.fi/
  license:
    name: Source on GitHub
    url: https://github.com/ophis-fi/ophis
servers:
- url: https://swap.ophis.fi
  description: Production
tags:
- name: Intent
paths:
  /api/intent:
    post:
      operationId: parseIntent
      summary: Parse a natural-language swap request
      description: POST a natural-language swap request; receive the recognized intent and entities (sell token, buy token, amount, chain). No authentication. Rate-limited 30/min/IP.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IntentRequest'
      responses:
        '200':
          description: Parsed intent.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntentSuccess'
        '400':
          description: 'BAD_INPUT: missing/invalid JSON body or text over 280 chars.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntentError'
        '403':
          description: 'FORBIDDEN: origin not allowed.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntentError'
        '429':
          description: 'RATE_LIMITED: exceeded 30 requests/minute/IP.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntentError'
        '500':
          description: 'UPSTREAM: server-side parser misconfiguration.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntentError'
        '502':
          description: 'UPSTREAM / INVALID_JSON: the parser failed or returned an unparseable response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntentError'
        '504':
          description: 'TIMEOUT: the parser did not respond in time.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntentError'
      tags:
      - Intent
components:
  schemas:
    IntentSuccess:
      type: object
      required:
      - ok
      - data
      properties:
        ok:
          type: boolean
          const: true
        data:
          $ref: '#/components/schemas/ParsedIntent'
    IntentError:
      type: object
      required:
      - ok
      - error
      properties:
        ok:
          type: boolean
          const: false
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              enum:
              - TIMEOUT
              - UPSTREAM
              - INVALID_JSON
              - BAD_INPUT
              - RATE_LIMITED
              - FORBIDDEN
            message:
              type: string
    IntentRequest:
      type: object
      required:
      - text
      additionalProperties: false
      properties:
        text:
          type: string
          minLength: 1
          maxLength: 280
          description: The natural-language swap request, e.g. "swap 100 USDC for ETH on Optimism".
          examples:
          - swap 100 USDC for ETH on Optimism
    Entity:
      type: object
      required:
      - type
      - value
      - raw
      - start
      - end
      properties:
        type:
          type: string
          enum:
          - sellToken
          - buyToken
          - amount
          - chain
        value:
          type: string
          description: Normalized value (e.g. "optimism", "USDC", "100").
        raw:
          type: string
          description: A case-insensitive match somewhere in the input; offsets may be inaccurate.
        start:
          type: integer
          description: Model-proposed in-bounds start offset; re-anchor raw before highlighting.
        end:
          type: integer
          description: Model-proposed in-bounds end offset (exclusive); not an exact-span guarantee.
    ParsedIntent:
      type: object
      required:
      - intent
      - entities
      properties:
        intent:
          type: string
          enum:
          - swap
          - unknown
        entities:
          type: array
          items:
            $ref: '#/components/schemas/Entity'
externalDocs:
  description: Ophis docs
  url: https://docs.ophis.fi/