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

# Cadastrar conta no cofre

> Cadastra uma conta TOTP a partir de uma URI otpauth:// (QR Code) OU de campos manuais. Valida gerando um código de teste, cifra o segredo e salva. O segredo nunca é retornado.



## OpenAPI

````yaml https://api.juridiq.com.br/openapi.json post /authenticator/accounts
openapi: 3.1.0
info:
  title: Juridiq Server API (interno)
  description: Documentação técnica **interna** da API Juridiq Server
  version: 1.0.0
servers:
  - url: http://localhost:3001
    description: Development server
  - url: https://api.juridiq.com.br
    description: Production server
security:
  - bearerAuth: []
paths:
  /authenticator/accounts:
    post:
      tags:
        - Autenticador
      summary: Cadastrar conta no cofre
      description: >-
        Cadastra uma conta TOTP a partir de uma URI otpauth:// (QR Code) OU de
        campos manuais. Valida gerando um código de teste, cifra o segredo e
        salva. O segredo nunca é retornado.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                otpauthUri:
                  type: string
                  minLength: 1
                issuer:
                  type: string
                  minLength: 1
                  maxLength: 120
                label:
                  type: string
                  minLength: 1
                  maxLength: 120
                secret:
                  type: string
                  minLength: 1
                algorithm:
                  type: string
                  enum:
                    - SHA1
                    - SHA256
                    - SHA512
                digits:
                  type: integer
                period:
                  type: integer
                icon:
                  type: string
                  maxLength: 255
              additionalProperties: false
      responses:
        '201':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  issuer:
                    type: string
                  label:
                    type: string
                  algorithm:
                    type: string
                  digits:
                    type: number
                  period:
                    type: number
                  icon:
                    type: string
                    nullable: true
                  createdAt:
                    type: string
                required:
                  - id
                  - issuer
                  - label
                  - algorithm
                  - digits
                  - period
                  - icon
                  - createdAt
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  statusCode:
                    type: number
                  translateMessage:
                    type: string
                required:
                  - message
                  - statusCode
                  - translateMessage
                additionalProperties: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Insira o token JWT no formato: Bearer {token}'

````