Vicem Onboarding API

First-run flow: handle, number, Stage 1 interview.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 8

POST /v1/onboarding/events Onboarding event #
POST /v1/onboarding/test-call-armed Test call armed #
GET /v1/onboarding/interview Interview state #
POST /v1/onboarding/interview Interview answer #
GET /v1/style-card Style card #
POST /v1/contacts/import Import contacts #
POST /v1/card/shared Card shared #
PUT /v1/me/caller-languages Set languages #

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/vicem-ai:vicem-ai-onboarding-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

vicem-ai-onboarding-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Vicem Onboarding API
  version: 7c4384d
  description: 'The HTTP API behind the Vicem owner app, the public profile pages and provider webhooks.


    Generated at runtime from the zod route table in `packages/api-contract` (the same schemas the

    server validates requests and responses with), so this document cannot drift from the code.


    **Auth.** Owner routes take an Identity Platform ID token: `Authorization: Bearer `.

    Personal API keys (`vk_…`, Settings › More › Connect other apps) use the same header on their routes.

    Public routes need nothing and are rate limited per IP (429 when over). Webhooks are verified by provider signature.


    **Errors.** Every error uses one envelope: `{"error": {"code", "message", "lang?", "details?"}}`.

    `lang` names the language `message` is written in for people; with no `lang`, `message` is a log line:

    branch on `code`, never on `message`. Validation failures are 400 with `details` listing each failing path.


    **Health.** `GET /healthz` reports version, active fakes and the voice heartbeat age; `GET /readyz` is 200 while the instance can serve, else 503.'
servers:
- url: https://api.vicem.ai
tags:
- name: Onboarding
  description: 'First-run flow: handle, number, Stage 1 interview.'
