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

# Resolver verificação Instagram

> Envia o código ou resposta que o provedor pediu para destravar a conexão.



## OpenAPI

````yaml /instagram-api/api-reference/openapi-instagram.json post /v1/instagram/instances/{instanceId}/challenge/resolve
openapi: 3.0.3
info:
  title: Notifique API — Instagram
  version: 1.0.0
  description: >-
    Envie DMs Instagram e gerencie conexões. Autentique com `Authorization:
    Bearer sk_live_...` ou `x-api-key`.
servers:
  - url: https://api.notifique.dev
    description: Produção
security:
  - ntfIgBearerAuth: []
  - ntfIgApiKeyHeader: []
tags:
  - name: 'Instagram: instâncias'
    description: Criar, listar, desconectar e remover conexões Instagram.
  - name: 'Instagram: mensagens'
    description: Enviar, listar, editar, cancelar, apagar e inbound.
  - name: 'Instagram: comentários'
    description: Listar, responder e moderar comentários.
paths:
  /v1/instagram/instances/{instanceId}/challenge/resolve:
    post:
      tags:
        - 'Instagram: instâncias'
      summary: Resolver verificação Instagram
      description: >-
        Envia o código ou resposta que o provedor pediu para destravar a
        conexão.
      operationId: ntfIg_resolveChallenge
      parameters:
        - name: instanceId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NtfIg_ResolveChallengeBody'
            example:
              lastJson: '{"step_name":"verify_code"}'
              securityCode: '123456'
      responses:
        '200':
          description: Challenge resolvido; sessão ACTIVE.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        example: inst_abc
                      status:
                        type: string
                        example: ACTIVE
                    required:
                      - id
                      - status
              example:
                success: true
                data:
                  id: inst_abc
                  status: ACTIVE
        '400':
          description: Código inválido ou challenge expirado.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfIg_ErrorResponse'
        '403':
          description: Sem escopo.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfIg_ErrorResponse'
        '404':
          description: Instância não encontrada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfIg_ErrorResponse'
        '409':
          description: >-
            Conta incompatível com lock/expected (INSTAGRAM_ACCOUNT_MISMATCH),
            se aplicável no fluxo.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfIg_ErrorResponse'
              example:
                success: false
                error: Conflict
                code: INSTAGRAM_ACCOUNT_MISMATCH
                message: >-
                  This Instagram account does not match the account locked to
                  this instance.
        '429':
          description: >-
            Cooldown (INSTAGRAM_RECONNECT_COOLDOWN) ou abuse pause
            (INSTAGRAM_ABUSE_PAUSE). Inclui retryAfterSec.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/NtfIg_ErrorResponse'
                  - type: object
                    properties:
                      retryAfterSec:
                        type: integer
                        description: Segundos até poder tentar connect/challenge de novo.
              example:
                success: false
                error: Too Many Requests
                code: INSTAGRAM_RECONNECT_COOLDOWN
                message: >-
                  Reconnection is temporarily blocked after an involuntary
                  disconnect.
                retryAfterSec: 43200
components:
  schemas:
    NtfIg_ResolveChallengeBody:
      type: object
      required:
        - lastJson
        - securityCode
      properties:
        lastJson:
          type: object
          additionalProperties: true
          description: Payload do desafio retornado no login (data.challenge / lastJson).
        securityCode:
          type: string
          example: '123456'
    NtfIg_ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
        message:
          type: string
        code:
          type: string
        details:
          type: object
          additionalProperties: true
        data:
          type: object
          additionalProperties: true
        retryAfterSec:
          type: integer
          description: >-
            Segundos até poder tentar de novo (presente em 429 de cooldown/abuse
            pause).
  securitySchemes:
    ntfIgBearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Authorization: Bearer sk_live_...'
    ntfIgApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````