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

# Cria um atalho VoIP na organização atual



## OpenAPI

````yaml https://portal.unicontrol.me/v1/openapi post /v1/voip-shortcuts
openapi: 3.1.0
info:
  title: Unicontrol API
  description: Welcome
  version: 1.0.0
servers:
  - url: http://0.0.0.0:3000
    description: Local Server
  - url: https://portal.test.flexhome.casa
    description: Development
  - url: https://portal.unicontrol.me
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/voip-shortcuts:
    post:
      tags:
        - VoIP
      summary: Cria um atalho VoIP na organização atual
      operationId: postV1Voip-shortcuts
      parameters:
        - in: header
          name: X-Organization-Id
          required: false
          schema:
            type: string
          description: >-
            ID da organização para contexto (opcional). Quando presente, filtra
            recursos da org.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - label
                - number
              properties:
                label:
                  type: string
                  description: 'Nome exibido no atalho (ex.: ''Portaria'', ''Zelador'').'
                number:
                  type: string
                  description: 'Dialstring/ramal passada ao softphone (ex.: ''2000'').'
                icon:
                  type: string
                  nullable: true
                  description: Nome do ícone (conjunto fixo pelo cliente).
                position:
                  type: integer
                  description: Posição manual. Quando omitido, o backend coloca no final.
            example:
              label: Portaria
              number: '2000'
              icon: doorbell
      responses:
        '201':
          description: Atalho criado
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                  org_id:
                    type: string
                  label:
                    type: string
                  number:
                    type: string
                  icon:
                    type: string
                    nullable: true
                  position:
                    type: integer
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
              example:
                id: 1
                org_id: org_xyz
                label: Portaria
                number: '2000'
                icon: doorbell
                position: 0
                created_at: '2026-10-14T10:00:00Z'
                updated_at: '2026-10-14T10:00:00Z'
        '400':
          description: Dados inválidos
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
              example:
                message: validation error
        '401':
          description: Não autenticado
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: unauthorized
        '403':
          description: Acesso negado
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: forbidden
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.