> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kupe.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Submit Compliance



## OpenAPI

````yaml /openapi.yaml post /v1/orgs/{org_id}/plivo/compliance
openapi: 3.1.0
info:
  title: Kupe API
  version: 0.1.0
  description: >-
    Public Kupe REST API. Authenticate with `Authorization: Bearer sk-kupe-...`
    (project API key) or a Supabase user JWT. API-key callers can GET /v1/me for
    the org_id and project_id scoped to the key.
servers:
  - url: https://x.kupe.in
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Me
    description: Current principal — org and project scoped to an API key.
  - name: Agents
    description: Agent CRUD, versions, tools, analyses, memories, and tests.
  - name: Realtime
    description: Mint an ephemeral Realtime session for the WebSocket.
  - name: Sessions
    description: LiveKit web sessions and telephony call sessions.
  - name: Inbound
    description: Bind an agent to a phone number with availability windows.
  - name: Campaigns
    description: 'Outbound batches: contacts, schedule, start/pause/resume.'
  - name: Recipient lists
    description: Reusable contact lists that attach to campaigns.
  - name: Tools
    description: Org tool catalog (webhooks, MCP, Composio-backed).
  - name: Composio
    description: Connect third-party apps and attach actions as tools.
  - name: Analyses
    description: Post-call analysis configs and session results.
  - name: Databases
    description: Call databases, rows, export, and agent attachments.
  - name: Knowledge bases
    description: Files and RAG search for agent context.
  - name: Audio assets
    description: Ambient audio presets and project uploads.
  - name: Phones
    description: Search, buy, and manage telephony numbers.
  - name: Voices
    description: Catalog voices, clones, preview, and speak.
  - name: Providers
    description: STT, LLM, and TTS catalog (defaults + enabled models).
  - name: Logs
    description: Session transcripts, recordings, and tool-call events.
  - name: Billing
    description: Wallet balance and invoices (not checkout).
  - name: Usage
    description: Cost summary and daily usage (no per-service breakdown).
  - name: Orgs
    description: Organizations.
  - name: Projects
    description: Projects inside an org.
  - name: Members
    description: Org membership.
  - name: API keys
    description: Project API keys (`sk-kupe-...`).
  - name: Feature flags
    description: Workspace feature flags.
  - name: Health
    description: Liveness and readiness probes.
paths:
  /v1/orgs/{org_id}/plivo/compliance:
    post:
      tags:
        - Phones
      summary: Submit Compliance
      operationId: submit_compliance_v1_orgs__org_id__plivo_compliance_post
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
            title: Org Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PlivoComplianceSubmitBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlivoComplianceApplicationOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PlivoComplianceSubmitBody:
      properties:
        end_user:
          $ref: '#/components/schemas/PlivoComplianceEndUser'
        registration_certificate_base64:
          type: string
          title: Registration Certificate Base64
        registration_certificate_filename:
          type: string
          title: Registration Certificate Filename
          default: registration_certificate.pdf
        gst_certificate_base64:
          type: string
          title: Gst Certificate Base64
        gst_certificate_filename:
          type: string
          title: Gst Certificate Filename
          default: gst_certificate.pdf
      type: object
      required:
        - end_user
        - registration_certificate_base64
        - gst_certificate_base64
      title: PlivoComplianceSubmitBody
    PlivoComplianceApplicationOut:
      properties:
        id:
          type: string
          title: Id
        org_id:
          type: string
          title: Org Id
        compliance_id:
          type: string
          title: Compliance Id
        country_iso:
          type: string
          title: Country Iso
        number_type:
          type: string
          title: Number Type
        user_type:
          type: string
          title: User Type
        business_name:
          type: string
          title: Business Name
        status:
          type: string
          enum:
            - draft
            - submitted
            - accepted
            - rejected
            - suspended
            - expired
          title: Status
        rejection_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Rejection Reason
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - org_id
        - compliance_id
        - country_iso
        - number_type
        - user_type
        - business_name
        - status
        - created_at
        - updated_at
      title: PlivoComplianceApplicationOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PlivoComplianceEndUser:
      properties:
        business_name:
          type: string
          title: Business Name
        salutation:
          type: string
          title: Salutation
          default: Mr
        first_name:
          type: string
          title: First Name
        last_name:
          type: string
          title: Last Name
        fiscal_identification_code:
          type: string
          title: Fiscal Identification Code
        email:
          type: string
          title: Email
        phone_number:
          type: string
          title: Phone Number
        address_line1:
          type: string
          title: Address Line1
        city:
          type: string
          title: City
        region:
          type: string
          title: Region
        postal_code:
          type: string
          title: Postal Code
        country_iso:
          type: string
          title: Country Iso
          default: IN
      type: object
      required:
        - business_name
        - first_name
        - last_name
        - fiscal_identification_code
        - email
        - phone_number
        - address_line1
        - city
        - region
        - postal_code
      title: PlivoComplianceEndUser
      description: |-
        Minimal India-business KYC fields Plivo's Compliance API requires:
        Registration Certificate (MCA CoI / Udyam) + GST Certificate, with the
        business name matching exactly across both documents.
    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
      bearerFormat: API key
      description: Project API key (`sk-kupe-...`) or a Supabase user JWT.

````