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

# Report a verification as approved

> Marks a verification started with your own `code` as approved, when you checked the code
yourself. Not allowed for codes generated by Torpedo.




## OpenAPI

````yaml /openapi.yaml post /api/v1/verify/{id}/report
openapi: 3.0.3
info:
  title: Torpedo API
  version: '1.0'
  description: |
    Torpedo is a transactional messaging API built for developers.
    Send emails from your own verified domain, SMS to Mozambican numbers, and
    WhatsApp verification codes with a single HTTP call.
  contact:
    email: hello@torpedo.co.mz
  license:
    name: Torpedo API Terms of Service
    url: https://torpedo.co.mz/terms
  termsOfService: https://torpedo.co.mz/terms
servers:
  - url: https://api.torpedo.co.mz
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/v1/verify/{id}/report:
    post:
      tags:
        - Verify
      summary: Report a verification as approved
      description: >
        Marks a verification started with your own `code` as approved, when you
        checked the code

        yourself. Not allowed for codes generated by Torpedo.
      operationId: reportVerification
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - status
              properties:
                status:
                  type: string
                  enum:
                    - approved
      responses:
        '200':
          description: Approved verification
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerificationResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Verification not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: The verification already ended
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: The verification used a Torpedo-generated code
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    VerificationResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Verification'
    Error:
      type: object
      required:
        - errors
      properties:
        errors:
          type: array
          items:
            type: object
            required:
              - code
              - message
            properties:
              code:
                type: string
                example: VALIDATION_ERROR
              message:
                type: string
                example: Domain not verified
              field:
                type: string
                example: from
    Verification:
      type: object
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - pending
            - approved
            - expired
            - canceled
            - max_attempts_reached
        to:
          type: string
          example: '+258841234567'
        channel:
          type: string
          enum:
            - whatsapp
            - sms
        fallback:
          type: string
          enum:
            - sms
          nullable: true
        locale:
          type: string
          enum:
            - pt
            - en
        codeSource:
          type: string
          enum:
            - generated
            - custom
        isTest:
          type: boolean
        clientRef:
          type: string
          nullable: true
          example: signup-4821
        checkAttempts:
          type: integer
          example: 0
        maxCheckAttempts:
          type: integer
          example: 5
        sendCount:
          type: integer
          example: 1
        maxSends:
          type: integer
          example: 5
        expiresAt:
          type: string
          format: date-time
        resendAvailableAt:
          type: string
          format: date-time
          nullable: true
        approvedAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
        attempts:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
              channel:
                type: string
                enum:
                  - whatsapp
                  - sms
              trigger:
                type: string
                enum:
                  - initial
                  - resend
                  - fallback
              status:
                type: string
                enum:
                  - queued
                  - sent
                  - delivered
                  - failed
              errorCode:
                type: string
                nullable: true
                example: '131026'
              errorCategory:
                type: string
                nullable: true
                example: recipient_unreachable
              createdAt:
                type: string
                format: date-time
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: |
        Prefix `tor_` followed by a base64url-encoded random key.
        Create and manage API keys from the authenticated Torpedo dashboard.

````

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