Clarity Survey Distribution API

The survey-distribution API from Clarity — 3 operation(s) for survey-distribution.

Operations 3

POST /api/v1/anecdote-surveys/{anecdote_survey_id}/send Send Distribution #
POST /api/v1/anecdote-surveys/{anecdote_survey_id}/qr Create Qr Link #
GET /api/v1/anecdote-surveys/{anecdote_survey_id}/qr/stats Qr Stats #

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-distribution-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-distribution-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fast Survey Distribution API
  version: 0.1.0
tags:
- name: survey-distribution
paths:
  /api/v1/anecdote-surveys/{anecdote_survey_id}/send:
    post:
      tags:
      - survey-distribution
      summary: Send Distribution
      description: 'Send a survey invitation over a phone-based channel (SMS / WhatsApp).


        Resolves recipients from ``contact_list_id`` (members'' phones) and/or inline

        ``recipients``, builds a per-recipient tracked survey link, and sends via the

        chosen channel adapter.


        Args:

        anecdote_survey_id: The VoC anecdote survey id.

        body: ``channel`` (''sms'' | ''whatsapp''), optional ``contact_list_id`` and/or

        ``recipients``, and an optional custom ``message``.


        Returns:

        ``{channel, sent, failed, results: [...]}``.


        Raises:

        HTTPException: 400 on bad input or unconfigured/unsupported channel;

        404 if the survey or contact list is not found.'
      operationId: send_distribution_api_v1_anecdote_surveys__anecdote_survey_id__send_post
      security:
      - HTTPBearer: []
      parameters:
      - name: anecdote_survey_id
        in: path
        required: true
        schema:
          type: integer
          title: Anecdote Survey Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendDistributionRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/anecdote-surveys/{anecdote_survey_id}/qr:
    post:
      tags:
      - survey-distribution
      summary: Create Qr Link
      description: 'Create (or return the existing) trackable QR distribution link for a survey.


        The QR image is rendered client-side from ``tracking_url``; survey-api owns

        the trackable URL + scan counters. Idempotent: repeat calls return the same

        live link.


        Returns:

        ``{token, tracking_url, target_url}``.


        Raises:

        HTTPException: 404 if the survey is not found; 400 if its public id is missing

        or survey-api rejects the request.'
      operationId: create_qr_link_api_v1_anecdote_surveys__anecdote_survey_id__qr_post
      security:
      - HTTPBearer: []
      parameters:
      - name: anecdote_survey_id
        in: path
        required: true
        schema:
          type: integer
          title: Anecdote Survey Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/anecdote-surveys/{anecdote_survey_id}/qr/stats:
    get:
      tags:
      - survey-distribution
      summary: Qr Stats
      description: Return the survey's distribution links with scan counts / last-scanned times.
      operationId: qr_stats_api_v1_anecdote_surveys__anecdote_survey_id__qr_stats_get
      security:
      - HTTPBearer: []
      parameters:
      - name: anecdote_survey_id
        in: path
        required: true
        schema:
          type: integer
          title: Anecdote Survey Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SendDistributionRequest:
      properties:
        channel:
          type: string
          title: Channel
        contact_list_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Contact List Id
        recipients:
          anyOf:
          - items:
              $ref: '#/components/schemas/InlineRecipient'
            type: array
          - type: 'null'
          title: Recipients
        message:
          anyOf:
          - type: string
          - type: 'null'
          title: Message
      type: object
      required:
      - channel
      title: SendDistributionRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    InlineRecipient:
      properties:
        phone:
          type: string
          title: Phone
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        attributes:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Attributes
      type: object
      required:
      - phone
      title: InlineRecipient
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
    HTTPBasic:
      type: http
      scheme: basic