paths:
  /v1/onboarding/events:
    post:
      operationId: onboardingEvent
      summary: Onboarding event
      tags:
      - Onboarding
      security:
      - ownerBearer: []
      x-vicem-auth: owner
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OnboardingEventReq'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OnboardingEventRes'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '500':
          $ref: '#/components/responses/InternalError'
  /v1/onboarding/test-call-armed:
    post:
      operationId: testCallArmed
      summary: Test call armed
      tags:
      - Onboarding
      security:
      - ownerBearer: []
      x-vicem-auth: owner
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TestCallArmedReq'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestCallArmedRes'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '500':
          $ref: '#/components/responses/InternalError'
  /v1/onboarding/interview:
    get:
      operationId: interviewState
      summary: Interview state
      tags:
      - Onboarding
      security:
      - ownerBearer: []
      x-vicem-auth: owner
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InterviewState'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
    post:
      operationId: interviewAnswer
      summary: Interview answer
      tags:
      - Onboarding
      security:
      - ownerBearer: []
      x-vicem-auth: owner
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InterviewAnswerReq'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InterviewState'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '500':
          $ref: '#/components/responses/InternalError'
  /v1/style-card:
    get:
      operationId: styleCard
      summary: Style card
      tags:
      - Onboarding
      security:
      - ownerBearer: []
      x-vicem-auth: owner
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StyleCardView'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
  /v1/contacts/import:
    post:
      operationId: importContacts
      summary: Import contacts
      tags:
      - Onboarding
      security:
      - ownerBearer: []
      x-vicem-auth: owner
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportContactsReq'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportContactsRes'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '500':
          $ref: '#/components/responses/InternalError'
  /v1/card/shared:
    post:
      operationId: cardShared
      summary: Card shared
      tags:
      - Onboarding
      security:
      - ownerBearer: []
      x-vicem-auth: owner
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CardSharedReq'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardSharedRes'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '500':
          $ref: '#/components/responses/InternalError'
  /v1/me/caller-languages:
    put:
      operationId: setLanguages
      summary: Set languages
      tags:
      - Onboarding
      security:
      - ownerBearer: []
      x-vicem-auth: owner
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetLanguagesReq'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetLanguagesRes'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    OwnerLanguages:
      minItems: 1
      maxItems: 6
      type: array
      items:
        $ref: '#/components/schemas/OwnerLanguage'
    InterviewAnswerReq:
      type: object
      properties:
        step:
          $ref: '#/components/schemas/InterviewStep'
        answer:
          type: string
          minLength: 1
          maxLength: 1000
      required:
      - step
      - answer
    ImportPreviewRes:
      type: object
      properties:
        candidates:
          maxItems: 1000
          type: array
          items:
            $ref: '#/components/schemas/ImportCandidate'
        truncated:
          type: boolean
      required:
      - candidates
      - truncated
      additionalProperties: false
    TestCallArmedReq:
      type: object
      properties:
        via:
          type: string
          enum:
          - call
          - hear
          - code
      required:
      - via
      additionalProperties: false
    ImportCandidate:
      type: object
      properties:
        name:
          type: string
          maxLength: 120
        phones:
          maxItems: 5
          type: array
          items:
            $ref: '#/components/schemas/E164'
        emails:
          maxItems: 5
          type: array
          items:
            type: string
        known:
          type: boolean
        contactId:
          type: string
      required:
      - name
      - phones
      - emails
      - known
      additionalProperties: false
    SetLanguagesRes:
      type: object
      properties:
        languages:
          type: array
          items:
            type: string
      required:
      - languages
      additionalProperties: false
    ImportContactsReq:
      anyOf:
      - $ref: '#/components/schemas/ImportContactsBody'
      - $ref: '#/components/schemas/ImportPreviewBody'
      - $ref: '#/components/schemas/ImportSyncBody'
      - $ref: '#/components/schemas/ImportSourcesBody'
    OnboardingEventReq:
      type: object
      properties:
        kind:
          type: string
          minLength: 3
          maxLength: 64
        props:
          $ref: '#/components/schemas/SetupMetricProps'
      required:
      - kind
    ImportSyncBody:
      type: object
      properties:
        sync:
          type: object
          properties:
            source:
              $ref: '#/components/schemas/ContactProvider'
            connectionId:
              type: string
              minLength: 1
              maxLength: 64
          required:
          - source
          - connectionId
      required:
      - sync
    ContactProvider:
      type: string
      enum:
      - google
      - microsoft
    E164:
      type: string
      pattern: ^\+[1-9]\d{6,14}$
    ImportSummaryRes:
      type: object
      properties:
        created:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        merged:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        skipped:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
      required:
      - created
      - merged
      - skipped
      additionalProperties: false
    SetLanguagesReq:
      type: object
      properties:
        languages:
          $ref: '#/components/schemas/OwnerLanguages'
      required:
      - languages
    InterviewStep:
      type: string
      enum:
      - intent
      - boundaries
      - urgent
      - style_greeting
      - style_formality
      - style_emoji
      - style_bluntness
      - style_no
      - style_humor
      - style_pick
      - done
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            lang:
              type: string
            details: {}
          required:
          - code
          - message
          additionalProperties: false
      required:
      - error
      additionalProperties: false
    CardSharedRes:
      type: object
      properties:
        invitesAvailable:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        firstShare:
          type: boolean
      required:
      - invitesAvailable
      - firstShare
      additionalProperties: false
    StyleCardView:
      type: object
      properties:
        written:
          type: object
          properties:
            register:
              type: string
              enum:
              - formal
              - neutral
              - casual
            greetings:
              maxItems: 4
              type: array
              items:
                type: string
            emoji:
              type: string
              enum:
              - none
              - rare
              - frequent
            directness:
              type: string
              enum:
              - low
              - medium
              - high
            humor:
              type: string
              enum:
              - none
              - dry
              - light
          required:
          - register
          - greetings
          - emoji
          - directness
          - humor
          additionalProperties: false
        spoken:
          type: object
          properties:
            warmth:
              type: string
              enum:
              - brisk
              - neutral
              - warm
            howToSayNo:
              type: string
              maxLength: 200
          required:
          - warmth
          - howToSayNo
          additionalProperties: false
        boundaries:
          maxItems: 6
          type: array
          items:
            type: string
            maxLength: 120
        confirmed:
          type: boolean
      required:
      - written
      - spoken
      - boundaries
      - confirmed
      additionalProperties: false
    ImportSourcesBody:
      type: object
      properties:
        sources:
          type: boolean
          const: true
      required:
      - sources
    OnboardingEventRes:
      type: object
      properties:
        recorded:
          type: boolean
      required:
      - recorded
      additionalProperties: false
    ImportPreviewBody:
      type: object
      properties:
        preview:
          type: object
          properties:
            source:
              $ref: '#/components/schemas/ContactProvider'
            connectionId:
              type: string
              minLength: 1
              maxLength: 64
          required:
          - source
          - connectionId
      required:
      - preview
    ImportEntry:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 120
        phones:
          default: []
          maxItems: 5
          type: array
          items:
            $ref: '#/components/schemas/E164'
        emails:
          default: []
          maxItems: 5
          type: array
          items:
            type: string
            format: email
            pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
        urgent:
          default: false
          type: boolean
      required:
      - name
    ImportContactsRes:
      anyOf:
      - $ref: '#/components/schemas/ImportSummaryRes'
      - $ref: '#/components/schemas/ImportPreviewRes'
      - $ref: '#/components/schemas/ImportSourcesRes'
    CardSharedReq:
      type: object
      properties:
        channel:
          type: string
          enum:
          - whatsapp
          - imessage
          - sms
          - email
          - copy_link
          - qr
          - other
      required:
      - channel
    OwnerLanguage:
      type: string
      pattern: ^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$
    ImportSourcesRes:
      type: object
      properties:
        sources:
          type: array
          items:
            type: object
            properties:
              contactId:
                type: string
              sources:
                maxItems: 3
                type: array
                items:
                  $ref: '#/components/schemas/ContactSource'
            required:
            - contactId
            - sources
            additionalProperties: false
      required:
      - sources
      additionalProperties: false
    SetupIntent:
      type: string
      enum:
      - unknown_callers
      - missed_calls
      - number_to_give_out
      - bookings
    ImportContactsBody:
      type: object
      properties:
        contacts:
          minItems: 1
          maxItems: 500
          type: array
          items:
            $ref: '#/components/schemas/ImportEntry'
        source:
          default: phone
          $ref: '#/components/schemas/ContactSource'
      required:
      - contacts
    ContactSource:
      type: string
      enum:
      - phone
      - google
      - microsoft
    InterviewState:
      type: object
      properties:
        step:
          $ref: '#/components/schemas/InterviewStep'
        question:
          type: string
        options:
          maxItems: 8
          type: array
          items:
            type: string
        skip:
          type: string
        reflection:
          type:
          - string
          - 'null'
        progress:
          type: object
          properties:
            done:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
            total:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
          required:
          - done
          - total
          additionalProperties: false
      required:
      - step
      - question
      - options
      - reflection
      - progress
      additionalProperties: false
    SetupMetricProps:
      type: object
      properties:
        step:
          anyOf:
          - type: string
            enum:
            - name
            - first_call
            - tryit
            - trial
            - reach
            - call_now
            - pickup
            - mobile
            - intent
            - taps
            - ready
          - type: string
            enum:
            - primary
            - per_condition
          - type: string
            enum:
            - redeem
            - turn_on
            - app
            - sign_in
            - 'on'
            - blocked
            - home_steps
            - home_open
            - qr
          - type: string
            enum:
            - call
            - cover
            - forward
            - reach
            - alerts
            - local
        intent:
          $ref: '#/components/schemas/SetupIntent'
        moment:
          type: string
          enum:
          - first_call
          - name_fix
          - business
          - call_now
          - call_heard
          - cover
          - proof
          - code_shown
          - number_shared
          - reach_me
          - alerts
          - handoff
        result:
          type: string
          enum:
          - proven
          - failed
          - skipped
          - set
          - rejected
          - fallback_dialer
          - denied
          - vicem
          - partial
          - other
          - 'off'
          - unknown
        carrier:
          type: string
          pattern: ^[a-z0-9_]{1,40}$
        codes:
          type: string
          enum:
          - primary
          - per_condition
        secs:
          type: integer
          minimum: 0
          maximum: 86400
        auto:
          type: boolean
        lead:
          type: string
          enum:
          - app
          - auto
          - auto_test
          - dial
          - copy
          - open_phone
          - test
          - email
          - copy_open
          - share
          - later
        platform:
          type: string
          enum:
          - android_app
          - android_web
          - iphone_app
          - iphone_web
          - computer
        via:
          type: string
          enum:
          - ussd
          - call
          - dialer
          - none
          - link
          - copy_fallback
          - copy_open
          - manual
          - heard
          - forwarding
          - cover
        ok:
          type: boolean
        replyClass:
          type: string
          enum:
          - confirmed
          - refused
          - unknown
        choice:
          type: string
          enum:
          - connected
          - picked
          - shared
          - skipped
        itemType:
          type: string
          enum:
          - live_question
          - impostor
          - new_lead
          - still_waiting
          - question
          - call_back
          - reminder
          - zone_ask
          - expect_call
          - reply_ready
          - unanswered_text
          - couldnt_reach
          - missed_call
          - automated_notice
          - nudge
          - trial_ending
          - fix
          - code
          - check
          - decided
          - case
        action:
          type: string
          enum:
          - 'yes'
          - 'no'
          - pick_up
          - call_them
          - call_back
          - call
          - reply
          - say_now
          - send
          - edit
          - dont_reply
          - reveal
          - copy
          - open
          - done
          - remind
          - from_my_phone
          - change_it
          - details
          - ask_first
          - block
          - dismiss
        channel:
          type: string
          enum:
          - sms
          - email
          - voice
          - next_call
          - from_my_phone
          - call
          - link
        outcome:
          type: string
          enum:
          - delivered
          - failed
        trigger:
          type: string
          enum:
          - resolved_summary
          - errand_done
          - approval_held
          - turned_away
          - first_real_call
        reason:
          type: string
          enum:
          - channels
          - categories
          - permission
          - token
          - post
          - signed_out
          - unknown
        os:
          type: string
          enum:
          - ios
          - android
          - web
        device:
          type: string
          enum:
          - phone
          - tablet
          - computer
        country:
          type: string
          pattern: ^[A-Z]{2}$
        screen:
          type: string
          enum:
          - intro
          - id_document
          - proof_of_address
          - selfie
          - address
          - area
          - form
          - details
          - unknown
        fieldsLeft:
          type: integer
          minimum: 0
          maximum: 50
        day:
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}$
        signedIn:
          type: boolean
        from:
          type: string
          pattern: ^[a-z0-9_]{1,32}$
        kind:
          type: string
          enum:
          - android
          - ios
          - computer
        why:
          type: string
          enum:
          - no_sound
          - quiet_line
          - not_understood
          - left_on_greeting
      additionalProperties: false
    TestCallArmedRes:
      type: object
      properties:
        armedUntil:
          type: string
      required:
      - armedUntil
      additionalProperties: false
  responses:
    BadRequest:
      description: Invalid request (body not JSON, or schema validation failed).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    InternalError:
      description: Unexpected server error (reported to Sentry).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    PayloadTooLarge:
      description: Body over the limit (64 KB; 512 KB for contact import).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Unauthorized:
      description: Missing, expired or invalid bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    ownerBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Identity Platform (Firebase Auth) ID token of the signed-in owner.
    personalApiKey:
      type: http
      scheme: bearer
      description: 'Personal API key (vk_…) made in Settings › More › Connect other apps. Read scope: inbox, contacts, bookings. Write scope: notes, disposed by the Mandate engine.'