Clarity Survey AI API

The survey-ai API from Clarity — 1 operation(s) for survey-ai.

Operations 1

POST /api/v1/internal/survey/ai-reply Create Ai Reply #

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/onclarity-com:onclarity-com-survey-ai-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

onclarity-com-survey-ai-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fast Survey AI API
  version: 0.1.0
tags:
- name: survey-ai
paths:
  /api/v1/internal/survey/ai-reply:
    post:
      tags:
      - survey-ai
      summary: Create Ai Reply
      operationId: create_ai_reply_api_v1_internal_survey_ai_reply_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AIReplyRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AIReplyResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AIReplyTurn:
      properties:
        role:
          type: string
          enum:
          - user
          - assistant
          title: Role
        content:
          type: string
          maxLength: 2000
          title: Content
      type: object
      required:
      - role
      - content
      title: AIReplyTurn
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    AIReplyRequest:
      properties:
        questionId:
          type: string
          title: Questionid
        mode:
          type: string
          enum:
          - clarify
          - faq
          title: Mode
        headline:
          anyOf:
          - type: string
          - type: 'null'
          title: Headline
        context:
          anyOf:
          - type: string
            maxLength: 8000
          - type: 'null'
          title: Context
        answer:
          anyOf:
          - type: string
            maxLength: 2000
          - type: 'null'
          title: Answer
        question:
          anyOf:
          - type: string
            maxLength: 2000
          - type: 'null'
          title: Question
        history:
          items:
            $ref: '#/components/schemas/AIReplyTurn'
          type: array
          maxItems: 10
          title: History
      type: object
      required:
      - questionId
      - mode
      title: AIReplyRequest
    AIReplyResponse:
      properties:
        reply:
          type: string
          title: Reply
      type: object
      required:
      - reply
      title: AIReplyResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
    HTTPBasic:
      type: http
      scheme: basic