ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • POST(
          request: NextRequest,
      ): Promise<
          | NextResponse<{ success: boolean; error: string }>
          | NextResponse<
              {
                  success: boolean;
                  data: {
                      firstName: string
                      | null;
                      lastName: string | null;
                      jobTitle: string | null;
                      company: string | null;
                      email: string | null;
                      phone: string | null;
                      mobile: string | null;
                      fax: string | null;
                      website: string | null;
                      address: string | null;
                      city: string | null;
                      postalCode: string | null;
                      country: string | null;
                      linkedin: string | null;
                      notes: string | null;
                  };
              },
          >,
      >

      Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ success: boolean; error: string }>
          | NextResponse<
              {
                  success: boolean;
                  data: {
                      firstName: string
                      | null;
                      lastName: string | null;
                      jobTitle: string | null;
                      company: string | null;
                      email: string | null;
                      phone: string | null;
                      mobile: string | null;
                      fax: string | null;
                      website: string | null;
                      address: string | null;
                      city: string | null;
                      postalCode: string | null;
                      country: string | null;
                      linkedin: string | null;
                      notes: string | null;
                  };
              },
          >,
      >

      /api/chat/mobile: post: summary: Scanner une carte de visite et extraire les informations description: Reçoit une image de carte de visite et utilise OpenAI Vision pour extraire les informations structurées tags: - Mobile - AI security: - bearerAuth: [] requestBody: required: true content: multipart/form-data: schema: type: object required: - image properties: image: type: string format: binary description: Image de la carte de visite (JPEG, PNG, WebP) responses: 200: description: Informations extraites avec succès content: application/json: schema: type: object properties: success: type: boolean example: true data: type: object properties: firstName: type: string nullable: true lastName: type: string nullable: true jobTitle: type: string nullable: true company: type: string nullable: true email: type: string nullable: true phone: type: string nullable: true mobile: type: string nullable: true fax: type: string nullable: true website: type: string nullable: true address: type: string nullable: true city: type: string nullable: true postalCode: type: string nullable: true country: type: string nullable: true linkedin: type: string nullable: true notes: type: string nullable: true 400: description: Requête invalide (image manquante ou format non supporté) 401: description: Non autorisé 500: description: Erreur serveur lors de l'analyse